TianoCore EDK2 master
|
#include <IndustryStandard/Acpi.h>
#include <Library/UefiLib.h>
#include "AcpiParser.h"
#include "AcpiTableParser.h"
#include "AcpiViewConfig.h"
Go to the source code of this file.
Macros | |
#define | GT_BLOCK_TIMER_COUNT_MAX 8 |
Functions | |
STATIC VOID EFIAPI | ValidateGtBlockTimerCount (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateGtFrameNumber (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID | DumpGTBlock (IN UINT8 *Ptr, IN UINT16 Length) |
STATIC VOID | DumpWatchdogTimer (IN UINT8 *Ptr, IN UINT16 Length) |
VOID EFIAPI | ParseAcpiGtdt (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision) |
Variables | |
STATIC CONST UINT32 * | GtdtPlatformTimerCount |
STATIC CONST UINT32 * | GtdtPlatformTimerOffset |
STATIC CONST UINT8 * | PlatformTimerType |
STATIC CONST UINT16 * | PlatformTimerLength |
STATIC CONST UINT32 * | GtBlockTimerCount |
STATIC CONST UINT32 * | GtBlockTimerOffset |
STATIC ACPI_DESCRIPTION_HEADER_INFO | AcpiHdrInfo |
STATIC CONST ACPI_PARSER | GtdtParser [] |
STATIC CONST ACPI_PARSER | GtPlatformTimerHeaderParser [] |
STATIC CONST ACPI_PARSER | GtBlockParser [] |
STATIC CONST ACPI_PARSER | GtBlockTimerParser [] |
STATIC CONST ACPI_PARSER | ArmGenericWatchdogParser [] |
GTDT table parser
Copyright (c) 2016 - 2024, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file GtdtParser.c.
#define GT_BLOCK_TIMER_COUNT_MAX 8 |
Definition at line 18 of file GtdtParser.c.
This function parses the Platform GT Block.
[in] | Ptr | Pointer to the start of the GT Block data. |
[in] | Length | Length of the GT Block structure. |
Definition at line 180 of file GtdtParser.c.
This function parses the Platform Watchdog timer.
[in] | Ptr | Pointer to the start of the watchdog timer data. |
[in] | Length | Length of the watchdog timer structure. |
Definition at line 237 of file GtdtParser.c.
VOID EFIAPI ParseAcpiGtdt | ( | IN BOOLEAN | Trace, |
IN UINT8 * | Ptr, | ||
IN UINT32 | AcpiTableLength, | ||
IN UINT8 | AcpiTableRevision | ||
) |
This function parses the ACPI GTDT table. When trace is enabled this function parses the GTDT table and traces the ACPI table fields.
This function also parses the following platform timer structures:
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 270 of file GtdtParser.c.
STATIC VOID EFIAPI ValidateGtBlockTimerCount | ( | IN UINT8 * | Ptr, |
IN UINT32 | Length, | ||
IN VOID * | Context | ||
) |
This function validates the GT Block timer count.
[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 40 of file GtdtParser.c.
This function validates the GT Frame Number.
[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 71 of file GtdtParser.c.
STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo |
Definition at line 27 of file GtdtParser.c.
STATIC CONST ACPI_PARSER ArmGenericWatchdogParser[] |
An ACPI_PARSER array describing the Platform Watchdog.
Definition at line 162 of file GtdtParser.c.
STATIC CONST ACPI_PARSER GtBlockParser[] |
An ACPI_PARSER array describing the Platform GT Block.
Definition at line 132 of file GtdtParser.c.
Definition at line 25 of file GtdtParser.c.
Definition at line 26 of file GtdtParser.c.
STATIC CONST ACPI_PARSER GtBlockTimerParser[] |
An ACPI_PARSER array describing the GT Block timer.
Definition at line 146 of file GtdtParser.c.
STATIC CONST ACPI_PARSER GtdtParser[] |
An ACPI_PARSER array describing the ACPI GTDT Table.
Definition at line 94 of file GtdtParser.c.
Definition at line 21 of file GtdtParser.c.
Definition at line 22 of file GtdtParser.c.
STATIC CONST ACPI_PARSER GtPlatformTimerHeaderParser[] |
An ACPI_PARSER array describing the Platform timer header.
Definition at line 123 of file GtdtParser.c.
Definition at line 24 of file GtdtParser.c.
Definition at line 23 of file GtdtParser.c.