TianoCore EDK2 master
Loading...
Searching...
No Matches
ApmtParser.c File Reference

Go to the source code of this file.

Functions

VOID EFIAPI ParseAcpiApmt (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
 

Variables

STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo
 
STATIC CONST UINT16 * NodeLength
 
STATIC CONST ACPI_PARSER ApmtParser []
 
STATIC CONST ACPI_PARSER ArmPmuNodeParser []
 

Detailed Description

APMT table parser

Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. Copyright (c) 2017 - 2018, ARM Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent

Reference(s):
  • ACPI 6.2 Specification - Errata A, September 2017

Definition in file ApmtParser.c.

Function Documentation

◆ ParseAcpiApmt()

VOID EFIAPI ParseAcpiApmt ( IN BOOLEAN  Trace,
IN UINT8 *  Ptr,
IN UINT32  AcpiTableLength,
IN UINT8  AcpiTableRevision 
)

This function parses the ACPI APMT table. When trace is enabled this function parses the APMT table and traces the ACPI table fields.

This function also performs validation of the ACPI table fields.

Parameters
[in]TraceIf TRUE, trace the ACPI fields.
[in]PtrPointer to the start of the buffer.
[in]AcpiTableLengthLength of the ACPI table.
[in]AcpiTableRevisionRevision of the ACPI table.

Definition at line 62 of file ApmtParser.c.

Variable Documentation

◆ AcpiHdrInfo

Definition at line 19 of file ApmtParser.c.

◆ ApmtParser

STATIC CONST ACPI_PARSER ApmtParser[]
Initial value:
= {
}

An ACPI_PARSER array describing the ACPI APMT Table.

Definition at line 25 of file ApmtParser.c.

◆ ArmPmuNodeParser

STATIC CONST ACPI_PARSER ArmPmuNodeParser[]
Initial value:
= {
{ L"Length", 2, 0, L"0x%x", NULL, (VOID **)&NodeLength, NULL, NULL },
{ L"Node flags", 1, 2, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Node type", 1, 3, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Identifier", 4, 4, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Node Instance primary", 8, 8, L"0x%lx", NULL, NULL, NULL, NULL },
{ L"Node Instance secondary", 4, 16, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Base address 0", 8, 20, L"0x%lx", NULL, NULL, NULL, NULL },
{ L"Base address 1", 8, 28, L"0x%lx", NULL, NULL, NULL, NULL },
{ L"Overflow interrupt", 4, 36, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Reserved1", 4, 40, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Overflow interrupt flags", 4, 44, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Processor affinity", 4, 48, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Implementation ID", 4, 52, L"0x%x", NULL, NULL, NULL, NULL }
}
#define NULL
Definition: Base.h:319

An ACPI_PARSER array describing the ACPI Arm PMU Node.

Definition at line 32 of file ApmtParser.c.

◆ NodeLength

STATIC CONST UINT16* NodeLength

Definition at line 20 of file ApmtParser.c.