]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Library/EdkGenericBdsLib/DevicePath.c
Remove all blanks lines to avoid build errors.
[mirror_edk2.git] / EdkNt32Pkg / Library / EdkGenericBdsLib / DevicePath.c
index 094140f14d6a620b009d1705b323ecb9706aeae1..e893046c4efe60a62d1bd012e1177a5b5c30a9b8 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
@@ -20,11 +20,6 @@ Abstract:
 \r
 --*/\r
 \r
-\r
-#ifdef TIANO_EXTENSION_FLAG\r
-EFI_GUID  UnknownDeviceGuid           = UNKNOWN_DEVICE_GUID;\r
-#endif \r
-\r
 EFI_GUID  mEfiWinNtThunkProtocolGuid  = EFI_WIN_NT_THUNK_PROTOCOL_GUID;\r
 EFI_GUID  mEfiWinNtUgaGuid            = EFI_WIN_NT_UGA_GUID;\r
 EFI_GUID  mEfiWinNtGopGuid            = EFI_WIN_NT_GOP_GUID;\r
@@ -76,7 +71,7 @@ Returns:
       CopyMem (NewPool, OldPool, OldSize < NewSize ? OldSize : NewSize);\r
     }\r
 \r
-    gBS->FreePool (OldPool);\r
+    FreePool (OldPool);\r
   }\r
 \r
   return NewPool;\r
@@ -92,19 +87,19 @@ CatPrint (
 \r
 Routine Description:\r
 \r
-    Concatenates a formatted unicode string to allocated pool.  \r
+    Concatenates a formatted unicode string to allocated pool.\r
     The caller must free the resulting buffer.\r
 \r
 Arguments:\r
 \r
-    Str         - Tracks the allocated pool, size in use, and \r
+    Str         - Tracks the allocated pool, size in use, and\r
                   amount of pool allocated.\r
 \r
     fmt         - The format string\r
 \r
 Returns:\r
 \r
-    Allocated buffer with the formatted string printed in it.  \r
+    Allocated buffer with the formatted string printed in it.\r
     The caller must free the allocated buffer.   The buffer\r
     allocation is not packed.\r
 \r
@@ -142,7 +137,7 @@ Returns:
     Str->len = strsize - sizeof (UINT16);\r
   }\r
 \r
-  gBS->FreePool (AppendStr);\r
+  FreePool (AppendStr);\r
   return Str->str;\r
 }\r
 \r
@@ -163,7 +158,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  If the memory for the device path is successfully allocated, then a \r
+  If the memory for the device path is successfully allocated, then a\r
   pointer to the new device path is returned.  Otherwise, NULL is returned.\r
 \r
 --*/\r
@@ -434,7 +429,7 @@ DevPathExtendedAcpi (
   if (Index > Anchor) {\r
     CIDSTRIdx = Anchor;\r
   }\r
-  \r
+\r
   if (HIDSTRIdx == 0 && CIDSTRIdx == 0 && ExtendedAcpi->UID == 0) {\r
     CatPrint (Str, L"AcpiExp(");\r
     if ((ExtendedAcpi->HID & PNP_EISA_ID_MASK) == PNP_EISA_ID_CONST) {\r
@@ -980,13 +975,6 @@ DEVICE_PATH_STRING_TABLE  DevPathTable[] = {
   MEDIA_DEVICE_PATH,\r
   MEDIA_PROTOCOL_DP,\r
   DevPathMediaProtocol,\r
-\r
-#if (EFI_SPECIFICATION_VERSION < 0x00020000)\r
-  MEDIA_DEVICE_PATH,\r
-  MEDIA_FV_FILEPATH_DP,\r
-  DevPathFvFilePath,\r
-#endif\r
-\r
   BBS_DEVICE_PATH,\r
   BBS_BBS_DP,\r
   DevPathBssBss,\r
@@ -1071,7 +1059,7 @@ DevicePathToStr (
   //\r
   // Shrink pool used for string allocation\r
   //\r
-  gBS->FreePool (DevPath);\r
+  FreePool (DevPath);\r
 \r
 Done:\r
   NewSize = (Str.len + 1) * sizeof (CHAR16);\r
@@ -1089,7 +1077,7 @@ LibDuplicateDevicePathInstance (
 \r
 Routine Description:\r
 \r
-  Function creates a device path data structure that identically matches the \r
+  Function creates a device path data structure that identically matches the\r
   device path passed in.\r
 \r
 Arguments:\r
@@ -1098,7 +1086,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  The new copy of DevPath is created to identically match the input.  \r
+  The new copy of DevPath is created to identically match the input.\r
   Otherwise, NULL is returned.\r
 \r
 --*/\r