diff options
author | Masahisa Kojima <masahisa.kojima@linaro.org> | 2022-12-02 13:59:35 +0900 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-12-02 19:17:25 +0100 |
commit | 3ac026ae46f2c55b11b9544f7e8770eaadd2982c (patch) | |
tree | 474db1ab67ae685cb3755585319c1c5e85cf523c /include/efi_loader.h | |
parent | 78b1ccc430e427d0b98e3bfcd04179eb77c14148 (diff) | |
download | u-boot-3ac026ae46f2c55b11b9544f7e8770eaadd2982c.tar.gz u-boot-3ac026ae46f2c55b11b9544f7e8770eaadd2982c.tar.bz2 u-boot-3ac026ae46f2c55b11b9544f7e8770eaadd2982c.zip |
efi_loader: utility function to check the variable name is "Boot####"
Some commands need to enumerate the existing UEFI load
option variable("Boot####"). This commit transfers some code
from cmd/efidebug.c to lib/efi_loder/, then exposes
efi_varname_is_load_option() function to check whether
the UEFI variable name is "Boot####".
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 0c6c95ba46..0899e293e5 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -707,6 +707,7 @@ int algo_to_len(const char *algo); int efi_link_dev(efi_handle_t handle, struct udevice *dev); int efi_unlink_dev(efi_handle_t handle); +bool efi_varname_is_load_option(u16 *var_name16, int *index); /** * efi_size_in_pages() - convert size in bytes to size in pages |