TianoCore EDK2 master
|
#include <IndustryStandard/Acpi.h>
#include <IndustryStandard/SerialPortConsoleRedirectionTable.h>
#include <Library/UefiLib.h>
#include "AcpiParser.h"
#include "AcpiTableParser.h"
Go to the source code of this file.
Functions | |
STATIC VOID EFIAPI | ValidateInterruptType (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateIrq (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
VOID EFIAPI | ParseAcpiSpcr (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision) |
Variables | |
STATIC ACPI_DESCRIPTION_HEADER_INFO | AcpiHdrInfo |
STATIC CONST ACPI_PARSER | SpcrParser [] |
SPCR table parser
Copyright (c) 2016 - 2024, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SpcrParser.c.
VOID EFIAPI ParseAcpiSpcr | ( | IN BOOLEAN | Trace, |
IN UINT8 * | Ptr, | ||
IN UINT32 | AcpiTableLength, | ||
IN UINT8 | AcpiTableRevision | ||
) |
This function parses the ACPI SPCR table. When trace is enabled this function parses the SPCR table and traces the ACPI table fields.
This function also performs validations 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 131 of file SpcrParser.c.
This function validates the Interrupt Type.
[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 32 of file SpcrParser.c.
This function validates the Irq.
[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 SpcrParser.c.
STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo |
Definition at line 19 of file SpcrParser.c.
STATIC CONST ACPI_PARSER SpcrParser[] |
An ACPI_PARSER array describing the ACPI SPCR Table.
Definition at line 92 of file SpcrParser.c.