aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 80ea946282d7..a3f9c216615e 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1296,7 +1296,14 @@ int ide_in_drive_list(struct hd_driveid *, const struct drive_list_entry *);
1296#ifdef CONFIG_BLK_DEV_IDEDMA 1296#ifdef CONFIG_BLK_DEV_IDEDMA
1297int __ide_dma_bad_drive(ide_drive_t *); 1297int __ide_dma_bad_drive(ide_drive_t *);
1298int __ide_dma_good_drive(ide_drive_t *); 1298int __ide_dma_good_drive(ide_drive_t *);
1299u8 ide_max_dma_mode(ide_drive_t *); 1299
1300u8 ide_find_dma_mode(ide_drive_t *, u8);
1301
1302static inline u8 ide_max_dma_mode(ide_drive_t *drive)
1303{
1304 return ide_find_dma_mode(drive, XFER_UDMA_6);
1305}
1306
1300int ide_tune_dma(ide_drive_t *); 1307int ide_tune_dma(ide_drive_t *);
1301void ide_dma_off(ide_drive_t *); 1308void ide_dma_off(ide_drive_t *);
1302void ide_dma_verbose(ide_drive_t *); 1309void ide_dma_verbose(ide_drive_t *);
@@ -1322,6 +1329,7 @@ extern void ide_dma_timeout(ide_drive_t *);
1322#endif /* CONFIG_BLK_DEV_IDEDMA_PCI */ 1329#endif /* CONFIG_BLK_DEV_IDEDMA_PCI */
1323 1330
1324#else 1331#else
1332static inline u8 ide_find_dma_mode(ide_drive_t *drive, u8 speed) { return 0; }
1325static inline u8 ide_max_dma_mode(ide_drive_t *drive) { return 0; } 1333static inline u8 ide_max_dma_mode(ide_drive_t *drive) { return 0; }
1326static inline int ide_tune_dma(ide_drive_t *drive) { return 0; } 1334static inline int ide_tune_dma(ide_drive_t *drive) { return 0; }
1327static inline void ide_dma_off(ide_drive_t *drive) { ; } 1335static inline void ide_dma_off(ide_drive_t *drive) { ; }