aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-10-29 05:23:48 +0000
committerTom Rini <trini@ti.com>2012-11-02 15:20:40 -0700
commit447c031ba4b6b306bb3f77690af06f5d2ad0691b (patch)
tree53c2de2d3ddc343acdd06c700ec2a034ad1f06f5 /include
parentc4fa493d3a822757af8fbcdc516e12bb7f72d071 (diff)
downloadu-boot-linaro-stable-447c031ba4b6b306bb3f77690af06f5d2ad0691b.tar.gz
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>
Diffstat (limited to 'include')
-rw-r--r--include/scsi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi.h b/include/scsi.h
index 89ae45f8e..9681d198d 100644
--- a/include/scsi.h
+++ b/include/scsi.h
@@ -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 */