36 UINT32 ProtectionFlag;
38 ProtectionFlag = *(UINT32 *)Ptr;
40 if ((ProtectionFlag & EFI_WSMT_PROTECTION_FLAGS_COMM_BUFFER_NESTED_PTR_PROTECTION) \
41 == EFI_WSMT_PROTECTION_FLAGS_COMM_BUFFER_NESTED_PTR_PROTECTION)
43 if ((ProtectionFlag & EFI_WSMT_PROTECTION_FLAGS_FIXED_COMM_BUFFERS) \
44 != EFI_WSMT_PROTECTION_FLAGS_FIXED_COMM_BUFFERS)
47 Print (L
"ERROR: COMM_BUFFER_NESTED_PTR_PROTECTION is set but FIXED_COMM_BUFFERS is not set.\n");
69 UINT32 ProtectionFlag;
71 ProtectionFlag = *(UINT32 *)Ptr;
73 if ((ProtectionFlag & 0xFFFFFFF8) != 0) {
75 Print (L
"ERROR: Reserved bits are not zero.\n");
84 { L
"COMM_BUFFER_NESTED_PTR_PROTECTION ", 1, 1, L
"0x%x",
NULL,
NULL,
NULL,
NULL },
99 IN CONST CHAR16 *Format OPTIONAL,
104 if (Format !=
NULL) {
105 Print (Format, *(UINT32 *)Ptr);
109 Print (L
"0x%X\n", *(UINT32 *)Ptr);
141 IN UINT32 AcpiTableLength,
142 IN UINT8 AcpiTableRevision
VOID EFIAPI IncrementErrorCount(VOID)
UINT32 EFIAPI ParseAcpi(IN BOOLEAN Trace, IN UINT32 Indent, IN CONST CHAR8 *AsciiName OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length, IN CONST ACPI_PARSER *Parser, IN UINT32 ParserItems)
UINT32 EFIAPI ParseAcpiBitFields(IN BOOLEAN Trace, IN UINT32 Indent, IN CONST CHAR8 *AsciiName OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length, IN CONST ACPI_PARSER *Parser, IN UINT32 ParserItems)
#define PARSER_PARAMS(Parser)
#define PARSE_ACPI_HEADER(Info)
UINTN EFIAPI Print(IN CONST CHAR16 *Format,...)
VOID EFIAPI ParseAcpiWsmt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
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)
STATIC CONST ACPI_PARSER WsmtParser[]
VOID EFIAPI DumpWsmtProtectionFlag(IN CONST CHAR16 *Format OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length)
STATIC CONST ACPI_PARSER WsmtProtectionFlagParser[]