2018-06-04 03:14:51 +02:00
|
|
|
/** @file
|
2018-04-20 10:08:22 +02:00
|
|
|
SSDT table parser
|
|
|
|
|
|
|
|
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
|
2019-04-04 01:07:06 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2018-04-20 10:08:22 +02:00
|
|
|
|
|
|
|
@par Reference(s):
|
|
|
|
- ACPI 6.2 Specification - Errata A, September 2017
|
|
|
|
**/
|
|
|
|
|
|
|
|
#include <IndustryStandard/Acpi.h>
|
|
|
|
#include <Library/UefiLib.h>
|
|
|
|
#include "AcpiParser.h"
|
|
|
|
#include "AcpiTableParser.h"
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
This function parses the ACPI SSDT table.
|
2018-04-20 10:08:22 +02:00
|
|
|
When trace is enabled this function parses the SSDT table and
|
|
|
|
traces the ACPI table fields.
|
|
|
|
For the SSDT table only the ACPI header fields are
|
|
|
|
parsed and traced.
|
|
|
|
|
|
|
|
@param [in] Trace If TRUE, trace the ACPI fields.
|
|
|
|
@param [in] Ptr Pointer to the start of the buffer.
|
|
|
|
@param [in] AcpiTableLength Length of the ACPI table.
|
|
|
|
@param [in] AcpiTableRevision Revision of the ACPI table.
|
2018-06-04 03:14:51 +02:00
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
ParseAcpiSsdt (
|
2021-12-05 23:54:13 +01:00
|
|
|
IN BOOLEAN Trace,
|
|
|
|
IN UINT8 *Ptr,
|
|
|
|
IN UINT32 AcpiTableLength,
|
|
|
|
IN UINT8 AcpiTableRevision
|
2018-04-20 10:08:22 +02:00
|
|
|
)
|
|
|
|
{
|
|
|
|
if (!Trace) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
DumpAcpiHeader (Ptr);
|
|
|
|
}
|