aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-04-17 10:44:07 -0400
committerJeff Garzik <jeff@garzik.org>2007-04-28 14:16:03 -0400
commitf5cda257296fbd3683b1f568f2d94d3caaacf74d (patch)
treea0c31206f6a7f299c11f233a22f3b8b8aa836151 /include/linux/libata.h
parentf31871951b38daf2d7ca17daad59fdb735062da3 (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.h5
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);
734extern int ata_pci_clear_simplex(struct pci_dev *pdev); 734extern int ata_pci_clear_simplex(struct pci_dev *pdev);
735#endif /* CONFIG_PCI */ 735#endif /* CONFIG_PCI */
736extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports); 736extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports);
737extern struct ata_host *ata_host_alloc_pinfo(struct device *dev,
738 const struct ata_port_info * const * ppi, int n_ports);
737extern int ata_host_start(struct ata_host *host); 739extern int ata_host_start(struct ata_host *host);
738extern int ata_host_register(struct ata_host *host, 740extern int ata_host_register(struct ata_host *host,
739 struct scsi_host_template *sht); 741 struct scsi_host_template *sht);
742extern 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);
740extern int ata_device_add(const struct ata_probe_ent *ent); 745extern int ata_device_add(const struct ata_probe_ent *ent);
741extern void ata_host_detach(struct ata_host *host); 746extern void ata_host_detach(struct ata_host *host);
742extern void ata_host_init(struct ata_host *, struct device *, 747extern void ata_host_init(struct ata_host *, struct device *,