diff options
author | Tejun Heo <htejun@gmail.com> | 2007-04-17 10:44:07 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 14:16:03 -0400 |
commit | d491b27b1959565671e2c05dff09b5f535a854ce (patch) | |
tree | 207711a735f7460649f21bd9eedff04eb55afa11 /include/linux/libata.h | |
parent | 0f834de3ea61aacacf1fac59ba9e82680f83c846 (diff) |
libata: convert native PCI host handling to new init model
Convert native PCI host handling to alloc-init-register model. New
function ata_pci_init_native_host() follows the new init model and
replaces ata_pci_init_native_mode(). As there are remaining LLD
users, the old function isn't removed yet.
ata_pci_init_one() is reimplemented using the new function and now
fully converted to new init model.
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 300daf6c50d0..400429f9cd9d 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -892,6 +892,8 @@ struct pci_bits { | |||
892 | 892 | ||
893 | extern struct ata_probe_ent * | 893 | extern struct ata_probe_ent * |
894 | ata_pci_init_native_mode(struct pci_dev *pdev, struct ata_port_info **port, int portmask); | 894 | ata_pci_init_native_mode(struct pci_dev *pdev, struct ata_port_info **port, int portmask); |
895 | extern int ata_pci_init_native_host(struct ata_host *host, | ||
896 | unsigned int port_mask); | ||
895 | extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits); | 897 | extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits); |
896 | extern unsigned long ata_pci_default_filter(struct ata_device *, unsigned long); | 898 | extern unsigned long ata_pci_default_filter(struct ata_device *, unsigned long); |
897 | #endif /* CONFIG_PCI */ | 899 | #endif /* CONFIG_PCI */ |