TianoCore EDK2 master
|
#include <Library/UefiLib.h>
#include <IndustryStandard/WindowsSmmSecurityMitigationTable.h>
#include "AcpiParser.h"
Go to the source code of this file.
Functions | |
STATIC VOID EFIAPI | ValidateWsmtProtectionFlag (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
STATIC VOID EFIAPI | ValidateReserved (IN UINT8 *Ptr, IN UINT32 Length, IN VOID *Context) |
VOID EFIAPI | DumpWsmtProtectionFlag (IN CONST CHAR16 *Format OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length) |
VOID EFIAPI | ParseAcpiWsmt (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision) |
Variables | |
STATIC ACPI_DESCRIPTION_HEADER_INFO | AcpiHdrInfo |
STATIC CONST ACPI_PARSER | WsmtProtectionFlagParser [] |
STATIC CONST ACPI_PARSER | WsmtParser [] |
WSMT table parser
Copyright (c) 2024, Arm Limited. All rights reserved. Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file WsmtParser.c.
VOID EFIAPI DumpWsmtProtectionFlag | ( | IN CONST CHAR16 *Format | OPTIONAL, |
IN UINT8 * | Ptr, | ||
IN UINT32 | Length | ||
) |
This function prints WSMT Protection flag. If no format string is specified the Format must be NULL.
[in] | Format | Optional format string for tracing the data. |
[in] | Ptr | Pointer to the start of the buffer. |
Definition at line 98 of file WsmtParser.c.
VOID EFIAPI ParseAcpiWsmt | ( | IN BOOLEAN | Trace, |
IN UINT8 * | Ptr, | ||
IN UINT32 | AcpiTableLength, | ||
IN UINT8 | AcpiTableRevision | ||
) |
This function parses the ACPI WSMT table.
[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 138 of file WsmtParser.c.
This function validates the reserved bits in the WSMT Protection flag.
[in] | Ptr | Pointer to the start of the buffer. |
[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 63 of file WsmtParser.c.
STATIC VOID EFIAPI ValidateWsmtProtectionFlag | ( | IN UINT8 * | Ptr, |
IN UINT32 | Length, | ||
IN VOID * | Context | ||
) |
This function validates the WSMT Protection flag.
[in] | Ptr | Pointer to the start of the buffer. |
[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 30 of file WsmtParser.c.
STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo |
Definition at line 16 of file WsmtParser.c.
STATIC CONST ACPI_PARSER WsmtParser[] |
An ACPI_PARSER array describing the ACPI WSMT Table.
Definition at line 123 of file WsmtParser.c.
STATIC CONST ACPI_PARSER WsmtProtectionFlagParser[] |
An ACPI_PARSER array describing the WSMT Protection flag .
Definition at line 82 of file WsmtParser.c.