TianoCore EDK2 master
|
#include <IndustryStandard/Acpi.h>
#include <Library/UefiLib.h>
#include "AcpiParser.h"
#include "AcpiTableParser.h"
#include "AcpiView.h"
Go to the source code of this file.
Macros | |
#define | HW_REDUCED_ACPI BIT20 |
#define | FACS_SIGNATURE_OFFSET 0 |
#define | FACS_VERSION_OFFSET 32 |
#define | FACS_LENGTH_OFFSET 4 |
Functions | |
CONST ACPI_DESCRIPTION_HEADER_INFO *EFIAPI | GetAcpiXsdtHeaderInfo (VOID) |
STATIC VOID EFIAPI | ValidateFirmwareCtrl (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateXFirmwareCtrl (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateFlags (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
VOID EFIAPI | DumpFadtFlags (IN CONST CHAR16 *Format OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length) |
VOID EFIAPI | ParseAcpiFadt (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision) |
Variables | |
STATIC CONST UINT32 * | DsdtAddress |
STATIC CONST UINT64 * | X_DsdtAddress |
STATIC CONST UINT32 * | Flags |
STATIC CONST UINT32 * | FirmwareCtrl |
STATIC CONST UINT64 * | X_FirmwareCtrl |
STATIC CONST UINT8 * | FadtMinorRevision |
STATIC ACPI_DESCRIPTION_HEADER_INFO | AcpiHdrInfo |
STATIC CONST ACPI_PARSER | FadtFlagParser [] |
STATIC CONST ACPI_PARSER | FadtParser [] |
FADT table parser
Copyright (c) 2016 - 2024, Arm Limited. All rights reserved. Copyright (c) 2022, AMD Incorporated. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FadtParser.c.
#define FACS_LENGTH_OFFSET 4 |
Offset to the FACS length from the start of the FACS.
Definition at line 45 of file FadtParser.c.
#define FACS_SIGNATURE_OFFSET 0 |
Offset to the FACS signature from the start of the FACS.
Definition at line 35 of file FadtParser.c.
#define FACS_VERSION_OFFSET 32 |
Offset to the FACS revision from the start of the FACS.
Definition at line 40 of file FadtParser.c.
#define HW_REDUCED_ACPI BIT20 |
A macro defining the Hardware reduced ACPI flag
Definition at line 30 of file FadtParser.c.
This function traces FADT Flags fields. If no format string is specified the Format must be NULL.
[in] | Format | Optional format string for tracing the data. |
[in] | Ptr | Pointer to the start of the buffer. |
[in] | Length | Length of the field. |
Definition at line 176 of file FadtParser.c.
CONST ACPI_DESCRIPTION_HEADER_INFO *EFIAPI GetAcpiXsdtHeaderInfo | ( | VOID | ) |
Get the ACPI XSDT header info.
Definition at line 31 of file XsdtParser.c.
VOID EFIAPI ParseAcpiFadt | ( | IN BOOLEAN | Trace, |
IN UINT8 * | Ptr, | ||
IN UINT32 | AcpiTableLength, | ||
IN UINT8 | AcpiTableRevision | ||
) |
This function parses the ACPI FADT table. This function parses the FADT table and optionally traces the ACPI table fields.
This function also performs validation of the ACPI table fields.
[in] | Trace | If TRUE, trace the ACPI fields. |
[in] | Ptr | Pointer to the start of the buffer. |
[in] | AcpiTableLength | Length of the ACPI table. |
[in] | AcpiTableRevision | Revision of the ACPI table. |
Definition at line 276 of file FadtParser.c.
This function validates the Firmware Control Field.
[in] | Ptr | Pointer to the start of the field data. |
[in] | Length | Length of the field. |
[in] | Context | Pointer to context specific information e.g. this could be a pointer to the ACPI table header. |
Definition at line 67 of file FadtParser.c.
This function validates the flags.
[in] | Ptr | Pointer to the start of the field data. |
[in] | Length | Length of the field. |
[in] | Context | Pointer to context specific information e.g. this could be a pointer to the ACPI table header. |
Definition at line 123 of file FadtParser.c.
This function validates the X_Firmware Control Field.
[in] | Ptr | Pointer to the start of the field data. |
[in] | Length | Length of the field. |
[in] | Context | Pointer to context specific information e.g. this could be a pointer to the ACPI table header. |
Definition at line 95 of file FadtParser.c.
STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo |
Definition at line 25 of file FadtParser.c.
Definition at line 19 of file FadtParser.c.
STATIC CONST ACPI_PARSER FadtFlagParser[] |
Definition at line 140 of file FadtParser.c.
Definition at line 24 of file FadtParser.c.
STATIC CONST ACPI_PARSER FadtParser[] |
An ACPI_PARSER array describing the ACPI FADT Table.
Definition at line 201 of file FadtParser.c.
Definition at line 22 of file FadtParser.c.
Definition at line 21 of file FadtParser.c.
Definition at line 20 of file FadtParser.c.
Definition at line 23 of file FadtParser.c.