diff options
author | Tejun Heo <htejun@gmail.com> | 2007-07-04 05:02:07 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-10 21:27:09 -0400 |
commit | d583bc18812f8da52bf25eef9cd111e5fd46a6ab (patch) | |
tree | 7b886a4ce61b7c0bf8085da5e56b323a9a2fa193 /include/linux/libata.h | |
parent | 35142ddbf7d81ff3f1d9521611e734b8d5014df2 (diff) |
libata: simplify PCI legacy SFF host handling
With PCI resource fix up for legacy hosts. We can use the same code
path to allocate IO resources and initialize host for both legacy and
native SFF hosts. Only IRQ requesting needs to be different.
Rename ata_pci_*_native_host() to ata_pci_*_sff_host(), kill all
legacy specific functions and use the renamed functions instead. This
simplifies code a lot.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index bf98d44c8109..0c8b6578bd59 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -870,11 +870,11 @@ struct pci_bits { | |||
870 | unsigned long val; | 870 | unsigned long val; |
871 | }; | 871 | }; |
872 | 872 | ||
873 | extern int ata_pci_init_native_host(struct ata_host *host); | 873 | extern int ata_pci_init_sff_host(struct ata_host *host); |
874 | extern int ata_pci_init_bmdma(struct ata_host *host); | 874 | extern int ata_pci_init_bmdma(struct ata_host *host); |
875 | extern int ata_pci_prepare_native_host(struct pci_dev *pdev, | 875 | extern int ata_pci_prepare_sff_host(struct pci_dev *pdev, |
876 | const struct ata_port_info * const * ppi, | 876 | const struct ata_port_info * const * ppi, |
877 | struct ata_host **r_host); | 877 | struct ata_host **r_host); |
878 | extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits); | 878 | extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits); |
879 | extern unsigned long ata_pci_default_filter(struct ata_device *, unsigned long); | 879 | extern unsigned long ata_pci_default_filter(struct ata_device *, unsigned long); |
880 | #endif /* CONFIG_PCI */ | 880 | #endif /* CONFIG_PCI */ |