From ed149d5104f35ab52edd7579f2c956382e7d617f Mon Sep 17 00:00:00 2001 From: kavsrf Date: Fri, 16 Jun 2017 21:15:04 +0300 Subject: BML flags added --- Include/Library/CommonLib.h | 10 +++++----- Include/Protocol/DcsBmlProto.h | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'Include') diff --git a/Include/Library/CommonLib.h b/Include/Library/CommonLib.h index cd7e068..9a15afd 100644 --- a/Include/Library/CommonLib.h +++ b/Include/Library/CommonLib.h @@ -29,10 +29,10 @@ https://opensource.org/licenses/LGPL-3.0 ////////////////////////////////////////////////////////////////////////// extern UINTN gCELine; #define CE(ex) gCELine = __LINE__; if(EFI_ERROR(res = ex)) goto err - -#ifndef CSTATIC_ASSERT -#define CSTATIC_ASSERT(b, name) typedef int StaticAssertFailed##name[b ? 1 : -1]; -#endif + +#ifndef CSTATIC_ASSERT +#define CSTATIC_ASSERT(b, name) typedef int StaticAssertFailed##name[b ? 1 : -1]; +#endif ////////////////////////////////////////////////////////////////////////// // defines @@ -564,7 +564,7 @@ InitBml(); EFI_STATUS BmlLock( - IN BOOLEAN lock + IN UINT32 lock ); diff --git a/Include/Protocol/DcsBmlProto.h b/Include/Protocol/DcsBmlProto.h index 9fafa97..2a04d89 100644 --- a/Include/Protocol/DcsBmlProto.h +++ b/Include/Protocol/DcsBmlProto.h @@ -29,6 +29,10 @@ https://opensource.org/licenses/LGPL-3.0 typedef struct _EFI_DCSBML_PROTOCOL EFI_DCSBML_PROTOCOL; +#define BML_LOCK_SETVARIABLE 0x1 +#define BML_UPDATE_BOOTORDER 0x2 +#define BML_SET_BOOTNEXT 0x4 + // // Lock boot menu // @@ -36,7 +40,7 @@ typedef EFI_STATUS (EFIAPI *EFI_BOOT_MENU_LOCK) ( IN EFI_DCSBML_PROTOCOL *This, - IN BOOLEAN Lock + IN UINT32 LockFlags ); -- cgit v1.2.3