summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-01-24 16:44:35 -0800
committerGerrit <chrome-bot@google.com>2012-01-25 15:06:01 -0800
commitcf11fae2e4367bd2287b063217321efd10c5f189 (patch)
tree579a35fb6bf509ee81f573d74b325250a630bfd6 /include
parentd0076d861920a2aa12ec007b29acca869c7d0cfd (diff)
vbexport: report correct number of scsi drives
Right now our code makes the assumption that there always is one SCSI drive in the system (the AHCI attached SDD). However, this might not be the case. This patch prevents vboot from using an uninitialized disk entry when instead it should go into recovery mode. BUG=chrome-os-partner:7716 TEST=none Signed-off-by: Stefan Reinauer <reinauer@google.com> Change-Id: I761bbb3c92a60d4205a217c7b025f699deed83b0 Reviewed-on: https://gerrit.chromium.org/gerrit/14753 Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Commit-Ready: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/scsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi.h b/include/scsi.h
index aaafc9ca79..b00b517c4b 100644
--- a/include/scsi.h
+++ b/include/scsi.h
@@ -185,6 +185,7 @@ void scsi_low_level_init(int busdevfunc);
* functions residing inside cmd_scsi.c
*/
void scsi_init(void);
+int scsi_get_disk_count(void);
#define SCSI_IDENTIFY 0xC0 /* not used */