]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Ssdt/SsdtParser.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / Parsers / Ssdt / SsdtParser.c
CommitLineData
a6eaba4d 1/** @file\r
ee4dc24f
RN
2 SSDT table parser\r
3\r
4 Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.\r
56ba3746 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
ee4dc24f
RN
6\r
7 @par Reference(s):\r
8 - ACPI 6.2 Specification - Errata A, September 2017\r
9**/\r
10\r
11#include <IndustryStandard/Acpi.h>\r
12#include <Library/UefiLib.h>\r
13#include "AcpiParser.h"\r
14#include "AcpiTableParser.h"\r
15\r
a6eaba4d
DB
16/**\r
17 This function parses the ACPI SSDT table.\r
ee4dc24f
RN
18 When trace is enabled this function parses the SSDT table and\r
19 traces the ACPI table fields.\r
20 For the SSDT table only the ACPI header fields are\r
21 parsed and traced.\r
22\r
23 @param [in] Trace If TRUE, trace the ACPI fields.\r
24 @param [in] Ptr Pointer to the start of the buffer.\r
25 @param [in] AcpiTableLength Length of the ACPI table.\r
26 @param [in] AcpiTableRevision Revision of the ACPI table.\r
a6eaba4d 27**/\r
ee4dc24f
RN
28VOID\r
29EFIAPI\r
30ParseAcpiSsdt (\r
47d20b54
MK
31 IN BOOLEAN Trace,\r
32 IN UINT8 *Ptr,\r
33 IN UINT32 AcpiTableLength,\r
34 IN UINT8 AcpiTableRevision\r
ee4dc24f
RN
35 )\r
36{\r
37 if (!Trace) {\r
38 return;\r
39 }\r
40\r
41 DumpAcpiHeader (Ptr);\r
42}\r