29CONST CHAR16 gShellAcpiViewFileName[] = L
"ShellCommand";
105 while (Count-- != 0) {
110 if (EFI_ERROR (Status)) {
130 IN CONST CHAR16 *FileNameBuffer,
136 SHELL_FILE_HANDLE DumpFileHandle;
142 EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE,
146 if (EFI_ERROR (Status)) {
152 gShellAcpiViewHiiHandle,
158 TransferBytes = BufferSize;
165 if (EFI_ERROR (Status)) {
166 Print (L
"ERROR: Failed to write binary file.\n");
173 return TransferBytes;
187 return gShellAcpiViewFileName;
210 CHAR16 *ProblemParam;
211 SHELL_FILE_HANDLE TmpDumpFileHandle;
212 CONST CHAR16 *MandatoryTableSpecStr;
213 CONST CHAR16 *SelectedTableName;
220 TmpDumpFileHandle =
NULL;
223 if (EFI_ERROR (Status)) {
224 if ((Status == EFI_VOLUME_CORRUPTED) && (ProblemParam !=
NULL)) {
230 gShellAcpiViewHiiHandle,
236 Print (L
"acpiview: Error processing input parameter(s)\n");
247 gShellAcpiViewHiiHandle,
257 gShellAcpiViewHiiHandle,
268 gShellAcpiViewHiiHandle,
281 gShellAcpiViewHiiHandle,
294 gShellAcpiViewHiiHandle,
306 gShellAcpiViewHiiHandle,
323 if (MandatoryTableSpecStr !=
NULL) {
331 if (SelectedTableName !=
NULL) {
337 CHAR16 FileNameBuffer[MAX_FILE_NAME_LEN];
342 sizeof (FileNameBuffer),
350 EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE |
351 EFI_FILE_MODE_CREATE,
355 if (EFI_ERROR (Status)) {
357 TmpDumpFileHandle =
NULL;
363 gShellAcpiViewHiiHandle,
377 if (EFI_ERROR (Status)) {
384 if (Package !=
NULL) {
412 gShellAcpiViewHiiHandle =
NULL;
415 if ((
PcdGet8 (PcdShellProfileMask) & BIT1) == 0) {
420 if (EFI_ERROR (Status)) {
421 Print (L
"acpiview: Error failed to register parser.\n");
426 &gShellAcpiViewHiiGuid,
428 UefiShellAcpiViewCommandLibStrings,
431 if (gShellAcpiViewHiiHandle ==
NULL) {
432 return EFI_DEVICE_ERROR;
443 gShellAcpiViewHiiHandle,
463 if (gShellAcpiViewHiiHandle !=
NULL) {
#define EFI_ACPI_6_2_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE
#define EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE
#define EFI_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE
#define EFI_ACPI_6_2_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE
#define EFI_ACPI_6_2_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE
#define EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE
#define EFI_ACPI_6_2_IO_REMAPPING_TABLE_SIGNATURE
#define EFI_ACPI_6_2_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE
#define EFI_ACPI_6_2_DEBUG_PORT_2_TABLE_SIGNATURE
#define EFI_ACPI_6_2_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE
#define EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE
#define EFI_ACPI_6_2_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE
#define EFI_ACPI_6_3_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE
#define EFI_ACPI_6_4_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE
#define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE
#define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE
#define EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE
#define EFI_ACPI_6_4_ARM_PERFORMANCE_MONITORING_UNIT_TABLE_SIGNATURE
#define EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE
#define EFI_ACPI_6_5_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE
#define EFI_ACPI_6_5_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE
#define EFI_ACPI_6_5_ACPI_RAS_FEATURE_TABLE_SIGNATURE
#define EFI_ACPI_6_5_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE
#define EFI_ACPI_6_5_ACPI_RAS2_FEATURE_TABLE_SIGNATURE
#define EFI_ACPI_MEMORY_SYSTEM_RESOURCE_PARTITIONING_AND_MONITORING_TABLE_SIGNATURE
#define EFI_ACPI_6_5_ERROR_INJECTION_TABLE_SIGNATURE
VOID EFIAPI ParseAcpiXsdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiIort(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiRasf(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiRas2(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiWsmt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiPcct(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiMadt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiMcfg(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiRsdp(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiFacs(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiMpam(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiHmat(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiDsdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiEinj(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiGtdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiSsdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiSrat(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiFadt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiDbg2(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiSlit(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiBgrt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiHest(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiPptt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiAest(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiErst(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiHpet(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiApmt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
VOID EFIAPI ParseAcpiSpcr(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
EFI_STATUS EFIAPI RegisterParser(IN UINT32 Signature, IN PARSE_ACPI_TABLE_PROC ParserProc)
EFI_STATUS EFIAPI AcpiView(IN EFI_SYSTEM_TABLE *SystemTable)
VOID EFIAPI SetMandatoryTableSpec(UINTN Spec)
VOID EFIAPI SetMandatoryTableValidate(BOOLEAN Validate)
VOID EFIAPI SetColourHighlighting(BOOLEAN Highlight)
VOID EFIAPI SelectAcpiTable(IN CONST CHAR16 *TableName)
VOID EFIAPI SetReportOption(EREPORT_OPTION ReportType)
VOID EFIAPI AcpiConfigSetDefaults(VOID)
VOID EFIAPI SetConsistencyChecking(BOOLEAN ConsistencyChecking)
@ ReportTableList
Report List of tables.
@ ReportSelected
Report Selected table.
@ ReportDumpBinFile
Dump selected table to a file.
#define EFI_ACPI_6_3_ARM_ERROR_SOURCE_TABLE_SIGNATURE
VOID EFIAPI FreePool(IN VOID *Buffer)
EFI_HII_HANDLE EFIAPI HiiAddPackages(IN CONST EFI_GUID *PackageListGuid, IN EFI_HANDLE DeviceHandle OPTIONAL,...)
VOID EFIAPI HiiRemovePackages(IN EFI_HII_HANDLE HiiHandle)
UINTN EFIAPI UnicodeSPrint(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString,...)
@ SHELL_INVALID_PARAMETER
#define PcdGet8(TokenName)
RETURN_STATUS EFIAPI ShellCommandRegisterCommandName(IN CONST CHAR16 *CommandString, IN SHELL_RUN_COMMAND CommandHandler, IN SHELL_GET_MAN_FILENAME GetManFileName, IN UINT32 ShellMinSupportLevel, IN CONST CHAR16 *ProfileName, IN CONST BOOLEAN CanAffectLE, IN CONST EFI_HII_HANDLE HiiHandle, IN CONST EFI_STRING_ID ManFormatHelp)
CONST CHAR16 *EFIAPI ShellCommandLineGetValue(IN CONST LIST_ENTRY *CheckPackage, IN CHAR16 *KeyString)
EFI_STATUS EFIAPI ShellDeleteFile(IN SHELL_FILE_HANDLE *FileHandle)
#define ShellCommandLineParse(CheckList, CheckPackage, ProblemParam, AutoPageBreak)
Make it easy to upgrade from older versions of the shell library.
EFI_STATUS EFIAPI ShellPrintHiiEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR8 *Language OPTIONAL, IN CONST EFI_STRING_ID HiiFormatStringId, IN CONST EFI_HII_HANDLE HiiFormatHandle,...)
BOOLEAN EFIAPI ShellCommandLineGetFlag(IN CONST LIST_ENTRY *CONST CheckPackage, IN CONST CHAR16 *CONST KeyString)
@ TypeValue
A flag that has some data following it with a space (IE "-a 1").
@ TypeFlag
A flag that is present or not present only (IE "-a").
EFI_STATUS EFIAPI ShellOpenFileByName(IN CONST CHAR16 *FileName, OUT SHELL_FILE_HANDLE *FileHandle, IN UINT64 OpenMode, IN UINT64 Attributes)
VOID EFIAPI ShellCommandLineFreeVarList(IN LIST_ENTRY *CheckPackage)
UINTN EFIAPI ShellHexStrToUintn(IN CONST CHAR16 *String)
UINTN EFIAPI ShellCommandLineGetCount(IN CONST LIST_ENTRY *CheckPackage)
EFI_STATUS EFIAPI ShellWriteFile(IN SHELL_FILE_HANDLE FileHandle, IN OUT UINTN *BufferSize, IN VOID *Buffer)
EFI_STATUS EFIAPI ShellCloseFile(IN SHELL_FILE_HANDLE *FileHandle)
UINTN EFIAPI Print(IN CONST CHAR16 *Format,...)
EFI_STATUS EFIAPI UefiShellAcpiViewCommandLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI UefiShellAcpiViewCommandLibDestructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS RegisterAllParsers()
STATIC CONST ACPI_TABLE_PARSER ParserList[]
CONST CHAR16 *EFIAPI ShellCommandGetManFileNameAcpiView(VOID)
STATIC CONST SHELL_PARAM_ITEM ParamList[]
SHELL_STATUS EFIAPI ShellCommandRunAcpiView(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
UINTN EFIAPI ShellDumpBufferToFile(IN CONST CHAR16 *FileNameBuffer, IN CONST VOID *Buffer, IN CONST UINTN BufferSize)