diff options
author | Tejun Heo <tj@kernel.org> | 2010-05-10 15:41:32 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-05-17 22:49:07 -0400 |
commit | 9f2f72107ff621fdf3066e5a1b5ecb03ee587ebc (patch) | |
tree | 266c1371cb706c941ebaebd097380beccd530041 /include/linux/libata.h | |
parent | 6bc0d390dd3dfb7be4325ad0685ae8ec2baf15a4 (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.h | 21 |
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); | |||
1619 | extern int ata_sff_port_start(struct ata_port *ap); | 1619 | extern int ata_sff_port_start(struct ata_port *ap); |
1620 | extern int ata_sff_port_start32(struct ata_port *ap); | 1620 | extern int ata_sff_port_start32(struct ata_port *ap); |
1621 | extern void ata_sff_std_ports(struct ata_ioports *ioaddr); | 1621 | extern void ata_sff_std_ports(struct ata_ioports *ioaddr); |
1622 | extern unsigned long ata_bmdma_mode_filter(struct ata_device *dev, | ||
1623 | unsigned long xfer_mask); | ||
1624 | extern void ata_bmdma_setup(struct ata_queued_cmd *qc); | ||
1625 | extern void ata_bmdma_start(struct ata_queued_cmd *qc); | ||
1626 | extern void ata_bmdma_stop(struct ata_queued_cmd *qc); | ||
1627 | extern u8 ata_bmdma_status(struct ata_port *ap); | ||
1628 | |||
1629 | #ifdef CONFIG_PCI | 1622 | #ifdef CONFIG_PCI |
1630 | extern int ata_pci_bmdma_clear_simplex(struct pci_dev *pdev); | ||
1631 | extern int ata_pci_bmdma_init(struct ata_host *host); | ||
1632 | extern int ata_pci_sff_init_host(struct ata_host *host); | 1623 | extern int ata_pci_sff_init_host(struct ata_host *host); |
1633 | extern int ata_pci_sff_prepare_host(struct pci_dev *pdev, | 1624 | extern 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 | ||
1635 | extern unsigned long ata_bmdma_mode_filter(struct ata_device *dev, | ||
1636 | unsigned long xfer_mask); | ||
1637 | extern void ata_bmdma_setup(struct ata_queued_cmd *qc); | ||
1638 | extern void ata_bmdma_start(struct ata_queued_cmd *qc); | ||
1639 | extern void ata_bmdma_stop(struct ata_queued_cmd *qc); | ||
1640 | extern u8 ata_bmdma_status(struct ata_port *ap); | ||
1641 | |||
1642 | #ifdef CONFIG_PCI | ||
1643 | extern int ata_pci_bmdma_clear_simplex(struct pci_dev *pdev); | ||
1644 | extern 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. |