26#if defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)
31STATIC UINT32 mBinTableCount;
49 CHAR16 FileNameBuffer[MAX_FILE_NAME_LEN];
57 sizeof (FileNameBuffer),
63 Print (L
"Dumping ACPI table to : %s ... ", FileNameBuffer);
66 return (Length == TransferBytes);
85 UINTN OriginalAttribute;
94 OriginalAttribute = 0;
95 SignaturePtr = (UINT8 *)(
UINTN)&Signature;
105 if (Signature == SelectedTable->
Type) {
112 if (mTableCount == 0) {
119 ((OriginalAttribute&(BIT4|BIT5|BIT6))>>4)
124 Print (L
"\nInstalled Table(s):\n");
131 L
"\t%4d. %c%c%c%c\n",
140 if (Signature == SelectedTable->
Type) {
159 ((OriginalAttribute&(BIT4|BIT5|BIT6))>>4)
165 L
"\n\n --------------- %c%c%c%c Table --------------- \n\n",
198 BOOLEAN FoundAcpiTable;
199 UINTN OriginalAttribute;
200 UINTN PrintAttribute;
212 EfiConfigurationTable =
NULL;
213 OriginalAttribute = 0;
227 FoundAcpiTable =
FALSE;
228 for (Index = 0; Index < SystemTable->NumberOfTableEntries; Index++) {
231 &(SystemTable->ConfigurationTable[Index].VendorGuid)
234 EfiConfigurationTable = &SystemTable->ConfigurationTable[Index];
235 FoundAcpiTable =
TRUE;
240 if (FoundAcpiTable) {
241 RsdpPtr = (UINT8 *)EfiConfigurationTable->
VendorTable;
246 if (RsdpRevision < 2) {
248 L
"ERROR: RSDP version less than 2 is not supported.\n"
250 return EFI_UNSUPPORTED;
253 #if defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)
266 if (EFI_ERROR (Status)) {
268 L
"ERROR: No registered parser found for RSDP.\n"
282 L
"ERROR: Failed to find ACPI Table Guid in System Configuration Table.\n"
284 return EFI_NOT_FOUND;
287 #if defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)
298 (!SelectedTable->
Found))
300 Print (L
"\nRequested ACPI Table not found.\n");
306 Print (L
"\nTable Statistics:\n");
312 ((OriginalAttribute&(BIT4|BIT5|BIT6))>>4)
324 ((OriginalAttribute&(BIT4|BIT5|BIT6))>>4)
VOID ResetWarningCount(VOID)
UINT32 GetErrorCount(VOID)
VOID ResetErrorCount(VOID)
VOID EFIAPI IncrementErrorCount(VOID)
UINT32 GetWarningCount(VOID)
EFI_STATUS EFIAPI GetParser(IN UINT32 Signature, OUT PARSE_ACPI_TABLE_PROC *ParserProc)
VOID(EFIAPI * PARSE_ACPI_TABLE_PROC)(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
BOOLEAN ProcessTableReportOptions(IN CONST UINT32 Signature, IN CONST UINT8 *TablePtr, IN CONST UINT32 Length)
STATIC BOOLEAN DumpAcpiTableToFile(IN CONST UINT8 *Ptr, IN CONST UINTN Length)
EFI_STATUS EFIAPI AcpiView(IN EFI_SYSTEM_TABLE *SystemTable)
#define RSDP_REVISION_OFFSET
#define RSDP_LENGTH_OFFSET
UINTN EFIAPI ShellDumpBufferToFile(IN CONST CHAR16 *FileNameBuffer, IN CONST VOID *Buffer, IN CONST UINTN BufferSize)
EREPORT_OPTION EFIAPI GetReportOption(VOID)
UINTN EFIAPI GetMandatoryTableSpec(VOID)
BOOLEAN EFIAPI GetConsistencyChecking(VOID)
BOOLEAN EFIAPI GetColourHighlighting(VOID)
BOOLEAN EFIAPI GetMandatoryTableValidate(VOID)
VOID EFIAPI GetSelectedAcpiTable(OUT SELECTED_ACPI_TABLE **SelectedAcpiTable)
@ ReportAll
Report All tables.
@ ReportTableList
Report List of tables.
@ ReportSelected
Report Selected table.
@ ReportDumpBinFile
Dump selected table to a file.
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
UINTN EFIAPI UnicodeSPrint(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString,...)
EFI_STATUS EFIAPI ArmSbbrReqsValidate(ARM_SBBR_VERSION Version)
VOID EFIAPI ArmSbbrResetTableCounts(VOID)
UINTN EFIAPI Print(IN CONST CHAR16 *Format,...)
EFI_SIMPLE_TEXT_OUTPUT_MODE * Mode
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * ConOut
BOOLEAN Found
The selected table has been found in the system.
CONST CHAR16 * Name
User friendly name of the selected ACPI table.
UINT32 Type
32bit signature of the selected ACPI table.