]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Dxe/PlatformBds/Generic/BootMaint/BmLib.c
1. Perfect libraries MSA files
[mirror_edk2.git] / EdkNt32Pkg / Dxe / PlatformBds / Generic / BootMaint / BmLib.c
index b4f6d481ce1a025903a4c2cdfc3a8df1b9b0e087..8804b141aec17204894a55f261b9ade793442a05 100644 (file)
@@ -1,18 +1,18 @@
 /*++\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
   BmLib.c\r
-    \r
+\r
 AgBStract:\r
 \r
   Boot Maintainence Helper functions\r
@@ -30,13 +30,13 @@ EfiLibLocateProtocol (
 \r
 Routine Description:\r
 \r
-  Find the first instance of this Protocol \r
+  Find the first instance of this Protocol\r
   in the system and return it's interface\r
 \r
 Arguments:\r
 \r
   ProtocolGuid    - Provides the protocol to search for\r
-  Interface       - On return, a pointer to the first interface \r
+  Interface       - On return, a pointer to the first interface\r
                     that matches ProtocolGuid\r
 \r
 Returns:\r
@@ -72,7 +72,7 @@ Arguments:
   DeviceHandle         - A handle for a device\r
 \r
 Returns:\r
-  \r
+\r
   A valid file handle or NULL is returned\r
 \r
 --*/\r
@@ -118,7 +118,7 @@ EfiGrowBuffer (
 Routine Description:\r
 \r
     Helper function called as part of the code needed\r
-    to allocate the proper sized buffer for various \r
+    to allocate the proper sized buffer for various\r
     EFI interfaces.\r
 \r
 Arguments:\r
@@ -128,10 +128,10 @@ Arguments:
     Buffer      - Current allocated buffer, or NULL\r
 \r
     BufferSize  - Current buffer size needed\r
-    \r
+\r
 Returns:\r
-    \r
-    TRUE - if the buffer was reallocated and the caller \r
+\r
+    TRUE - if the buffer was reallocated and the caller\r
     should try the API again.\r
 \r
 --*/\r
@@ -182,7 +182,7 @@ Routine Description:
   Function returns the value of the specified variable.\r
 \r
 Arguments:\r
-  Name                - A Null-terminated Unicode string that is \r
+  Name                - A Null-terminated Unicode string that is\r
                         the name of the vendor's variable.\r
 \r
   VendorGuid          - A unique identifier for the vendor.\r
@@ -209,7 +209,7 @@ Routine Description:
   Function deletes the variable specified by VarName and VarGuid.\r
 \r
 Arguments:\r
-  VarName              - A Null-terminated Unicode string that is \r
+  VarName              - A Null-terminated Unicode string that is\r
                          the name of the vendor's variable.\r
 \r
   VendorGuid           - A unique identifier for the vendor.\r
@@ -252,7 +252,7 @@ EfiLibFileSystemVolumeLabelInfo (
 \r
 Routine Description:\r
 \r
-  Function gets the file system information from an open file descriptor, \r
+  Function gets the file system information from an open file descriptor,\r
   and stores it in a buffer allocated from pool.\r
 \r
 Arguments:\r
@@ -260,7 +260,7 @@ Arguments:
   Fhand         - A file handle\r
 \r
 Returns:\r
-  \r
+\r
   A pointer to a buffer with file information or NULL is returned\r
 \r
 --*/\r
@@ -315,7 +315,7 @@ EfiLibFileInfo (
 \r
 Routine Description:\r
 \r
-  Function gets the file information from an open file descriptor, and stores it \r
+  Function gets the file information from an open file descriptor, and stores it\r
   in a buffer allocated from pool.\r
 \r
 Arguments:\r
@@ -323,7 +323,7 @@ Arguments:
   Fhand         - A file handle\r
 \r
 Returns:\r
-  \r
+\r
   A pointer to a buffer with file information or NULL is returned\r
 \r
 --*/\r
@@ -360,7 +360,7 @@ EfiDevicePathInstanceCount (
 /*++\r
 \r
 Routine Description:\r
-  Function is used to determine the number of device path instances \r
+  Function is used to determine the number of device path instances\r
   that exist in a device path.\r
 \r
 Arguments:\r
@@ -368,7 +368,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  This function counts and returns the number of device path instances \r
+  This function counts and returns the number of device path instances\r
   in DevicePath.\r
 \r
 --*/\r
@@ -437,15 +437,15 @@ EfiLibGetStringFromToken (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   Acquire the string associated with the ProducerGuid and return it.\r
 \r
 Arguments:\r
-  \r
+\r
   ProducerGuid - The Guid to search the HII database for\r
   Token        - The token value of the string to extract\r
   String       - The string that is extracted\r
-  \r
+\r
 Returns:\r
 \r
   EFI_SUCCESS           -  Buffer filled with the requested forms. BufferLength\r
@@ -469,7 +469,7 @@ Returns:
   //\r
   HandleBufferLength  = 0;\r
   HiiHandleBuffer     = NULL;\r
-  \r
+\r
   Status = gBS->LocateProtocol (\r
                   &gEfiHiiProtocolGuid,\r
                   NULL,\r
@@ -484,7 +484,7 @@ Returns:
   //\r
   Status = BdsLibGetHiiHandles (Hii, &HandleBufferLength, &HiiHandleBuffer);\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   //\r
   // Get the Hii Handle that matches the StructureNode->ProducerName\r
   //\r
@@ -518,7 +518,7 @@ Returns:
                   *String\r
                   );\r
 \r
-  gBS->FreePool (HiiHandleBuffer);\r
+  FreePool (HiiHandleBuffer);\r
 \r
   return Status;\r
 }\r
@@ -541,7 +541,7 @@ Arguments:
 Returns:\r
   TRUE              The FirstTime is not later than the SecondTime.\r
   FALSE             The FirstTime is later than the SecondTime.\r
-  \r
+\r
 --*/\r
 {\r
   if (FirstTime->Year != SecondTime->Year) {\r