]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Dxe/PlatformBds/Generic/DeviceMngr/DeviceManager.c
1. Perfect libraries MSA files
[mirror_edk2.git] / EdkNt32Pkg / Dxe / PlatformBds / Generic / DeviceMngr / DeviceManager.c
index 2da9c6fa369b6a6cc097218499148854be13ca01..7189a6e9b9120542d015bb33c2a1b4ea034b62df 100644 (file)
@@ -1,15 +1,15 @@
 /*++\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
-Module Name: \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
   DeviceManager.c\r
 \r
@@ -51,7 +51,7 @@ Routine Description:
 \r
   This is the function that is called to provide results data to the driver.  This data\r
   consists of a unique key which is used to identify what data is either being passed back\r
-  or being asked for. \r
+  or being asked for.\r
 \r
 Arguments:\r
 \r
@@ -61,7 +61,7 @@ Arguments:
 \r
   Data -            A pointer to the data being sent to the original exporting driver.\r
 \r
-Returns: \r
+Returns:\r
 \r
 --*/\r
 {\r
@@ -103,7 +103,7 @@ Routine Description:
 \r
 Arguments:\r
   None\r
-            \r
+\r
 Returns:\r
 \r
 --*/\r
@@ -120,7 +120,7 @@ Returns:
 \r
   PackageList = PreparePackages (1, &gBdsStringPackGuid, DeviceManagerVfrBin);\r
   Status      = Hii->NewPack (Hii, PackageList, &FPCallbackInfo.DevMgrHiiHandle);\r
-  gBS->FreePool (PackageList);\r
+  FreePool (PackageList);\r
 \r
   //\r
   // This example does not implement worker functions for the NV accessor functions.  Only a callback evaluator\r
@@ -157,7 +157,7 @@ Returns:
   //\r
   Hii->UpdateForm (Hii, FPCallbackInfo.DevMgrHiiHandle, (EFI_FORM_LABEL) 0x0000, TRUE, UpdateData);\r
 \r
-  gBS->FreePool (UpdateData);\r
+  FreePool (UpdateData);\r
   return Status;\r
 }\r
 \r
@@ -168,17 +168,17 @@ CallDeviceManager (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   Call the browser and display the device manager\r
 \r
 Arguments:\r
-  \r
+\r
   None\r
-  \r
+\r
 Returns:\r
   EFI_SUCCESS            - Operation is successful.\r
   EFI_INVALID_PARAMETER  - If the inputs to SendForm function is not valid.\r
-  \r
+\r
 --*/\r
 {\r
   EFI_STATUS          Status;\r
@@ -337,7 +337,7 @@ Returns:
           }\r
         }\r
 \r
-        gBS->FreePool (String);\r
+        FreePool (String);\r
 \r
         CreateGotoOpCode (\r
           0x1000,     // Device Manager Page\r
@@ -391,7 +391,7 @@ Returns:
       //\r
       // Reset Buffer pointer to original location\r
       //\r
-      gBS->FreePool (Buffer);\r
+      FreePool (Buffer);\r
     }\r
   }\r
   //\r
@@ -406,12 +406,12 @@ Returns:
     FPCallbackInfo.Data.VideoBIOS = 0;\r
   } else {\r
     FPCallbackInfo.Data.VideoBIOS = VideoOption[0];\r
-    gBS->FreePool (VideoOption);\r
+    FreePool (VideoOption);\r
   }\r
 \r
   ASSERT (FPCallbackInfo.Data.VideoBIOS <= 1);\r
 \r
-  Status = gBS->AllocatePool (EfiBootServicesData, 2 * sizeof (IFR_OPTION), &IfrOptionList);\r
+  IfrOptionList = AllocatePool (2 * sizeof (IFR_OPTION));\r
   if (IfrOptionList != NULL) {\r
     IfrOptionList[0].Flags        = EFI_IFR_FLAG_INTERACTIVE;\r
     IfrOptionList[0].Key          = SET_VIDEO_BIOS_TYPE_QUESTION_ID + 0x2000;\r
@@ -437,7 +437,7 @@ Returns:
 \r
     UpdateData->DataCount = 4;\r
     Hii->UpdateForm (Hii, FPCallbackInfo.DevMgrHiiHandle, (EFI_FORM_LABEL) EFI_VBIOS_CLASS, TRUE, UpdateData);\r
-    gBS->FreePool (IfrOptionList);\r
+    FreePool (IfrOptionList);\r
   }\r
 \r
   BootDeviceMngrMenuResetRequired = FALSE;\r
@@ -490,8 +490,8 @@ Returns:
     gCallbackKey = 4;\r
   }\r
 \r
-  gBS->FreePool (UpdateData);\r
-  gBS->FreePool (HiiHandles);\r
+  FreePool (UpdateData);\r
+  FreePool (HiiHandles);\r
 \r
   return Status;\r
 }\r