diff options
author | Simon Glass <sjg@chromium.org> | 2016-05-01 11:36:22 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-05-17 09:54:43 -0600 |
commit | 145df842b443a2f2323a11f6e61223e3767dc55c (patch) | |
tree | c8c9fddf279f073e19773de1df958f438617ba19 /include/ide.h | |
parent | 38bd29beaaf51f92d986ef63e5539f0bd0d371d8 (diff) | |
download | u-boot-145df842b443a2f2323a11f6e61223e3767dc55c.zip u-boot-145df842b443a2f2323a11f6e61223e3767dc55c.tar.gz u-boot-145df842b443a2f2323a11f6e61223e3767dc55c.tar.bz2 |
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>
Diffstat (limited to 'include/ide.h')
-rw-r--r-- | include/ide.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ide.h b/include/ide.h index a4e65cf..9b0a4a9 100644 --- a/include/ide.h +++ b/include/ide.h @@ -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); |