]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c
ShellPkg/UefiShellAcpiViewCommandLib: Fix ECC issues
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / Parsers / Srat / SratParser.c
index 86da55935c83539691f53e0b4c57a6356210bbdc..fbe943d898ad96158f51d5afffe1fe17893ae62f 100644 (file)
@@ -1,4 +1,4 @@
-/**\r
+/** @file\r
   SRAT table parser\r
 \r
   Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.\r
@@ -25,12 +25,13 @@ STATIC CONST UINT8* SratRAType;
 STATIC CONST UINT8* SratRALength;\r
 STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo;\r
 \r
-/** This function validates the Reserved field in the SRAT table header.\r
+/**\r
+  This function validates the Reserved field in the SRAT table header.\r
 \r
   @param [in] Ptr     Pointer to the start of the field data.\r
   @param [in] Context Pointer to context specific information e.g. this\r
                       could be a pointer to the ACPI table header.\r
-*/\r
+**/\r
 STATIC\r
 VOID\r
 EFIAPI\r
@@ -39,11 +40,12 @@ ValidateSratReserved (
   IN VOID*  Context\r
   );\r
 \r
-/** This function traces the APIC Proximity Domain field.\r
+/**\r
+  This function traces the APIC Proximity Domain field.\r
 \r
   @param [in] Format  Format string for tracing the data.\r
   @param [in] Ptr     Pointer to the start of the buffer.\r
-*/\r
+**/\r
 STATIC\r
 VOID\r
 DumpSratApicProximity (\r
@@ -51,24 +53,26 @@ DumpSratApicProximity (
   IN  UINT8*         Ptr\r
   );\r
 \r
-/** An ACPI_PARSER array describing the SRAT Table.\r
-*/\r
+/**\r
+  An ACPI_PARSER array describing the SRAT Table.\r
+**/\r
 STATIC CONST ACPI_PARSER SratParser[] = {\r
   PARSE_ACPI_HEADER (&AcpiHdrInfo),\r
   {L"Reserved", 4, 36, L"0x%x", NULL, NULL, ValidateSratReserved, NULL},\r
   {L"Reserved", 8, 40, L"0x%lx", NULL, NULL, NULL, NULL}\r
 };\r
 \r
-/** An ACPI_PARSER array describing the Resource Allocation\r
-    structure header.\r
-*/\r
+/**\r
+  An ACPI_PARSER array describing the Resource Allocation structure header.\r
+**/\r
 STATIC CONST ACPI_PARSER SratResourceAllocationParser[] = {\r
   {L"Type", 1, 0, NULL, NULL, (VOID**)&SratRAType, NULL, NULL},\r
   {L"Length", 1, 1, NULL, NULL, (VOID**)&SratRALength, NULL, NULL}\r
 };\r
 \r
-/** An ACPI_PARSER array describing the GICC Affinity structure.\r
-*/\r
+/**\r
+  An ACPI_PARSER array describing the GICC Affinity structure.\r
+**/\r
 STATIC CONST ACPI_PARSER SratGicCAffinityParser[] = {\r
   {L"Type", 1, 0, L"0x%x", NULL, NULL, NULL, NULL},\r
   {L"Length", 1, 1, L"0x%x", NULL, NULL, NULL, NULL},\r
@@ -79,8 +83,9 @@ STATIC CONST ACPI_PARSER SratGicCAffinityParser[] = {
   {L"Clock Domain", 4, 14, L"0x%x", NULL, NULL, NULL, NULL}\r
 };\r
 \r
-/** An ACPI_PARSER array describing the GIC ITS Affinity structure.\r
-*/\r
+/**\r
+  An ACPI_PARSER array describing the GIC ITS Affinity structure.\r
+**/\r
 STATIC CONST ACPI_PARSER SratGicITSAffinityParser[] = {\r
   {L"Type", 1, 0, L"0x%x", NULL, NULL, NULL, NULL},\r
   {L"Length", 1, 1, L"0x%x", NULL, NULL, NULL, NULL},\r
@@ -90,8 +95,9 @@ STATIC CONST ACPI_PARSER SratGicITSAffinityParser[] = {
   {L"ITS Id", 4, 8, L"0x%x", NULL, NULL, NULL, NULL},\r
 };\r
 \r
-/** An ACPI_PARSER array describing the Memory Affinity structure.\r
-*/\r
+/**\r
+  An ACPI_PARSER array describing the Memory Affinity structure.\r
+**/\r
 STATIC CONST ACPI_PARSER SratMemAffinityParser[] = {\r
   {L"Type", 1, 0, L"0x%x", NULL, NULL, NULL, NULL},\r
   {L"Length", 1, 1, L"0x%x", NULL, NULL, NULL, NULL},\r
@@ -107,8 +113,9 @@ STATIC CONST ACPI_PARSER SratMemAffinityParser[] = {
   {L"Reserved", 8, 32, L"0x%lx", NULL, NULL, NULL, NULL}\r
 };\r
 \r
-/** An ACPI_PARSER array describing the APIC/SAPIC Affinity structure.\r
-*/\r
+/**\r
+  An ACPI_PARSER array describing the APIC/SAPIC Affinity structure.\r
+**/\r
 STATIC CONST ACPI_PARSER SratApciSapicAffinityParser[] = {\r
   {L"Type", 1, 0, L"0x%x", NULL, NULL, NULL, NULL},\r
   {L"Length", 1, 1, L"0x%x", NULL, NULL, NULL, NULL},\r
@@ -122,9 +129,9 @@ STATIC CONST ACPI_PARSER SratApciSapicAffinityParser[] = {
   {L"Clock Domain", 4, 12, L"0x%x", NULL, NULL, NULL, NULL}\r
 };\r
 \r
-/** An ACPI_PARSER array describing the Processor Local x2APIC\r
-    Affinity structure.\r
-*/\r
+/**\r
+  An ACPI_PARSER array describing the Processor Local x2APIC Affinity structure.\r
+**/\r
 STATIC CONST ACPI_PARSER SratX2ApciAffinityParser[] = {\r
   {L"Type", 1, 0, L"0x%x", NULL, NULL, NULL, NULL},\r
   {L"Length", 1, 1, L"0x%x", NULL, NULL, NULL, NULL},\r
@@ -142,7 +149,7 @@ STATIC CONST ACPI_PARSER SratX2ApciAffinityParser[] = {
   @param [in] Ptr     Pointer to the start of the field data.\r
   @param [in] Context Pointer to context specific information e.g. this\r
                       could be a pointer to the ACPI table header.\r
-*/\r
+**/\r
 STATIC\r
 VOID\r
 EFIAPI\r
@@ -157,11 +164,12 @@ ValidateSratReserved (
   }\r
 }\r
 \r
-/** This function traces the APIC Proximity Domain field.\r
+/**\r
+  This function traces the APIC Proximity Domain field.\r
 \r
   @param [in] Format  Format string for tracing the data.\r
   @param [in] Ptr     Pointer to the start of the buffer.\r
-*/\r
+**/\r
 STATIC\r
 VOID\r
 DumpSratApicProximity (\r
@@ -173,7 +181,8 @@ DumpSratApicProximity (
   Print (Format, ProximityDomain);\r
 }\r
 \r
-/** This function parses the ACPI SRAT table.\r
+/**\r
+  This function parses the ACPI SRAT table.\r
   When trace is enabled this function parses the SRAT table and\r
   traces the ACPI table fields.\r
 \r
@@ -189,7 +198,7 @@ DumpSratApicProximity (
   @param [in] Ptr                Pointer to the start of the buffer.\r
   @param [in] AcpiTableLength    Length of the ACPI table.\r
   @param [in] AcpiTableRevision  Revision of the ACPI table.\r
-*/\r
+**/\r
 VOID\r
 EFIAPI\r
 ParseAcpiSrat (\r