summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2020-04-27 12:48:20 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-05-04 13:26:11 +0300
commit41fd506842c2d9385d940cffe8ceeb8456c29fc5 (patch)
tree4f9c9e77327ebf3b6e0b53d354c3a120f98150bd /include
parentf0ff75f2491ba27c04bb1f94e502a2be8fc0e78e (diff)
downloadu-boot-41fd506842c2d9385d940cffe8ceeb8456c29fc5.tar.xz
efi_loader: disk: add efi_disk_is_system_part()
This function will check if a given handle to device is an EFI system partition. It will be utilised in implementing capsule-on-disk feature. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Add function description. Return bool. Reviewed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r--include/efi_loader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index f92bfe57e6..0e924ad109 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -394,6 +394,8 @@ efi_status_t efi_disk_register(void);
int efi_disk_create_partitions(efi_handle_t parent, struct blk_desc *desc,
const char *if_typename, int diskid,
const char *pdevname);
+/* Check if it is EFI system partition */
+bool efi_disk_is_system_part(efi_handle_t handle);
/* Called by bootefi to make GOP (graphical) interface available */
efi_status_t efi_gop_register(void);
/* Called by bootefi to make the network interface available */