summaryrefslogtreecommitdiff
path: root/include/efi.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-29 21:57:36 +0300
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-12-31 08:45:01 +0300
commit613cd0c46796cae340382679bc01ef220daf3768 (patch)
tree72545484708a19d77730c276790ec5fae54df85d /include/efi.h
parent726cd9836db0d698f1f409e9522828e985c912e2 (diff)
downloadu-boot-613cd0c46796cae340382679bc01ef220daf3768.tar.xz
efi: Locate all block devices in the app
When starting the app, locate all block devices and make them available to U-Boot. This allows listing partitions and accessing files in filesystems. EFI also has the concept of 'disks', meaning boot media. For now, this is not obviously useful in U-Boot, but add code to at least locate these. This can be expanded later as needed. We cannot use printf() in the early stub or app since it is not compiled in Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'include/efi.h')
-rw-r--r--include/efi.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/efi.h b/include/efi.h
index 1432038838..cd0bdcc717 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -419,10 +419,12 @@ struct efi_priv {
*
* @handle: handle of the controller on which this driver is installed
* @blkio: block io protocol proxied by this driver
+ * @device_path: EFI path to the device
*/
struct efi_media_plat {
- efi_handle_t handle;
- struct efi_block_io *blkio;
+ efi_handle_t handle;
+ struct efi_block_io *blkio;
+ struct efi_device_path *device_path;
};
/* Base address of the EFI image */