diff options
author | Raymond Mao | 2023-06-19 14:22:58 -0700 |
---|---|---|
committer | Heinrich Schuchardt | 2023-07-15 11:20:41 +0200 |
commit | 339b527bd4507404a2128ddad24ba060eba342c9 (patch) | |
tree | 7c339f09b2438c92b6223c6ba800f0602544145e /include/efi_loader.h | |
parent | b3bbad816e97538c8c3b8acad7c7e134261cf3a3 (diff) |
Move bootorder and bootoption apis to lib
Rename and move bootorder and bootoption apis from cmd to lib
for re-use between eficonfig and bootmgr
Fix 'unexpected indentation' when 'make htmldocs' after functions
are moved
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 11e08a804f7..604fd765f75 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -517,6 +517,17 @@ struct efi_register_notify_event { int efi_init_early(void); /* Initialize efi execution environment */ efi_status_t efi_init_obj_list(void); +/* Append new boot option in BootOrder variable */ +efi_status_t efi_bootmgr_append_bootorder(u16 index); +/* Get unused "Boot####" index */ +efi_status_t efi_bootmgr_get_unused_bootoption(u16 *buf, + efi_uintn_t buf_size, u32 *index); +/* Generate the media device boot option */ +efi_status_t efi_bootmgr_update_media_device_boot_option(void); +/* Delete selected boot option */ +efi_status_t efi_bootmgr_delete_boot_option(u16 boot_index); +/* search the boot option index in BootOrder */ +bool efi_search_bootorder(u16 *bootorder, efi_uintn_t num, u32 target, u32 *index); /* Set up console modes */ void efi_setup_console_size(void); /* Install device tree */ |