scsi: Add function and env var to report number of scsi drives

Add a new function to find out the number of available SCSI disks. Also
set the 'scsidevs' environment variable after each scan.

Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Stefan Reinauer
2012-10-29 05:23:48 +00:00
committed by Tom Rini
parent c4fa493d3a
commit 447c031ba4
3 changed files with 13 additions and 0 deletions

View File

@@ -189,6 +189,8 @@ void scsi_low_level_init(int busdevfunc);
void scsi_init(void);
void scsi_scan(int mode);
/** @return the number of scsi disks */
int scsi_get_disk_count(void);
#define SCSI_IDENTIFY 0xC0 /* not used */