[PATCH v10 01/10] efi_loader: move udevice pointer into struct efi_object

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Aug 2 16:53:28 CEST 2022


On 7/22/22 04:39, Masahisa Kojima wrote:
> This is a preparation patch to provide the unified method
> to access udevice pointer associated with the EFI handle
> by adding udevice pointer into struct efi_object.
> The patch also introduces a helper function efi_link_dev()
> to link the udevice and EFI handle.
>
> The EFI handles of both EFI block io driver implemented in
> lib/efi_loader/efi_disk.c and EFI block io driver implemented
> as EFI payload can access the udevice pointer in the struct efi_object.
> We can use this udevice pointer to get the U-Boot friendly
> block device name(e.g. mmc 0:1, nvme 0:1) through EFI handle.
>
> Signed-off-by: Masahisa Kojima <masahisa.kojima at linaro.org>

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>


More information about the U-Boot mailing list