X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fide.h;h=6a1b7ae844f34529e6dfa4d18ae7887c9f068ea6;hb=311c19ccb5783a1de71fd5042eeadfbe9688f597;hp=6976a6c319c3736b4a0c33ab89e57739cb9299c4;hpb=90b0cf47eb23e5f3461d3d957f6898386907fd99;p=u-boot diff --git a/include/ide.h b/include/ide.h index 6976a6c319..6a1b7ae844 100644 --- a/include/ide.h +++ b/include/ide.h @@ -26,6 +26,8 @@ #define IDE_BUS(dev) (dev >> 1) +#define ATA_CURR_BASE(dev) (CONFIG_SYS_ATA_BASE_ADDR+ide_bus_offset[IDE_BUS(dev)]) + #ifdef CONFIG_IDE_LED /* @@ -38,7 +40,7 @@ #endif /* CONFIG_IDE_LED */ -#ifdef CFG_64BIT_LBA +#ifdef CONFIG_SYS_64BIT_LBA typedef uint64_t lbaint_t; #else typedef ulong lbaint_t; @@ -52,4 +54,7 @@ void ide_init(void); ulong ide_read(int device, lbaint_t blknr, ulong blkcnt, void *buffer); ulong ide_write(int device, lbaint_t blknr, ulong blkcnt, void *buffer); +#if defined(CONFIG_OF_IDE_FIXUP) +int ide_device_present(int dev); +#endif #endif /* _IDE_H */