mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00: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:
parent
38bd29beaa
commit
145df842b4
2 changed files with 40 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue