]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Ssdt/SsdtParser.c
ShellPkg/UefiShellAcpiViewCommandLib: Fix ECC issues
[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
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13 @par Reference(s):\r
14 - ACPI 6.2 Specification - Errata A, September 2017\r
15**/\r
16\r
17#include <IndustryStandard/Acpi.h>\r
18#include <Library/UefiLib.h>\r
19#include "AcpiParser.h"\r
20#include "AcpiTableParser.h"\r
21\r
a6eaba4d
DB
22/**\r
23 This function parses the ACPI SSDT table.\r
ee4dc24f
RN
24 When trace is enabled this function parses the SSDT table and\r
25 traces the ACPI table fields.\r
26 For the SSDT table only the ACPI header fields are\r
27 parsed and traced.\r
28\r
29 @param [in] Trace If TRUE, trace the ACPI fields.\r
30 @param [in] Ptr Pointer to the start of the buffer.\r
31 @param [in] AcpiTableLength Length of the ACPI table.\r
32 @param [in] AcpiTableRevision Revision of the ACPI table.\r
a6eaba4d 33**/\r
ee4dc24f
RN
34VOID\r
35EFIAPI\r
36ParseAcpiSsdt (\r
37 IN BOOLEAN Trace,\r
38 IN UINT8* Ptr,\r
39 IN UINT32 AcpiTableLength,\r
40 IN UINT8 AcpiTableRevision\r
41 )\r
42{\r
43 if (!Trace) {\r
44 return;\r
45 }\r
46\r
47 DumpAcpiHeader (Ptr);\r
48}\r