]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h
ShellPkg/AcpiView: ERST Parser
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / AcpiParser.h
index 6a1de4e12b098fa904ede25acab5b6da4f55712d..4b4397961bc207a7319c2c598c02cf657d87ccae 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
   Header file for ACPI parser\r
 \r
+  Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.\r
   Copyright (c) 2016 - 2020, Arm Limited. All rights reserved.\r
   Copyright (c) 2022, AMD Incorporated. All rights reserved.\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
@@ -615,6 +616,27 @@ ParseAcpiDsdt (
   IN UINT8    AcpiTableRevision\r
   );\r
 \r
+/**\r
+  This function parses the ACPI ERST table.\r
+  When trace is enabled this function parses the ERST table and\r
+  traces the ACPI table fields.\r
+\r
+  This function also performs validation of the ACPI table fields.\r
+\r
+  @param [in] Trace              If TRUE, trace the ACPI fields.\r
+  @param [in] Ptr                Pointer to the start of the buffer.\r
+  @param [in] AcpiTableLength    Length of the ACPI table.\r
+  @param [in] AcpiTableRevision  Revision of the ACPI table.\r
+**/\r
+VOID\r
+EFIAPI\r
+ParseAcpiErst (\r
+  IN BOOLEAN  Trace,\r
+  IN UINT8    *Ptr,\r
+  IN UINT32   AcpiTableLength,\r
+  IN UINT8    AcpiTableRevision\r
+  );\r
+\r
 /**\r
   This function parses the ACPI FACS table.\r
   When trace is enabled this function parses the FACS table and\r