aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-04-17 10:44:06 -0400
committerJeff Garzik <jeff@garzik.org>2007-04-28 14:16:02 -0400
commitecef7253235e7a9365afe08a508e11bed91c1c11 (patch)
tree2d4ae5a148c38a3371a6be609594833733f24c8a /include/linux/libata.h
parent4911487a34baa89ec5b5f09a661761b73091fbec (diff)
libata: separate out ata_host_start()
Separate out ata_host_start() from ata_device_add(). ata_host_start() calls ->port_start on each port if available and freezes the port. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index ced9dd54035e..bda26e86f05f 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -210,6 +210,7 @@ enum {
210 210
211 /* host set flags */ 211 /* host set flags */
212 ATA_HOST_SIMPLEX = (1 << 0), /* Host is simplex, one DMA channel per host only */ 212 ATA_HOST_SIMPLEX = (1 << 0), /* Host is simplex, one DMA channel per host only */
213 ATA_HOST_STARTED = (1 << 1), /* Host started */
213 214
214 /* various lengths of time */ 215 /* various lengths of time */
215 ATA_TMOUT_BOOT = 30 * HZ, /* heuristic */ 216 ATA_TMOUT_BOOT = 30 * HZ, /* heuristic */
@@ -732,6 +733,7 @@ extern int ata_pci_device_resume(struct pci_dev *pdev);
732#endif 733#endif
733extern int ata_pci_clear_simplex(struct pci_dev *pdev); 734extern int ata_pci_clear_simplex(struct pci_dev *pdev);
734#endif /* CONFIG_PCI */ 735#endif /* CONFIG_PCI */
736extern int ata_host_start(struct ata_host *host);
735extern int ata_device_add(const struct ata_probe_ent *ent); 737extern int ata_device_add(const struct ata_probe_ent *ent);
736extern void ata_host_detach(struct ata_host *host); 738extern void ata_host_detach(struct ata_host *host);
737extern void ata_host_init(struct ata_host *, struct device *, 739extern void ata_host_init(struct ata_host *, struct device *,