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