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 | f5cda257296fbd3683b1f568f2d94d3caaacf74d (patch) | |
tree | a0c31206f6a7f299c11f233a22f3b8b8aa836151 /include/linux/libata.h | |
parent | f31871951b38daf2d7ca17daad59fdb735062da3 (diff) |
libata: implement ata_host_alloc_pinfo() and ata_host_register()
Implement ata_host_alloc_pinfo() and ata_host_register(). These helpers
will be used in the following patches to adopt 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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 06cf23f0b3c7..300daf6c50d0 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -734,9 +734,14 @@ extern int ata_pci_device_resume(struct pci_dev *pdev); | |||
734 | extern int ata_pci_clear_simplex(struct pci_dev *pdev); | 734 | extern int ata_pci_clear_simplex(struct pci_dev *pdev); |
735 | #endif /* CONFIG_PCI */ | 735 | #endif /* CONFIG_PCI */ |
736 | extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports); | 736 | extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports); |
737 | extern struct ata_host *ata_host_alloc_pinfo(struct device *dev, | ||
738 | const struct ata_port_info * const * ppi, int n_ports); | ||
737 | extern int ata_host_start(struct ata_host *host); | 739 | extern int ata_host_start(struct ata_host *host); |
738 | extern int ata_host_register(struct ata_host *host, | 740 | extern int ata_host_register(struct ata_host *host, |
739 | struct scsi_host_template *sht); | 741 | struct scsi_host_template *sht); |
742 | extern int ata_host_activate(struct ata_host *host, int irq, | ||
743 | irq_handler_t irq_handler, unsigned long irq_flags, | ||
744 | struct scsi_host_template *sht); | ||
740 | extern int ata_device_add(const struct ata_probe_ent *ent); | 745 | extern int ata_device_add(const struct ata_probe_ent *ent); |
741 | extern void ata_host_detach(struct ata_host *host); | 746 | extern void ata_host_detach(struct ata_host *host); |
742 | extern void ata_host_init(struct ata_host *, struct device *, | 747 | extern void ata_host_init(struct ata_host *, struct device *, |