TianoCore EDK2 master
Loading...
Searching...
No Matches
BmLib.c
Go to the documentation of this file.
1
10
26 IN CHAR16 *VarName,
27 IN EFI_GUID *VarGuid
28 )
29{
30 return gRT->SetVariable (
31 VarName,
32 VarGuid,
33 0,
34 0,
35 NULL
36 );
37}
38
53 )
54{
55 UINTN Count;
56 UINTN Size;
57
58 Count = 0;
59 while (GetNextDevicePathInstance (&DevicePath, &Size) != NULL) {
60 Count += 1;
61 }
62
63 return Count;
64}
65
77UINT16 *
80 )
81{
82 return NULL;
83}
UINT64 UINTN
UINTN EfiDevicePathInstanceCount(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
Definition: BmLib.c:51
UINT16 * EfiLibStrFromDatahub(IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
Definition: BmLib.c:78
EFI_STATUS EfiLibDeleteVariable(IN CHAR16 *VarName, IN EFI_GUID *VarGuid)
Definition: BmLib.c:25
EFI_DEVICE_PATH_PROTOCOL *EFIAPI GetNextDevicePathInstance(IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath, OUT UINTN *Size)
EFI_RUNTIME_SERVICES * gRT
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213