diff options
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 10 |
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 |
1297 | int __ide_dma_bad_drive(ide_drive_t *); | 1297 | int __ide_dma_bad_drive(ide_drive_t *); |
1298 | int __ide_dma_good_drive(ide_drive_t *); | 1298 | int __ide_dma_good_drive(ide_drive_t *); |
1299 | u8 ide_max_dma_mode(ide_drive_t *); | 1299 | |
1300 | u8 ide_find_dma_mode(ide_drive_t *, u8); | ||
1301 | |||
1302 | static inline u8 ide_max_dma_mode(ide_drive_t *drive) | ||
1303 | { | ||
1304 | return ide_find_dma_mode(drive, XFER_UDMA_6); | ||
1305 | } | ||
1306 | |||
1300 | int ide_tune_dma(ide_drive_t *); | 1307 | int ide_tune_dma(ide_drive_t *); |
1301 | void ide_dma_off(ide_drive_t *); | 1308 | void ide_dma_off(ide_drive_t *); |
1302 | void ide_dma_verbose(ide_drive_t *); | 1309 | void 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 |
1332 | static inline u8 ide_find_dma_mode(ide_drive_t *drive, u8 speed) { return 0; } | ||
1325 | static inline u8 ide_max_dma_mode(ide_drive_t *drive) { return 0; } | 1333 | static inline u8 ide_max_dma_mode(ide_drive_t *drive) { return 0; } |
1326 | static inline int ide_tune_dma(ide_drive_t *drive) { return 0; } | 1334 | static inline int ide_tune_dma(ide_drive_t *drive) { return 0; } |
1327 | static inline void ide_dma_off(ide_drive_t *drive) { ; } | 1335 | static inline void ide_dma_off(ide_drive_t *drive) { ; } |