TianoCore EDK2 master
|
#include <Library/PrintLib.h>
#include <Library/UefiLib.h>
#include "AcpiParser.h"
#include "AcpiView.h"
#include "AcpiViewConfig.h"
#include "PpttParser.h"
Go to the source code of this file.
Functions | |
STATIC VOID EFIAPI | ValidateCacheFlags (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateCacheNumberOfSets (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateCacheAssociativity (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateCacheLineSize (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateCacheId (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateCacheAttributes (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID | DumpProcessorHierarchyNodeStructure (IN UINT8 *Ptr, IN UINT8 Length) |
STATIC VOID | DumpCacheTypeStructure (IN UINT8 *Ptr, IN UINT8 Length) |
VOID EFIAPI | ParseAcpiPptt (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision) |
PPTT table parser
Copyright (c) 2019 - 2024, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PpttParser.c.
This function parses the Cache Type Structure (Type 1).
[in] | Ptr | Pointer to the start of the Cache Type Structure data. |
[in] | Length | Length of the Cache Type Structure. |
Definition at line 453 of file PpttParser.c.
This function parses the Processor Hierarchy Node Structure (Type 0).
[in] | Ptr | Pointer to the start of the Processor Hierarchy Node Structure data. |
[in] | Length | Length of the Processor Hierarchy Node Structure. |
Definition at line 380 of file PpttParser.c.
VOID EFIAPI ParseAcpiPptt | ( | IN BOOLEAN | Trace, |
IN UINT8 * | Ptr, | ||
IN UINT32 | AcpiTableLength, | ||
IN UINT8 | AcpiTableRevision | ||
) |
This function parses the ACPI PPTT table. When trace is enabled this function parses the PPTT table and traces the ACPI table fields.
This function parses the following processor topology 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 486 of file PpttParser.c.
STATIC VOID EFIAPI ValidateCacheAssociativity | ( | IN UINT8 * | Ptr, |
IN UINT32 | Length, | ||
IN VOID * | Context | ||
) |
This function validates the Cache Type Structure (Type 1) 'Associativity' field.
[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 180 of file PpttParser.c.
This function validates the Cache Type Structure (Type 1) Attributes field.
[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 296 of file PpttParser.c.
This function validates the Cache Type Structure (Type 1) Cache Flags field.
[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 62 of file PpttParser.c.
This function validates the Cache Type Structure (Type 1) Cache ID field.
[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 255 of file PpttParser.c.
This function validates the Cache Type Structure (Type 1) Line size field.
[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 208 of file PpttParser.c.
STATIC VOID EFIAPI ValidateCacheNumberOfSets | ( | IN UINT8 * | Ptr, |
IN UINT32 | Length, | ||
IN VOID * | Context | ||
) |
This function validates the Cache Type Structure (Type 1) 'Number of sets' field.
[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 127 of file PpttParser.c.
STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo |
Definition at line 24 of file PpttParser.c.
STATIC CONST EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_FLAGS* CacheFlags |
Definition at line 23 of file PpttParser.c.
STATIC CONST ACPI_PARSER CacheTypeStructureParser[] |
An ACPI_PARSER array describing the Cache Type Structure - Type 1.
Definition at line 355 of file PpttParser.c.
Definition at line 22 of file PpttParser.c.
STATIC CONST ACPI_PARSER PpttParser[] |
An ACPI_PARSER array describing the ACPI PPTT Table.
Definition at line 322 of file PpttParser.c.
STATIC CONST ACPI_PARSER ProcessorHierarchyNodeStructureParser[] |
An ACPI_PARSER array describing the Processor Hierarchy Node Structure - Type 0.
Definition at line 340 of file PpttParser.c.
STATIC CONST ACPI_PARSER ProcessorTopologyStructureHeaderParser[] |
An ACPI_PARSER array describing the processor topology structure header.
Definition at line 329 of file PpttParser.c.
Definition at line 21 of file PpttParser.c.
Definition at line 20 of file PpttParser.c.