u-boot/disk
AKASHI Takahiro 59da9d4782 dm: disk: add read/write interfaces with udevice
In include/blk.h, Simon suggested:
===>
/*
 * These functions should take struct udevice instead of struct blk_desc,
 * but this is convenient for migration to driver model. Add a 'd' prefix
 * to the function operations, so that blk_read(), etc. can be reserved for
 * functions with the correct arguments.
 */
unsigned long blk_dread(struct blk_desc *block_dev, lbaint_t start,
                        lbaint_t blkcnt, void *buffer);
unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start,
                         lbaint_t blkcnt, const void *buffer);
unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start,
                         lbaint_t blkcnt);
<===

So new interfaces are provided with this patch.

They are expected to be used everywhere in U-Boot at the end.
The exceptions are block device drivers, partition drivers and efi_disk
which should know details of blk_desc structure.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
2022-04-23 22:05:41 +02:00
..
disk-uclass.c dm: disk: add read/write interfaces with udevice 2022-04-23 22:05:41 +02:00
Kconfig disk: don't compile in partition support for spl/tpl if not really necessary 2022-04-23 22:05:34 +02:00
Makefile dm: disk: add UCLASS_PARTITION 2022-04-23 22:05:41 +02:00
part_amiga.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
part_amiga.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
part_dos.c disk: part_dos: Fix a NULL pointer error 2021-11-28 16:51:51 -07:00
part_dos.h disk: dos: add code for creating MBR partition layout 2021-01-15 15:33:09 -05:00
part_efi.c Pull request for efi-2022-04-rc1-2 2022-01-22 15:43:36 -05:00
part_iso.c cmd/part: correct alignment of partition list 2021-09-02 09:48:20 -04:00
part_iso.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
part_mac.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
part_mac.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
part.c disk: part: add the device search failed log msg 2022-04-12 19:10:44 +02:00