diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-09 18:01:09 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-09 18:01:09 -0400 |
commit | 29e744d088e3555f4efbdf390f01088dd66993b6 (patch) | |
tree | 2747692efcef505872d29e0b62cb2345b0d64978 /include/linux | |
parent | 2d5eaa6dd744a641e75503232a01f52d0768884c (diff) |
ide: add ide_tune_dma() helper
After reworking the code responsible for selecting the best DMA
transfer mode it is now possible to add generic ide_tune_dma() helper.
Convert some IDE PCI host drivers to use it (the ones left need more work).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 23ab4dc05009..d03fa2d5d75a 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1277,6 +1277,7 @@ int __ide_dma_bad_drive(ide_drive_t *); | |||
1277 | int __ide_dma_good_drive(ide_drive_t *); | 1277 | int __ide_dma_good_drive(ide_drive_t *); |
1278 | int ide_use_dma(ide_drive_t *); | 1278 | int ide_use_dma(ide_drive_t *); |
1279 | u8 ide_max_dma_mode(ide_drive_t *); | 1279 | u8 ide_max_dma_mode(ide_drive_t *); |
1280 | int ide_tune_dma(ide_drive_t *); | ||
1280 | void ide_dma_off(ide_drive_t *); | 1281 | void ide_dma_off(ide_drive_t *); |
1281 | void ide_dma_verbose(ide_drive_t *); | 1282 | void ide_dma_verbose(ide_drive_t *); |
1282 | int ide_set_dma(ide_drive_t *); | 1283 | int ide_set_dma(ide_drive_t *); |
@@ -1304,6 +1305,7 @@ extern int __ide_dma_timeout(ide_drive_t *); | |||
1304 | #else | 1305 | #else |
1305 | static inline int ide_use_dma(ide_drive_t *drive) { return 0; } | 1306 | static inline int ide_use_dma(ide_drive_t *drive) { return 0; } |
1306 | static inline u8 ide_max_dma_mode(ide_drive_t *drive) { return 0; } | 1307 | static inline u8 ide_max_dma_mode(ide_drive_t *drive) { return 0; } |
1308 | static inline int ide_tune_dma(ide_drive_t *drive) { return 0; } | ||
1307 | static inline void ide_dma_off(ide_drive_t *drive) { ; } | 1309 | static inline void ide_dma_off(ide_drive_t *drive) { ; } |
1308 | static inline void ide_dma_verbose(ide_drive_t *drive) { ; } | 1310 | static inline void ide_dma_verbose(ide_drive_t *drive) { ; } |
1309 | static inline int ide_set_dma(ide_drive_t *drive) { return 1; } | 1311 | static inline int ide_set_dma(ide_drive_t *drive) { return 1; } |