aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-05-10 15:41:32 -0400
committerJeff Garzik <jgarzik@redhat.com>2010-05-17 22:49:07 -0400
commit9f2f72107ff621fdf3066e5a1b5ecb03ee587ebc (patch)
tree266c1371cb706c941ebaebd097380beccd530041 /include/linux/libata.h
parent6bc0d390dd3dfb7be4325ad0685ae8ec2baf15a4 (diff)
libata-sff: reorder SFF/BMDMA functions
Reorder functions such that SFF and BMDMA functions are grouped. While at it, s/BMDMA/SFF in a few comments where it actually meant SFF. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index bd1b2b49e121..d735728873b5 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1619,16 +1619,7 @@ extern void ata_sff_post_internal_cmd(struct ata_queued_cmd *qc);
1619extern int ata_sff_port_start(struct ata_port *ap); 1619extern int ata_sff_port_start(struct ata_port *ap);
1620extern int ata_sff_port_start32(struct ata_port *ap); 1620extern int ata_sff_port_start32(struct ata_port *ap);
1621extern void ata_sff_std_ports(struct ata_ioports *ioaddr); 1621extern void ata_sff_std_ports(struct ata_ioports *ioaddr);
1622extern unsigned long ata_bmdma_mode_filter(struct ata_device *dev,
1623 unsigned long xfer_mask);
1624extern void ata_bmdma_setup(struct ata_queued_cmd *qc);
1625extern void ata_bmdma_start(struct ata_queued_cmd *qc);
1626extern void ata_bmdma_stop(struct ata_queued_cmd *qc);
1627extern u8 ata_bmdma_status(struct ata_port *ap);
1628
1629#ifdef CONFIG_PCI 1622#ifdef CONFIG_PCI
1630extern int ata_pci_bmdma_clear_simplex(struct pci_dev *pdev);
1631extern int ata_pci_bmdma_init(struct ata_host *host);
1632extern int ata_pci_sff_init_host(struct ata_host *host); 1623extern int ata_pci_sff_init_host(struct ata_host *host);
1633extern int ata_pci_sff_prepare_host(struct pci_dev *pdev, 1624extern int ata_pci_sff_prepare_host(struct pci_dev *pdev,
1634 const struct ata_port_info * const * ppi, 1625 const struct ata_port_info * const * ppi,
@@ -1641,6 +1632,18 @@ extern int ata_pci_sff_init_one(struct pci_dev *pdev,
1641 struct scsi_host_template *sht, void *host_priv, int hflags); 1632 struct scsi_host_template *sht, void *host_priv, int hflags);
1642#endif /* CONFIG_PCI */ 1633#endif /* CONFIG_PCI */
1643 1634
1635extern unsigned long ata_bmdma_mode_filter(struct ata_device *dev,
1636 unsigned long xfer_mask);
1637extern void ata_bmdma_setup(struct ata_queued_cmd *qc);
1638extern void ata_bmdma_start(struct ata_queued_cmd *qc);
1639extern void ata_bmdma_stop(struct ata_queued_cmd *qc);
1640extern u8 ata_bmdma_status(struct ata_port *ap);
1641
1642#ifdef CONFIG_PCI
1643extern int ata_pci_bmdma_clear_simplex(struct pci_dev *pdev);
1644extern int ata_pci_bmdma_init(struct ata_host *host);
1645#endif /* CONFIG_PCI */
1646
1644/** 1647/**
1645 * ata_sff_busy_wait - Wait for a port status register 1648 * ata_sff_busy_wait - Wait for a port status register
1646 * @ap: Port to wait for. 1649 * @ap: Port to wait for.