mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
dm: ide: Add support for driver-model block devices
Add driver-model block-device support to the IDE implementation. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -34,10 +34,18 @@ void ide_led(uchar led, uchar status);
|
||||
|
||||
void ide_init(void);
|
||||
struct blk_desc;
|
||||
struct udevice;
|
||||
#ifdef CONFIG_BLK
|
||||
ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
|
||||
void *buffer);
|
||||
ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
|
||||
const void *buffer);
|
||||
#else
|
||||
ulong ide_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,
|
||||
void *buffer);
|
||||
ulong ide_write(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,
|
||||
const void *buffer);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IDE_PREINIT
|
||||
int ide_preinit(void);
|
||||
|
Reference in New Issue
Block a user