summaryrefslogtreecommitdiff
path: root/include/ahci.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-07-04 19:31:18 (GMT)
committerJaehoon Chung <jh80.chung@samsung.com>2017-08-01 02:58:00 (GMT)
commit745a94f352b8f6f05e038110d3ce44d211bf31f3 (patch)
treed3ee7124f1931eaa0267b3e7f371d6f705816ade /include/ahci.h
parent6364a5d4bd55beeedc11171419acd0bdff17a599 (diff)
downloadu-boot-fsl-qoriq-745a94f352b8f6f05e038110d3ce44d211bf31f3.tar.xz
ahci: Support non-PCI controllers
At present the AHCI SCSI driver only supports PCI with driver model. Rename the existing function to indicate this and add support for adding a non-PCI controller . Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/ahci.h')
-rw-r--r--include/ahci.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/ahci.h b/include/ahci.h
index 818f344..29f4ba1 100644
--- a/include/ahci.h
+++ b/include/ahci.h
@@ -218,8 +218,20 @@ int ahci_bind_scsi(struct udevice *ahci_dev, struct udevice **devp);
* devices it finds.
*
* @ahci_dev: AHCI parent device
+ * @base: Base address of AHCI port
* @return 0 if OK, -ve on error
*/
-int ahci_probe_scsi(struct udevice *ahci_dev);
+int ahci_probe_scsi(struct udevice *ahci_dev, ulong base);
+
+/**
+ * ahci_probe_scsi_pci() - probe and scan the attached SCSI bus on PCI
+ *
+ * Note that the SCSI device will itself bind block devices for any storage
+ * devices it finds.
+ *
+ * @ahci_dev: AHCI parent device
+ * @return 0 if OK, -ve on error
+ */
+int ahci_probe_scsi_pci(struct udevice *ahci_dev);
#endif