]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Add disk interfaces
authorAlexander Graf <agraf@suse.de>
Fri, 4 Mar 2016 00:10:02 +0000 (01:10 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Mar 2016 22:03:11 +0000 (18:03 -0400)
commit2a22d05d335975279a7616809c47a3bf03e42994
treea7e13184ae1ac146541f491cad9355092f5cd593
parent50149ea37a21dcbed675297f1536c31a7db39c19
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>
include/efi_loader.h
lib/efi_loader/efi_disk.c [new file with mode: 0644]