git.openpandora.org
/
pandora-u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
scsi: Add function and env var to report number of scsi drives
[pandora-u-boot.git]
/
common
/
cmd_scsi.c
diff --git
a/common/cmd_scsi.c
b/common/cmd_scsi.c
index
31ea788
..
9bd8ec9
100644
(file)
--- a/
common/cmd_scsi.c
+++ b/
common/cmd_scsi.c
@@
-184,6
+184,14
@@
removable:
scsi_curr_dev=0;
else
scsi_curr_dev = -1;
+
+ printf("Found %d device(s).\n", scsi_max_devs);
+ setenv_ulong("scsidevs", scsi_max_devs);
+}
+
+int scsi_get_disk_count(void)
+{
+ return scsi_max_devs;
}
#ifdef CONFIG_PCI