]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: define load option attributes
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Mon, 25 Feb 2019 06:54:37 +0000 (15:54 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 25 Feb 2019 11:47:13 +0000 (12:47 +0100)
See UEFI specification v2.7a, section 3.1.3, "Load Option Processing."

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_api.h
lib/efi_loader/efi_bootmgr.c

index 45ca05e8ac69e360de3c07909b03d5e2de69c67d..ccf608653d4af5b2a83adfc8817e6d763515641d 100644 (file)
@@ -1438,4 +1438,13 @@ struct efi_unicode_collation_protocol {
        char *supported_languages;
 };
 
+/* Boot manager load options */
+#define LOAD_OPTION_ACTIVE             0x00000001
+#define LOAD_OPTION_FORCE_RECONNECT    0x00000002
+#define LOAD_OPTION_HIDDEN             0x00000008
+/* All values 0x00000200-0x00001F00 are reserved */
+#define LOAD_OPTION_CATEGORY           0x00001F00
+#define LOAD_OPTION_CATEGORY_BOOT      0x00000000
+#define LOAD_OPTION_CATEGORY_APP       0x00000100
+
 #endif
index 6b68496a80f1aa248e331e9cef2496236c222514..417016102b48e2fb14767da761f4da943d137b88 100644 (file)
 static const struct efi_boot_services *bs;
 static const struct efi_runtime_services *rs;
 
-#define LOAD_OPTION_ACTIVE             0x00000001
-#define LOAD_OPTION_FORCE_RECONNECT    0x00000002
-#define LOAD_OPTION_HIDDEN             0x00000008
-
 /*
  * bootmgr implements the logic of trying to find a payload to boot
  * based on the BootOrder + BootXXXX variables, and then loading it.