audk/ShellPkg/Library/UefiShellAcpiViewCommandLib
Ruiyu Ni ee4dc24f57 ShellPkg: Add acpiview tool to dump ACPI tables
This program is provided to allow examination of ACPI table contents
from the UEFI Shell.  This can help with investigations, especially at
that stage where the tables are not enabling an OS to boot.
The program is not exhaustive, and only encapsulates detailed knowledge
of a limited number of table types.

Default behaviour is to display the content of all tables installed.
'Known' table types will be parsed and displayed with descriptions and
field values.  Where appropriate a degree of consistency checking is
done and errors may be reported in the output.
Other table types will be displayed as an array of Hexadecimal bytes.

To facilitate debugging, the -s and -d options can be used to generate a
binary file image of a table that can be copied elsewhere for
investigation using tools such as those provided by acpica.org.  This is
especially relevant for AML type tables like DSDT and SSDT.

The inspiration for this is the existing smbiosview Debug1 Shell
command.

Many tables are not explicitly handled, in part because no examples are
available for our testing.

The program is designed to be extended to new tables with minimal
effort, and contributions are invited.

Change-Id: Ifa23dc80ab8ab042c56e88424847e796a8122a7c
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2018-04-23 17:52:44 +08:00
..
Parsers ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
AcpiParser.c ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
AcpiParser.h ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
AcpiTableParser.c ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
AcpiTableParser.h ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
AcpiView.c ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
AcpiView.h ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
UefiShellAcpiViewCommandLib.c ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
UefiShellAcpiViewCommandLib.h ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
UefiShellAcpiViewCommandLib.inf ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00
UefiShellAcpiViewCommandLib.uni ShellPkg: Add acpiview tool to dump ACPI tables 2018-04-23 17:52:44 +08:00