summaryrefslogtreecommitdiffstats
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-03-04 01:10:02 +0100
committerTom Rini <trini@konsulko.com>2016-03-15 18:03:11 -0400
commit2a22d05d335975279a7616809c47a3bf03e42994 (patch)
treea7e13184ae1ac146541f491cad9355092f5cd593 /include/efi_loader.h
parent50149ea37a21dcbed675297f1536c31a7db39c19 (diff)
downloadtalos-obmc-uboot-2a22d05d335975279a7616809c47a3bf03e42994.tar.gz
talos-obmc-uboot-2a22d05d335975279a7616809c47a3bf03e42994.zip
efi_loader: Add disk interfaces
A EFI applications usually want to access storage devices to load data from. This patch adds support for EFI disk interfaces. It loops through all block storage interfaces known to U-Boot and creates an EFI object for each existing one. EFI applications can then through these objects call U-Boot's read and write functions. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> [trini: Update for various DM changes since posting] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/efi_loader.h')
-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 8b3aaddd59..be3c28abcd 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -87,6 +87,8 @@ struct efi_object {
/* This list contains all UEFI objects we know of */
extern struct list_head efi_obj_list;
+/* Called by bootefi to make all disk storage accessible as EFI objects */
+int efi_disk_register(void);
/*
* Stub implementation for a protocol opener that just returns the handle as
* interface
OpenPOWER on IntegriCloud