TianoCore EDK2 master
|
#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.
Macros | |
#define | MAX_MEMORY_DOMAIN_TARGET_PRINT_MATRIX 10 |
Functions | |
STATIC VOID EFIAPI | ValidateCacheAttributes (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | DumpCacheAttributes (IN CONST CHAR16 *Format OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length) |
STATIC VOID | DumpMpda (IN UINT8 *Ptr, IN UINT32 Length) |
STATIC VOID | DumpSllbi (IN UINT8 *Ptr, IN UINT32 Length) |
STATIC VOID | DumpMsci (IN UINT8 *Ptr, IN UINT32 Length) |
VOID EFIAPI | ParseAcpiHmat (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision) |
HMAT table parser
Copyright (c) 2020 - 2024, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file HmatParser.c.
#define MAX_MEMORY_DOMAIN_TARGET_PRINT_MATRIX 10 |
Definition at line 24 of file HmatParser.c.
STATIC VOID EFIAPI DumpCacheAttributes | ( | IN CONST CHAR16 *Format | OPTIONAL, |
IN UINT8 * | Ptr, | ||
IN UINT32 | Length | ||
) |
Dumps the cache attributes field
[in] | Format | Optional format string for tracing the data. |
[in] | Ptr | Pointer to the start of the buffer. |
[in] | Length | Length of the field. |
Definition at line 119 of file HmatParser.c.
This function parses the Memory Proximity Domain Attributes Structure (Type 0).
[in] | Ptr | Pointer to the start of the Memory Proximity Domain Attributes Structure data. |
[in] | Length | Length of the Memory Proximity Domain Attributes Structure. |
Definition at line 231 of file HmatParser.c.
This function parses the Memory Side Cache Information Structure (Type 2).
[in] | Ptr | Pointer to the start of the Memory Side Cache Information Structure data. |
[in] | Length | Length of the Memory Side Cache Information Structure. |
Definition at line 494 of file HmatParser.c.
This function parses the System Locality Latency and Bandwidth Information Structure (Type 1).
[in] | Ptr | Pointer to the start of the System Locality Latency and Bandwidth Information Structure data. |
[in] | Length | Length of the System Locality Latency and Bandwidth Information Structure. |
Definition at line 257 of file HmatParser.c.
VOID EFIAPI ParseAcpiHmat | ( | IN BOOLEAN | Trace, |
IN UINT8 * | Ptr, | ||
IN UINT32 | AcpiTableLength, | ||
IN UINT8 | AcpiTableRevision | ||
) |
This function parses the ACPI HMAT table. When trace is enabled this function parses the HMAT table and traces the ACPI table fields.
This function parses the following HMAT 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 573 of file HmatParser.c.
This function validates the Cache 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 64 of file HmatParser.c.
STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo |
Definition at line 39 of file HmatParser.c.
STATIC CONST ACPI_PARSER HmatParser[] |
An ACPI_PARSER array describing the ACPI HMAT Table.
Definition at line 147 of file HmatParser.c.
STATIC CONST ACPI_PARSER HmatStructureHeaderParser[] |
An ACPI_PARSER array describing the HMAT structure header.
Definition at line 155 of file HmatParser.c.
Definition at line 28 of file HmatParser.c.
Definition at line 27 of file HmatParser.c.
STATIC CONST ACPI_PARSER MemProximityDomainAttributeParser[] |
An ACPI PARSER array describing the Memory Proximity Domain Attributes Structure - Type 0.
Definition at line 165 of file HmatParser.c.
STATIC CONST ACPI_PARSER MemSideCacheInfoParser[] |
An ACPI PARSER array describing the Memory Side Cache Information Structure - Type 2.
Definition at line 205 of file HmatParser.c.
Definition at line 30 of file HmatParser.c.
Definition at line 37 of file HmatParser.c.
Definition at line 31 of file HmatParser.c.
Definition at line 36 of file HmatParser.c.
STATIC CONST EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS* SllbiFlags |
Definition at line 34 of file HmatParser.c.
Names of System Locality Latency Bandwidth Information (SLLBI) data types
Definition at line 44 of file HmatParser.c.
STATIC CONST ACPI_PARSER SllbiParser[] |
An ACPI PARSER array describing the System Locality Latency and Bandwidth Information Structure - Type 1.
Definition at line 182 of file HmatParser.c.