TianoCore EDK2 master
Loading...
Searching...
No Matches
Ras2Parser.c File Reference
#include <Library/PrintLib.h>
#include <Library/BaseLib.h>
#include <Library/UefiLib.h>
#include "AcpiParser.h"
#include "AcpiView.h"

Go to the source code of this file.

Functions

STATIC VOID DumpPccEntry (IN UINT8 *Ptr, IN UINT32 Length)
 
VOID EFIAPI ParseAcpiRas2 (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
 

Variables

STATIC CONST UINT16 * Ras2PccDescriptors
 
STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo
 
STATIC CONST ACPI_PARSER Ras2Parser []
 
STATIC CONST ACPI_PARSER Ras2StructurePccDescriptor []
 

Detailed Description

RAS2 table parser

Copyright (c) 2024, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent

Reference(s):
  • ACPI 6.5 Specification - August 2022

Definition in file Ras2Parser.c.

Function Documentation

◆ DumpPccEntry()

STATIC VOID DumpPccEntry ( IN UINT8 *  Ptr,
IN UINT32  Length 
)

Definition at line 44 of file Ras2Parser.c.

◆ ParseAcpiRas2()

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

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

This function parses the following RAS2 structures:

  • Pcc Instries
  • Entry Pcc ID
  • Entry Feature Type
  • Entry Pcc Instance

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 79 of file Ras2Parser.c.

Variable Documentation

◆ AcpiHdrInfo

Definition at line 20 of file Ras2Parser.c.

◆ Ras2Parser

STATIC CONST ACPI_PARSER Ras2Parser[]
Initial value:
= {
PARSE_ACPI_HEADER (&AcpiHdrInfo),
{ L"Reserved", 2, 36, L"0x%x", NULL, NULL, NULL, NULL },
{ L"PCC Descriptors", 2, 38, L"%d", NULL, (VOID **)&Ras2PccDescriptors, NULL, NULL }
}
#define PARSE_ACPI_HEADER(Info)
Definition: AcpiParser.h:501
#define NULL
Definition: Base.h:319

An ACPI_PARSER array describing the ACPI RAS2 Table.

Definition at line 25 of file Ras2Parser.c.

◆ Ras2PccDescriptors

STATIC CONST UINT16* Ras2PccDescriptors

Definition at line 18 of file Ras2Parser.c.

◆ Ras2StructurePccDescriptor

STATIC CONST ACPI_PARSER Ras2StructurePccDescriptor[]
Initial value:
= {
{ L"PCC ID", 1, 0, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Reserved", 1, 1, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Reserved", 1, 2, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Feature Type", 1, 3, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Instance", 4, 4, L"0x%x", NULL, NULL, NULL, NULL }
}

An ACPI_PARSER array describing the RAS2 PCC ID Entry

Definition at line 34 of file Ras2Parser.c.