aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-04-02 05:51:53 -0400
committerJeff Garzik <jeff@garzik.org>2006-04-02 10:09:21 -0400
commitece1d63619df010b8c4f08e43755e2a03f3b6eed (patch)
treec6474fe7541d479bf19c36c79700dfa9f6093a8d /include/linux/libata.h
parent35e86b53b1a38e78ff0d70dae4aeb25f4572e433 (diff)
[PATCH] libata: separate out libata-eh.c
A lot of EH codes are about to be added to libata. Separate out libata-eh.c. ata_scsi_timed_out(), ata_scsi_error(), ata_qc_timeout(), ata_eng_timeout(), ata_eh_qc_complete() and ata_eh_qc_retry() are moved. No code is changed by this patch. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index a6d829cb0567..75bdee09c307 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -531,9 +531,6 @@ extern void ata_host_set_remove(struct ata_host_set *host_set);
531extern int ata_scsi_detect(struct scsi_host_template *sht); 531extern int ata_scsi_detect(struct scsi_host_template *sht);
532extern int ata_scsi_ioctl(struct scsi_device *dev, int cmd, void __user *arg); 532extern int ata_scsi_ioctl(struct scsi_device *dev, int cmd, void __user *arg);
533extern int ata_scsi_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)); 533extern int ata_scsi_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *));
534extern int ata_scsi_error(struct Scsi_Host *host);
535extern void ata_eh_qc_complete(struct ata_queued_cmd *qc);
536extern void ata_eh_qc_retry(struct ata_queued_cmd *qc);
537extern int ata_scsi_release(struct Scsi_Host *host); 534extern int ata_scsi_release(struct Scsi_Host *host);
538extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); 535extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc);
539extern int ata_scsi_device_resume(struct scsi_device *); 536extern int ata_scsi_device_resume(struct scsi_device *);
@@ -582,7 +579,6 @@ extern void ata_bmdma_stop(struct ata_queued_cmd *qc);
582extern u8 ata_bmdma_status(struct ata_port *ap); 579extern u8 ata_bmdma_status(struct ata_port *ap);
583extern void ata_bmdma_irq_clear(struct ata_port *ap); 580extern void ata_bmdma_irq_clear(struct ata_port *ap);
584extern void __ata_qc_complete(struct ata_queued_cmd *qc); 581extern void __ata_qc_complete(struct ata_queued_cmd *qc);
585extern void ata_eng_timeout(struct ata_port *ap);
586extern void ata_scsi_simulate(struct ata_port *ap, struct ata_device *dev, 582extern void ata_scsi_simulate(struct ata_port *ap, struct ata_device *dev,
587 struct scsi_cmnd *cmd, 583 struct scsi_cmnd *cmd,
588 void (*done)(struct scsi_cmnd *)); 584 void (*done)(struct scsi_cmnd *));
@@ -637,6 +633,14 @@ extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bit
637extern unsigned long ata_pci_default_filter(const struct ata_port *, struct ata_device *, unsigned long); 633extern unsigned long ata_pci_default_filter(const struct ata_port *, struct ata_device *, unsigned long);
638#endif /* CONFIG_PCI */ 634#endif /* CONFIG_PCI */
639 635
636/*
637 * EH
638 */
639extern int ata_scsi_error(struct Scsi_Host *host);
640extern void ata_eng_timeout(struct ata_port *ap);
641extern void ata_eh_qc_complete(struct ata_queued_cmd *qc);
642extern void ata_eh_qc_retry(struct ata_queued_cmd *qc);
643
640 644
641static inline int 645static inline int
642ata_sg_is_last(struct scatterlist *sg, struct ata_queued_cmd *qc) 646ata_sg_is_last(struct scatterlist *sg, struct ata_queued_cmd *qc)