53 IN UINT32 AcpiTableLength,
54 IN UINT8 AcpiTableRevision
76 TablePointer = (UINT64 *)(Ptr + TableOffset);
77 while (Offset < AcpiTableLength) {
78 CONST UINT32 *Signature;
80 CONST UINT8 *Revision;
82 if ((UINT64 *)(
UINTN)(*TablePointer) !=
NULL) {
86 (UINT8 *)(
UINTN)(*TablePointer),
92 SignaturePtr = (UINT8 *)Signature;
97 L
"Entry[%d] - %c%c%c%c",
114 Print (L
"0x%lx\n", *TablePointer);
117 if ((UINT64 *)(
UINTN)(*TablePointer) ==
NULL) {
120 L
"ERROR: Invalid table entry at 0x%lx, table address is 0x%lx\n",
126 Offset +=
sizeof (UINT64);
132 Offset = TableOffset;
133 TablePointer = (UINT64 *)(Ptr + TableOffset);
134 while (Offset < AcpiTableLength) {
135 if ((UINT64 *)(
UINTN)(*TablePointer) !=
NULL) {
139 Offset +=
sizeof (UINT64);
UINT32 EFIAPI ParseAcpiHeader(IN UINT8 *Ptr, OUT CONST UINT32 **Signature, OUT CONST UINT32 **Length, OUT CONST UINT8 **Revision)
VOID EFIAPI PrintFieldName(IN UINT32 Indent, IN CONST CHAR16 *FieldName)
VOID EFIAPI IncrementErrorCount(VOID)
UINT32 EFIAPI ParseAcpi(IN BOOLEAN Trace, IN UINT32 Indent, IN CONST CHAR8 *AsciiName OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length, IN CONST ACPI_PARSER *Parser, IN UINT32 ParserItems)
#define PARSER_PARAMS(Parser)
#define PARSE_ACPI_HEADER(Info)
VOID EFIAPI ProcessAcpiTable(IN UINT8 *Ptr)
UINTN EFIAPI UnicodeSPrint(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString,...)
UINTN EFIAPI Print(IN CONST CHAR16 *Format,...)
VOID EFIAPI ParseAcpiXsdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
CONST ACPI_DESCRIPTION_HEADER_INFO *EFIAPI GetAcpiXsdtHeaderInfo(VOID)
STATIC CONST ACPI_PARSER XsdtParser[]