summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMasahisa Kojima <masahisa.kojima@linaro.org>2022-12-02 07:59:35 +0300
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-12-02 21:17:25 +0300
commit3ac026ae46f2c55b11b9544f7e8770eaadd2982c (patch)
tree474db1ab67ae685cb3755585319c1c5e85cf523c /include
parent78b1ccc430e427d0b98e3bfcd04179eb77c14148 (diff)
downloadu-boot-3ac026ae46f2c55b11b9544f7e8770eaadd2982c.tar.xz
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')
-rw-r--r--include/efi_loader.h1
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