summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2019-11-22 19:31:45 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2019-12-05 06:12:36 +0000
commitd5cf0fba204d967c0df2c5404a472331656308e2 (patch)
treede4dcb6f7fd5b93d15461a0a26845c4bb5defb1e /ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h
parentc9416efeef0d4a0554db01f3fd1cdaede14856d7 (diff)
downloadedk2-d5cf0fba204d967c0df2c5404a472331656308e2.tar.gz
edk2-d5cf0fba204d967c0df2c5404a472331656308e2.tar.bz2
edk2-d5cf0fba204d967c0df2c5404a472331656308e2.zip
ShellPkg: acpiview: Add support for parsing FACS
Add support for parsing the ACPI FACS table. The FADT parser has also been updated as it links the FACS table using the FIRMWARE_CTRL or X_FIRMWARE_CTRL fields. Since the FACS table does not follow the standard ACPI header, the FADT parser extracts the FACS signature, length and version fields before invoking the FACS parser. Cc: Ray Ni <ray.ni@intel.com> Cc: Zhichao Gao <zhichao.gao@intel.com> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com> Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h')
-rw-r--r--ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h
index 20ca358bdd..f374f8ebfe 100644
--- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h
+++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h
@@ -529,6 +529,27 @@ ParseAcpiDsdt (
);
/**
+ This function parses the ACPI FACS table.
+ When trace is enabled this function parses the FACS table and
+ traces the ACPI table fields.
+
+ This function also performs validation of the ACPI table fields.
+
+ @param [in] Trace If TRUE, trace the ACPI fields.
+ @param [in] Ptr Pointer to the start of the buffer.
+ @param [in] AcpiTableLength Length of the ACPI table.
+ @param [in] AcpiTableRevision Revision of the ACPI table.
+**/
+VOID
+EFIAPI
+ParseAcpiFacs (
+ IN BOOLEAN Trace,
+ IN UINT8* Ptr,
+ IN UINT32 AcpiTableLength,
+ IN UINT8 AcpiTableRevision
+ );
+
+/**
This function parses the ACPI FADT table.
This function parses the FADT table and optionally traces the ACPI
table fields.