TianoCore EDK2 master
Loading...
Searching...
No Matches
BootDiscoveryPolicyUiLib.c File Reference

Go to the source code of this file.

Data Structures

struct  HII_VENDOR_DEVICE_PATH
 

Functions

EFI_STATUS EFIAPI BootDiscoveryPolicyUiLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
EFI_STATUS EFIAPI BootDiscoveryPolicyUiLibDestructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

UINT8 BootDiscoveryPolicyUiLibVfrBin []
 
EFI_HII_HANDLE mBPHiiHandle = NULL
 
EFI_HANDLE mBPDriverHandle = NULL
 
STATIC HII_VENDOR_DEVICE_PATH mVendorDevicePath
 

Detailed Description

Boot Discovery Policy UI for Boot Maintenance menu.

Copyright (c) 2021, ARM Ltd. All rights reserved.
Copyright (c) 2021, Semihalf All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file BootDiscoveryPolicyUiLib.c.

Function Documentation

◆ BootDiscoveryPolicyUiLibConstructor()

EFI_STATUS EFIAPI BootDiscoveryPolicyUiLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Initialize Boot Maintenance Menu library.

Parameters
ImageHandleThe image handle.
SystemTableThe system table.
Return values
EFI_SUCCESSInstall Boot manager menu success.
OtherReturn error status.gBPDisplayLibGuid

Definition at line 71 of file BootDiscoveryPolicyUiLib.c.

◆ BootDiscoveryPolicyUiLibDestructor()

EFI_STATUS EFIAPI BootDiscoveryPolicyUiLibDestructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Destructor of Boot Maintenance menu library.

Parameters
ImageHandleThe firmware allocated handle for the EFI image.
SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe destructor completed successfully.
Othervalue The destructor did not complete successfully.

Definition at line 139 of file BootDiscoveryPolicyUiLib.c.

Variable Documentation

◆ mBPDriverHandle

EFI_HANDLE mBPDriverHandle = NULL

Definition at line 34 of file BootDiscoveryPolicyUiLib.c.

◆ mBPHiiHandle

EFI_HII_HANDLE mBPHiiHandle = NULL

Definition at line 33 of file BootDiscoveryPolicyUiLib.c.

◆ mVendorDevicePath

STATIC HII_VENDOR_DEVICE_PATH mVendorDevicePath
Initial value:
= {
{
{
{
(UINT8)(sizeof (VENDOR_DEVICE_PATH)),
(UINT8)((sizeof (VENDOR_DEVICE_PATH)) >> 8)
}
},
BOOT_DISCOVERY_POLICY_MGR_FORMSET_GUID
},
{
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
{
(UINT8)(END_DEVICE_PATH_LENGTH),
(UINT8)((END_DEVICE_PATH_LENGTH) >> 8)
}
}
}
#define HARDWARE_DEVICE_PATH
Definition: DevicePath.h:68
#define HW_VENDOR_DP
Definition: DevicePath.h:133

Definition at line 36 of file BootDiscoveryPolicyUiLib.c.