]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Dsdt/DsdtParser.c
ShellPkg: Add acpiview tool to dump ACPI tables
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / Parsers / Dsdt / DsdtParser.c
CommitLineData
ee4dc24f
RN
1/**\r
2 DSDT 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
22/** This function parses the ACPI DSDT table.\r
23 When trace is enabled this function parses the DSDT table and\r
24 traces the ACPI table fields.\r
25 For the DSDT table only the ACPI header fields are parsed and\r
26 traced.\r
27\r
28 @param [in] Trace If TRUE, trace the ACPI fields.\r
29 @param [in] Ptr Pointer to the start of the buffer.\r
30 @param [in] AcpiTableLength Length of the ACPI table.\r
31 @param [in] AcpiTableRevision Revision of the ACPI table.\r
32*/\r
33VOID\r
34EFIAPI\r
35ParseAcpiDsdt (\r
36 IN BOOLEAN Trace,\r
37 IN UINT8* Ptr,\r
38 IN UINT32 AcpiTableLength,\r
39 IN UINT8 AcpiTableRevision\r
40 )\r
41{\r
42 if (!Trace) {\r
43 return;\r
44 }\r
45\r
46 DumpAcpiHeader (Ptr);\r
47}\r