X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fide.h;h=6a1b7ae844f34529e6dfa4d18ae7887c9f068ea6;hb=72c4c33e9835f370ec5509c3c18c9d4741de025f;hp=6976a6c319c3736b4a0c33ab89e57739cb9299c4;hpb=958de0e22e408eadeffedcc130f69899c95de7c8;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 */