aboutsummaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-03-19 15:16:31 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-04-30 10:25:07 +0200
commit11078bb262a2a2489cbc5962f2e7faad5b288194 (patch)
treea2b5e93fc236071d7f6ea16dfe78f1a5962a5ef2 /include/efi_loader.h
parent25801acc1fd64b284d250e8cee7c5ea0c5186f1c (diff)
downloadu-boot-11078bb262a2a2489cbc5962f2e7faad5b288194.zip
u-boot-11078bb262a2a2489cbc5962f2e7faad5b288194.tar.gz
u-boot-11078bb262a2a2489cbc5962f2e7faad5b288194.tar.bz2
efi_loader: identify EFI system partition
In subsequent patches UEFI variables shalled be stored on the EFI system partition. Hence we need to identify the EFI system partition. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 0ba9a1f..b7bccf5 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -47,6 +47,13 @@ static inline void *guidcpy(void *dst, const void *src)
/* Root node */
extern efi_handle_t efi_root;
+/* EFI system partition */
+extern struct efi_system_partition {
+ enum if_type if_type;
+ int devnum;
+ u8 part;
+} efi_system_partition;
+
int __efi_entry_check(void);
int __efi_exit_check(void);
const char *__efi_nesting(void);