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>
Showing
- include/efi_loader.h 2 additions, 2 deletionsinclude/efi_loader.h
- lib/efi_driver/efi_block_device.c 10 additions, 24 deletionslib/efi_driver/efi_block_device.c
- lib/efi_loader/Kconfig 3 additions, 0 deletionslib/efi_loader/Kconfig
- lib/efi_loader/efi_disk.c 127 additions, 74 deletionslib/efi_loader/efi_disk.c
- lib/efi_loader/efi_setup.c 1 addition, 3 deletionslib/efi_loader/efi_setup.c
Loading
Please register or sign in to comment