u-boot/drivers/block
Simon Glass 606b926f9d dm: blk: Add udevice functions
At present we have functions called blk_dread(), etc., which take a
struct blk_desc * to refer to the block device. Add some functions which
use udevice instead, since this is more in keeping with how driver model
is supposed to work.

Update one of the tests to use this.

Note that it would be nice to update the functions in disk-uclass.c to use
these new functions. However they are not quite the same. For example,
disk_blk_read() adds the partition offset to 'start' when calling the
cache read/fill functions, but does not with part_blk_read(), which does
the addition itself. So as designed the code is duplicated.

Signed-off-by: Simon Glass <sjg@chromium.org>
2022-10-31 11:02:44 -04:00
..
blk-uclass.c dm: blk: Add udevice functions 2022-10-31 11:02:44 -04:00
blk_legacy.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
blkcache.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
efi-media-uclass.c efi: Add uclass for devices provided by UEFI firmware 2021-12-09 11:43:25 -08:00
efi_blk.c blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
ide.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
Kconfig blk: Hide the BLK and SPL_LEGACY_BLOCK options 2022-09-16 11:05:16 -04:00
Makefile blk: Rename HAVE_BLOCK_DEVICE 2022-09-16 11:05:16 -04:00
sandbox.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
sb_efi_media.c efi: Add uclass for devices provided by UEFI firmware 2021-12-09 11:43:25 -08:00