/*++\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
\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
\r
Data - A pointer to the data being sent to the original exporting driver.\r
\r
-Returns: \r
+Returns:\r
\r
--*/\r
{\r
\r
Arguments:\r
None\r
- \r
+\r
Returns:\r
\r
--*/\r
\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
//\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
/*++\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
}\r
}\r
\r
- gBS->FreePool (String);\r
+ FreePool (String);\r
\r
CreateGotoOpCode (\r
0x1000, // Device Manager Page\r
//\r
// Reset Buffer pointer to original location\r
//\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
}\r
}\r
//\r
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
\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
gCallbackKey = 4;\r
}\r
\r
- gBS->FreePool (UpdateData);\r
- gBS->FreePool (HiiHandles);\r
+ FreePool (UpdateData);\r
+ FreePool (HiiHandles);\r
\r
return Status;\r
}\r