-/**\r
+/** @file\r
SRAT table parser\r
\r
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.\r
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
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
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
{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
{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
{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
{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
@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
}\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
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
@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