ValidateItsIdMappingCount (\r
IN UINT8* Ptr,\r
IN VOID* Context\r
- );\r
+ )\r
+{\r
+ if (*(UINT32*)Ptr != 0) {\r
+ IncrementErrorCount ();\r
+ Print (L"\nERROR: IORT ID Mapping count must be zero.");\r
+ }\r
+}\r
\r
/**\r
This function validates the ID Mapping array offset for the ITS node.\r
ValidateItsIdArrayReference (\r
IN UINT8* Ptr,\r
IN VOID* Context\r
- );\r
+ )\r
+{\r
+ if (*(UINT32*)Ptr != 0) {\r
+ IncrementErrorCount ();\r
+ Print (L"\nERROR: IORT ID Mapping offset must be zero.");\r
+ }\r
+}\r
\r
/**\r
Helper Macro for populating the IORT Node header in the ACPI_PARSER array.\r
{L"Node reference", 4, 28, L"0x%x", NULL, NULL, NULL, NULL},\r
};\r
\r
-/**\r
- This function validates the ID Mapping array count for the ITS node.\r
-\r
- @param [in] Ptr Pointer to the start of the field data.\r
- @param [in] Context Pointer to context specific information e.g. this\r
- could be a pointer to the ACPI table header.\r
-**/\r
-STATIC\r
-VOID\r
-EFIAPI\r
-ValidateItsIdMappingCount (\r
- IN UINT8* Ptr,\r
- IN VOID* Context\r
- )\r
-{\r
- if (*(UINT32*)Ptr != 0) {\r
- IncrementErrorCount ();\r
- Print (L"\nERROR: IORT ID Mapping count must be zero.");\r
- }\r
-}\r
-\r
-/**\r
- This function validates the ID Mapping array offset for the ITS node.\r
-\r
- @param [in] Ptr Pointer to the start of the field data.\r
- @param [in] Context Pointer to context specific information e.g. this\r
- could be a pointer to the ACPI table header.\r
-**/\r
-STATIC\r
-VOID\r
-EFIAPI\r
-ValidateItsIdArrayReference (\r
- IN UINT8* Ptr,\r
- IN VOID* Context\r
- )\r
-{\r
- if (*(UINT32*)Ptr != 0) {\r
- IncrementErrorCount ();\r
- Print (L"\nERROR: IORT ID Mapping offset must be zero.");\r
- }\r
-}\r
-\r
/**\r
This function parses the IORT Node Id Mapping array.\r
\r