aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-26 14:13:01 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-26 14:13:01 -0500
commit4a546e046d562bcd389149591fa5a534c8f832ca (patch)
treeffc5c7bd088a0bf74744721b9cfcf18220a75fdf /include/linux/ide.h
parent378f577f7f75aa18a0eeafb044a491dcd5aeaa3d (diff)
ide: remove ->ide_dma_on and ->dma_off_quietly methods from ide_hwif_t
* Make ide_dma_off_quietly() and __ide_dma_on() always available. * Drop "__" prefix from __ide_dma_on(). * Check for presence of ->dma_host_on instead of ->ide_dma_on. * Convert all users of ->ide_dma_on and ->dma_off_quietly methods to use ide_dma_on() and ide_dma_off_quietly() instead. * Remove no longer needed ->ide_dma_on and ->dma_off_quietly methods from ide_hwif_t. * Make ide_dma_on() void. There should be no functionality changes caused by this patch. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index bf106d569cfc..140864d63aed 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -546,8 +546,6 @@ typedef struct hwif_s {
546 void (*dma_exec_cmd)(ide_drive_t *, u8); 546 void (*dma_exec_cmd)(ide_drive_t *, u8);
547 void (*dma_start)(ide_drive_t *); 547 void (*dma_start)(ide_drive_t *);
548 int (*ide_dma_end)(ide_drive_t *drive); 548 int (*ide_dma_end)(ide_drive_t *drive);
549 int (*ide_dma_on)(ide_drive_t *drive);
550 void (*dma_off_quietly)(ide_drive_t *drive);
551 int (*ide_dma_test_irq)(ide_drive_t *drive); 549 int (*ide_dma_test_irq)(ide_drive_t *drive);
552 void (*ide_dma_clear_irq)(ide_drive_t *drive); 550 void (*ide_dma_clear_irq)(ide_drive_t *drive);
553 void (*dma_host_on)(ide_drive_t *drive); 551 void (*dma_host_on)(ide_drive_t *drive);
@@ -1149,7 +1147,9 @@ static inline u8 ide_max_dma_mode(ide_drive_t *drive)
1149 return ide_find_dma_mode(drive, XFER_UDMA_6); 1147 return ide_find_dma_mode(drive, XFER_UDMA_6);
1150} 1148}
1151 1149
1150void ide_dma_off_quietly(ide_drive_t *);
1152void ide_dma_off(ide_drive_t *); 1151void ide_dma_off(ide_drive_t *);
1152void ide_dma_on(ide_drive_t *);
1153int ide_set_dma(ide_drive_t *); 1153int ide_set_dma(ide_drive_t *);
1154ide_startstop_t ide_dma_intr(ide_drive_t *); 1154ide_startstop_t ide_dma_intr(ide_drive_t *);
1155 1155
@@ -1161,9 +1161,7 @@ extern int ide_release_dma(ide_hwif_t *);
1161extern void ide_setup_dma(ide_hwif_t *, unsigned long, unsigned int); 1161extern void ide_setup_dma(ide_hwif_t *, unsigned long, unsigned int);
1162 1162
1163void ide_dma_host_off(ide_drive_t *); 1163void ide_dma_host_off(ide_drive_t *);
1164void ide_dma_off_quietly(ide_drive_t *);
1165void ide_dma_host_on(ide_drive_t *); 1164void ide_dma_host_on(ide_drive_t *);
1166extern int __ide_dma_on(ide_drive_t *);
1167extern int ide_dma_setup(ide_drive_t *); 1165extern int ide_dma_setup(ide_drive_t *);
1168extern void ide_dma_start(ide_drive_t *); 1166extern void ide_dma_start(ide_drive_t *);
1169extern int __ide_dma_end(ide_drive_t *); 1167extern int __ide_dma_end(ide_drive_t *);
@@ -1175,7 +1173,9 @@ extern void ide_dma_timeout(ide_drive_t *);
1175static inline int ide_id_dma_bug(ide_drive_t *drive) { return 0; } 1173static inline int ide_id_dma_bug(ide_drive_t *drive) { return 0; }
1176static inline u8 ide_find_dma_mode(ide_drive_t *drive, u8 speed) { return 0; } 1174static inline u8 ide_find_dma_mode(ide_drive_t *drive, u8 speed) { return 0; }
1177static inline u8 ide_max_dma_mode(ide_drive_t *drive) { return 0; } 1175static inline u8 ide_max_dma_mode(ide_drive_t *drive) { return 0; }
1176static inline void ide_dma_off_quietly(ide_drive_t *drive) { ; }
1178static inline void ide_dma_off(ide_drive_t *drive) { ; } 1177static inline void ide_dma_off(ide_drive_t *drive) { ; }
1178static inline void ide_dma_on(ide_drive_t *drive) { ; }
1179static inline void ide_dma_verbose(ide_drive_t *drive) { ; } 1179static inline void ide_dma_verbose(ide_drive_t *drive) { ; }
1180static inline int ide_set_dma(ide_drive_t *drive) { return 1; } 1180static inline int ide_set_dma(ide_drive_t *drive) { return 1; }
1181#endif /* CONFIG_BLK_DEV_IDEDMA */ 1181#endif /* CONFIG_BLK_DEV_IDEDMA */