summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2022-05-12 05:29:01 +0300
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-05-28 11:59:27 +0300
commit05f391e2fc73bf9f746534929b4436b86518f4fc (patch)
tree97bde2d59c0d7041dc9b2ac7fe9b236f9874d8fe /include
parent8131c85a77f9d06f28ccbf121545023ef78d8e86 (diff)
downloadu-boot-05f391e2fc73bf9f746534929b4436b86518f4fc.tar.xz
efi_loader: disk: add efi_disk_is_removable()
This helper function will be used to determine if the device is removable media, initially for handling a short-path loading. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r--include/efi_loader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 733ee03cd7..f6651e2c60 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -663,6 +663,9 @@ efi_status_t efi_set_timer(struct efi_event *event, enum efi_timer_delay type,
/* Call this to signal an event */
void efi_signal_event(struct efi_event *event);
+/* return true if the device is removable */
+bool efi_disk_is_removable(efi_handle_t handle);
+
/* open file system: */
struct efi_simple_file_system_protocol *efi_simple_file_system(
struct blk_desc *desc, int part, struct efi_device_path *dp);