summaryrefslogtreecommitdiff
path: root/include/scsi.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-14 21:28:45 -0600
committerSimon Glass <sjg@chromium.org>2017-07-11 10:08:19 -0600
commit5c56176318c8a602fa78813ac273f16a10278a2d (patch)
treee5b96c93ea8ed53607d47ab6ce0438c4246a7a84 /include/scsi.h
parentf6580ef39b332387f84334d238320ce99115af67 (diff)
dm: scsi: Split out the bus scanning code
Split out the code that scans a single SCSI bus into a separate function. This will allow it to be used from driver model. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/scsi.h')
-rw-r--r--include/scsi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/scsi.h b/include/scsi.h
index 9cdd13c795d..7173912de4a 100644
--- a/include/scsi.h
+++ b/include/scsi.h
@@ -219,6 +219,14 @@ int scsi_bus_reset(struct udevice *dev);
*/
int scsi_scan(bool verbose);
+/**
+ * scsi_scan_dev() - scan a SCSI bus and create devices
+ *
+ * @dev: SCSI bus
+ * @verbose: true to show information about each device found
+ */
+int scsi_scan_dev(struct udevice *dev, bool verbose);
+
#ifndef CONFIG_DM_SCSI
void scsi_low_level_init(int busdevfunc);
void scsi_init(void);