SsdtParser.c 1.0 KB

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