]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: disk: a helper function to create efi_disk objects from udevice
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 19 Apr 2022 01:05:12 +0000 (10:05 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 23 Apr 2022 20:05:41 +0000 (22:05 +0200)
commit3da94f1971c7ff230cc4765a5f11eb7080a65727
tree8c7f5f683ebb5d64cdf14d735bfd9487791b5ac7
parent585e1519a1e8391eaafc6a10842011d1958ee656
efi_loader: disk: a helper function to create efi_disk objects from udevice

Add efi_disk_probe() function.
This function creates an efi_disk object for a raw disk device (UCLASS_BLK)
and additional objects for related partitions (UCLASS_PARTITION).

So this function is expected to be called through driver model's "probe"
interface every time one raw disk device is detected and activated.
We assume that partition devices (UCLASS_PARTITION) have been created
when this function is invoked.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
include/efi_loader.h
lib/efi_driver/efi_block_device.c
lib/efi_loader/Kconfig
lib/efi_loader/efi_disk.c
lib/efi_loader/efi_setup.c