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