STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo;\r
\r
/**\r
- This function Validates the NameSpace string length.\r
+ This function validates the NameSpace string length.\r
\r
@param [in] Ptr Pointer to the start of the buffer.\r
@param [in] Context Pointer to context specific information e.g. this\r
VOID\r
EFIAPI\r
ValidateNameSpaceStrLen (\r
- IN UINT8* Ptr,\r
- IN VOID* Context\r
- );\r
+ IN UINT8* Ptr,\r
+ IN VOID* Context\r
+ )\r
+{\r
+ UINT16 NameSpaceStrLen;\r
\r
-/**\r
- This function parses the debug device information structure.\r
+ NameSpaceStrLen = *(UINT16*)Ptr;\r
\r
- @param [in] Ptr Pointer to the start of the buffer.\r
- @param [out] Length Pointer in which the length of the debug\r
- device information is returned.\r
-**/\r
-STATIC\r
-VOID\r
-EFIAPI\r
-DumpDbgDeviceInfo (\r
- IN UINT8* Ptr,\r
- OUT UINT32* Length\r
- );\r
+ if (NameSpaceStrLen < 2) {\r
+ IncrementErrorCount ();\r
+ Print (\r
+ L"\nERROR: NamespaceString Length = %d. If no Namespace device exists, " \\r
+ L"NamespaceString[] must contain a period '.'",\r
+ NameSpaceStrLen\r
+ );\r
+ }\r
+}\r
\r
/// An ACPI_PARSER array describing the ACPI DBG2 table.\r
STATIC CONST ACPI_PARSER Dbg2Parser[] = {\r
(VOID**)&AddrSizeOffset, NULL, NULL}\r
};\r
\r
-/**\r
- This function validates the NameSpace string length.\r
-\r
- @param [in] Ptr Pointer to the start of the buffer.\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
-ValidateNameSpaceStrLen (\r
- IN UINT8* Ptr,\r
- IN VOID* Context\r
- )\r
-{\r
- UINT16 NameSpaceStrLen;\r
-\r
- NameSpaceStrLen = *(UINT16*)Ptr;\r
-\r
- if (NameSpaceStrLen < 2) {\r
- IncrementErrorCount ();\r
- Print (\r
- L"\nERROR: NamespaceString Length = %d. If no Namespace device exists,\n"\r
- L" then NamespaceString[] must contain a period '.'",\r
- NameSpaceStrLen\r
- );\r
- }\r
-}\r
-\r
/**\r
This function parses the debug device information structure.\r
\r