aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:47 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:47 -0400
commit22117d6eaac50d366d9013c88318a869ea4d8739 (patch)
tree7dae55b028f8c7c249341f026257f94c88eed3cf /include/linux
parent60c0cd02b254805691cdc61101ada6af7bd56fde (diff)
ide: add ->dma_timer_expiry method and remove ->dma_exec_cmd one (v2)
* Rename dma_timer_expiry() to ide_dma_sff_timer_expiry() and export it. * Add ->dma_timer_expiry method and use it to set hwif->expiry for ATA_PROT_DMA protocol in do_rw_taskfile(). * Initialize ->dma_timer_expiry to ide_dma_sff_timer_expiry() for SFF hosts. * Move setting hwif->expiry from ide_execute_command() to its users and drop 'expiry' argument. * Use ide_execute_command() instead of ->dma_exec_cmd in do_rw_taskfile(). * Remove ->dma_exec_cmd method and its implementations. * Unexport ide_execute_command() and ide_dma_intr(). v2: * Fix CONFIG_BLK_DEV_IDEDMA=n build (noticed by Randy Dunlap). * Fix *dma_expiry naming (suggested by Sergei Shtylyov). There should be no functional changes caused by this patch. Cc: Randy Dunlap <randy.dunlap@oracle.com> Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-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 476f59885fda..9476939101be 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -715,11 +715,11 @@ struct ide_port_ops {
715struct ide_dma_ops { 715struct ide_dma_ops {
716 void (*dma_host_set)(struct ide_drive_s *, int); 716 void (*dma_host_set)(struct ide_drive_s *, int);
717 int (*dma_setup)(struct ide_drive_s *, struct ide_cmd *); 717 int (*dma_setup)(struct ide_drive_s *, struct ide_cmd *);
718 void (*dma_exec_cmd)(struct ide_drive_s *, u8);
719 void (*dma_start)(struct ide_drive_s *); 718 void (*dma_start)(struct ide_drive_s *);
720 int (*dma_end)(struct ide_drive_s *); 719 int (*dma_end)(struct ide_drive_s *);
721 int (*dma_test_irq)(struct ide_drive_s *); 720 int (*dma_test_irq)(struct ide_drive_s *);
722 void (*dma_lost_irq)(struct ide_drive_s *); 721 void (*dma_lost_irq)(struct ide_drive_s *);
722 int (*dma_timer_expiry)(struct ide_drive_s *);
723 void (*dma_timeout)(struct ide_drive_s *); 723 void (*dma_timeout)(struct ide_drive_s *);
724 /* 724 /*
725 * The following method is optional and only required to be 725 * The following method is optional and only required to be
@@ -1138,8 +1138,7 @@ void ide_kill_rq(ide_drive_t *, struct request *);
1138void __ide_set_handler(ide_drive_t *, ide_handler_t *, unsigned int); 1138void __ide_set_handler(ide_drive_t *, ide_handler_t *, unsigned int);
1139void ide_set_handler(ide_drive_t *, ide_handler_t *, unsigned int); 1139void ide_set_handler(ide_drive_t *, ide_handler_t *, unsigned int);
1140 1140
1141void ide_execute_command(ide_drive_t *, u8, ide_handler_t *, unsigned int, 1141void ide_execute_command(ide_drive_t *, u8, ide_handler_t *, unsigned int);
1142 ide_expiry_t *);
1143 1142
1144void ide_execute_pkt_cmd(ide_drive_t *); 1143void ide_execute_pkt_cmd(ide_drive_t *);
1145 1144
@@ -1453,10 +1452,10 @@ int config_drive_for_dma(ide_drive_t *);
1453int ide_build_dmatable(ide_drive_t *, struct ide_cmd *); 1452int ide_build_dmatable(ide_drive_t *, struct ide_cmd *);
1454void ide_dma_host_set(ide_drive_t *, int); 1453void ide_dma_host_set(ide_drive_t *, int);
1455int ide_dma_setup(ide_drive_t *, struct ide_cmd *); 1454int ide_dma_setup(ide_drive_t *, struct ide_cmd *);
1456void ide_dma_exec_cmd(ide_drive_t *, u8);
1457extern void ide_dma_start(ide_drive_t *); 1455extern void ide_dma_start(ide_drive_t *);
1458int ide_dma_end(ide_drive_t *); 1456int ide_dma_end(ide_drive_t *);
1459int ide_dma_test_irq(ide_drive_t *); 1457int ide_dma_test_irq(ide_drive_t *);
1458int ide_dma_sff_timer_expiry(ide_drive_t *);
1460u8 ide_dma_sff_read_status(ide_hwif_t *); 1459u8 ide_dma_sff_read_status(ide_hwif_t *);
1461extern const struct ide_dma_ops sff_dma_ops; 1460extern const struct ide_dma_ops sff_dma_ops;
1462#else 1461#else
@@ -1477,6 +1476,7 @@ static inline void ide_dma_on(ide_drive_t *drive) { ; }
1477static inline void ide_dma_verbose(ide_drive_t *drive) { ; } 1476static inline void ide_dma_verbose(ide_drive_t *drive) { ; }
1478static inline int ide_set_dma(ide_drive_t *drive) { return 1; } 1477static inline int ide_set_dma(ide_drive_t *drive) { return 1; }
1479static inline void ide_check_dma_crc(ide_drive_t *drive) { ; } 1478static inline void ide_check_dma_crc(ide_drive_t *drive) { ; }
1479static inline ide_startstop_t ide_dma_intr(ide_drive_t *drive) { return ide_stopped; }
1480static inline ide_startstop_t ide_dma_timeout_retry(ide_drive_t *drive, int error) { return ide_stopped; } 1480static inline ide_startstop_t ide_dma_timeout_retry(ide_drive_t *drive, int error) { return ide_stopped; }
1481static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; } 1481static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; }
1482static inline int ide_build_sglist(ide_drive_t *drive, 1482static inline int ide_build_sglist(ide_drive_t *drive,