TianoCore EDK2 master
|
#include <IndustryStandard/Acpi.h>
#include <Library/UefiLib.h>
#include "AcpiParser.h"
#include "AcpiTableParser.h"
Go to the source code of this file.
Functions | |
STATIC VOID EFIAPI | ValidateErstAction (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateErstInstruction (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateErstFlags (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | FormatByte (IN CONST CHAR16 *Table[], IN UINT8 Index, IN UINT8 NumEntries) |
STATIC VOID EFIAPI | DumpErstAction (IN CONST CHAR16 *Format OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length) |
STATIC VOID EFIAPI | DumpErstInstruction (IN CONST CHAR16 *Format OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length) |
VOID EFIAPI | ParseAcpiErst (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision) |
Variables | |
STATIC ACPI_DESCRIPTION_HEADER_INFO | AcpiHdrInfo |
STATIC UINT32 * | InstructionEntryCount |
STATIC CONST CHAR16 * | ErstActionTable [] |
STATIC CONST CHAR16 * | ErstInstructionTable [] |
STATIC CONST ACPI_PARSER | ErstParser [] |
STATIC CONST ACPI_PARSER | SerializationInstructionEntryParser [] |
ERST table parser
Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. Copyright (c) 2016 - 2024, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ErstParser.c.
STATIC VOID EFIAPI DumpErstAction | ( | IN CONST CHAR16 *Format | OPTIONAL, |
IN UINT8 * | Ptr, | ||
IN UINT32 | Length | ||
) |
Prints the Erst Action.
[in] | Format | Optional format string for tracing the data. |
[in] | Ptr | Pointer to the Action byte. |
[in] | Length | Length of the field. |
Definition at line 179 of file ErstParser.c.
STATIC VOID EFIAPI DumpErstInstruction | ( | IN CONST CHAR16 *Format | OPTIONAL, |
IN UINT8 * | Ptr, | ||
IN UINT32 | Length | ||
) |
Prints the Erst Instruction.
[in] | Format | Optional format string for tracing the data. |
[in] | Ptr | Pointer to the Instruction byte. |
[in] | Length | Length of the field. |
Definition at line 198 of file ErstParser.c.
Looks up and prints the string corresponding to the index.
[in] | Table | Lookup table. |
[in] | Index | Entry to print. |
[in] | NumEntries | Number of valid entries in the table. |
Definition at line 148 of file ErstParser.c.
VOID EFIAPI ParseAcpiErst | ( | IN BOOLEAN | Trace, |
IN UINT8 * | Ptr, | ||
IN UINT32 | AcpiTableLength, | ||
IN UINT8 | AcpiTableRevision | ||
) |
This function parses the ACPI ERST table. When trace is enabled this function parses the ERST table and 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 244 of file ErstParser.c.
Validate Erst action.
[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 80 of file ErstParser.c.
Validate Erst 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 126 of file ErstParser.c.
Validate Erst instruction.
[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 103 of file ErstParser.c.
STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo |
Definition at line 18 of file ErstParser.c.
An array of strings describing the Erst actions
Definition at line 24 of file ErstParser.c.
An array of strings describing the Erst instructions
Definition at line 47 of file ErstParser.c.
STATIC CONST ACPI_PARSER ErstParser[] |
An ACPI_PARSER array describing the ACPI ERST Table.
Definition at line 210 of file ErstParser.c.
STATIC UINT32* InstructionEntryCount |
Definition at line 19 of file ErstParser.c.
STATIC CONST ACPI_PARSER SerializationInstructionEntryParser[] |
An ACPI_PARSER array describing the Serialization Instruction Entry structure.
Definition at line 220 of file ErstParser.c.