TianoCore EDK2 master
|
#include <IndustryStandard/Acpi.h>
#include <Library/PrintLib.h>
#include <Library/UefiLib.h>
#include "AcpiParser.h"
#include "AcpiTableParser.h"
#include "AcpiViewConfig.h"
Go to the source code of this file.
Functions | |
STATIC VOID EFIAPI | ValidateSratReserved (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateSratDeviceHandleType (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | DumpSratPciBdfNumber (IN CONST CHAR16 *Format, IN UINT8 *Ptr, IN UINT32 Length) |
STATIC VOID EFIAPI | DumpSratDeviceHandle (IN CONST CHAR16 *Format, IN UINT8 *Ptr, IN UINT32 Length) |
STATIC VOID EFIAPI | DumpSratApicProximity (IN CONST CHAR16 *Format, IN UINT8 *Ptr, IN UINT32 Length) |
VOID EFIAPI | ParseAcpiSrat (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision) |
SRAT table parser
Copyright (c) 2016 - 2024, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SratParser.c.
STATIC VOID EFIAPI DumpSratApicProximity | ( | IN CONST CHAR16 * | Format, |
IN UINT8 * | Ptr, | ||
IN UINT32 | Length | ||
) |
This function traces the APIC Proximity Domain field.
[in] | Format | Format string for tracing the data. |
[in] | Ptr | Pointer to the start of the buffer. |
[in] | Length | Length of the field. |
Definition at line 224 of file SratParser.c.
STATIC VOID EFIAPI DumpSratDeviceHandle | ( | IN CONST CHAR16 * | Format, |
IN UINT8 * | Ptr, | ||
IN UINT32 | Length | ||
) |
This function traces the Device Handle field inside Generic Initiator Affinity Structure.
[in] | Format | Format string for tracing the data. |
[in] | Ptr | Pointer to the start of the buffer. |
[in] | Length | Length of the field. |
Definition at line 179 of file SratParser.c.
STATIC VOID EFIAPI DumpSratPciBdfNumber | ( | IN CONST CHAR16 * | Format, |
IN UINT8 * | Ptr, | ||
IN UINT32 | Length | ||
) |
This function traces the PCI BDF Number field inside Device Handle - PCI
[in] | Format | Format string for tracing the data. |
[in] | Ptr | Pointer to the start of the buffer. |
[in] | Length | Length of the field. |
Definition at line 89 of file SratParser.c.
VOID EFIAPI ParseAcpiSrat | ( | IN BOOLEAN | Trace, |
IN UINT8 * | Ptr, | ||
IN UINT32 | AcpiTableLength, | ||
IN UINT8 | AcpiTableRevision | ||
) |
This function parses the ACPI SRAT table. When trace is enabled this function parses the SRAT table and traces the ACPI table fields.
This function parses the following Resource Allocation Structures:
This function also performs validation of the ACPI table fields.
[in] | Trace | If TRUE, trace the ACPI fields. |
[in] | Ptr | Pointer to the start of the buffer. |
[in] | AcpiTableLength | Length of the ACPI table. |
[in] | AcpiTableRevision | Revision of the ACPI table. |
Definition at line 364 of file SratParser.c.
STATIC VOID EFIAPI ValidateSratDeviceHandleType | ( | IN UINT8 * | Ptr, |
IN UINT32 | Length, | ||
IN VOID * | Context | ||
) |
This function validates the Device Handle Type field in the Generic Initiator Affinity Structure.
[in] | Ptr | Pointer to the start of the field data. |
[in] | Length | Length of the field. |
[in] | Context | Pointer to context specific information e.g. this could be a pointer to the ACPI table header. |
Definition at line 59 of file SratParser.c.
This function validates the Reserved field in the SRAT table header.
[in] | Ptr | Pointer to the start of the field data. |
[in] | Length | Length of the field. |
[in] | Context | Pointer to context specific information e.g. this could be a pointer to the ACPI table header. |
Definition at line 35 of file SratParser.c.
STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo |
Definition at line 22 of file SratParser.c.
STATIC CONST ACPI_PARSER SratApciSapicAffinityParser[] |
An ACPI_PARSER array describing the APIC/SAPIC Affinity structure.
Definition at line 316 of file SratParser.c.
STATIC CONST ACPI_PARSER SratDeviceHandleAcpiParser[] |
STATIC CONST ACPI_PARSER SratDeviceHandlePciParser[] |
An ACPI_PARSER array describing the Device Handle - PCI
Definition at line 161 of file SratParser.c.
Definition at line 21 of file SratParser.c.
STATIC CONST ACPI_PARSER SratGenericInitiatorAffinityParser[] |
An ACPI_PARSER array describing the Generic Initiator Affinity Structure
Definition at line 282 of file SratParser.c.
STATIC CONST ACPI_PARSER SratGicCAffinityParser[] |
An ACPI_PARSER array describing the GICC Affinity structure.
Definition at line 257 of file SratParser.c.
STATIC CONST ACPI_PARSER SratGicITSAffinityParser[] |
An ACPI_PARSER array describing the GIC ITS Affinity structure.
Definition at line 270 of file SratParser.c.
STATIC CONST ACPI_PARSER SratMemAffinityParser[] |
An ACPI_PARSER array describing the Memory Affinity structure.
Definition at line 298 of file SratParser.c.
STATIC CONST ACPI_PARSER SratParser[] |
An ACPI_PARSER array describing the SRAT Table.
Definition at line 240 of file SratParser.c.
Definition at line 20 of file SratParser.c.
Definition at line 19 of file SratParser.c.
STATIC CONST ACPI_PARSER SratResourceAllocationParser[] |
STATIC CONST ACPI_PARSER SratX2ApciAffinityParser[] |
An ACPI_PARSER array describing the Processor Local x2APIC Affinity structure.
Definition at line 332 of file SratParser.c.