]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Dbg2/Dbg2Parser.c
ShellPkg: acpiview: DBG2: Remove redundant forward declarations
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / Parsers / Dbg2 / Dbg2Parser.c
index 8de5ebf74775bab8e765849cba6ef4eb6f659a5a..1efcbd40f86efdabed2152540a415db8a950fb71 100644 (file)
@@ -27,7 +27,7 @@ STATIC CONST UINT16* AddrSizeOffset;
 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
@@ -37,24 +37,23 @@ STATIC
 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
@@ -91,35 +90,6 @@ STATIC CONST ACPI_PARSER DbgDevInfoParser[] = {
    (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