31extern UINT8 BootDiscoveryPolicyUiLibVfrBin[];
46 BOOT_DISCOVERY_POLICY_MGR_FORMSET_GUID
50 END_ENTIRE_DEVICE_PATH_SUBTYPE,
52 (UINT8)(END_DEVICE_PATH_LENGTH),
53 (UINT8)((END_DEVICE_PATH_LENGTH) >> 8)
78 UINT32 BootDiscoveryPolicy;
80 Size =
sizeof (UINT32);
81 Status =
gRT->GetVariable (
82 BOOT_DISCOVERY_POLICY_VAR,
83 &gBootDiscoveryPolicyMgrFormsetGuid,
88 if (EFI_ERROR (Status)) {
93 Status =
gBS->InstallMultipleProtocolInterfaces (
95 &gEfiDevicePathProtocolGuid,
99 if (EFI_ERROR (Status)) {
107 &gBootDiscoveryPolicyMgrFormsetGuid,
109 BootDiscoveryPolicyUiLibVfrBin,
110 BootDiscoveryPolicyUiLibStrings,
113 if (mBPHiiHandle ==
NULL) {
114 gBS->UninstallMultipleProtocolInterfaces (
116 &gEfiDevicePathProtocolGuid,
121 return EFI_OUT_OF_RESOURCES;
144 if (mBPDriverHandle !=
NULL) {
145 gBS->UninstallProtocolInterface (
147 &gEfiDevicePathProtocolGuid,
150 mBPDriverHandle =
NULL;
153 if (mBPHiiHandle !=
NULL) {
EFI_STATUS EFIAPI BootDiscoveryPolicyUiLibDestructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI BootDiscoveryPolicyUiLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
#define HARDWARE_DEVICE_PATH
EFI_HII_HANDLE EFIAPI HiiAddPackages(IN CONST EFI_GUID *PackageListGuid, IN EFI_HANDLE DeviceHandle OPTIONAL,...)
VOID EFIAPI HiiRemovePackages(IN EFI_HII_HANDLE HiiHandle)
EFI_RUNTIME_SERVICES * gRT
#define ASSERT_EFI_ERROR(StatusParameter)
#define PcdGet32(TokenName)
#define PcdSet32S(TokenName, Value)