diff options
author | Simon Glass <sjg@chromium.org> | 2016-05-01 11:35:55 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-05-17 09:54:43 -0600 |
commit | 84d39cbd30a49390457232b44031e95abfa46e77 (patch) | |
tree | 8ab433dfc78ad311f0c5e81d02ea7ab5ea589fb1 /drivers/block/sandbox_scsi.c | |
parent | e54094f2f9e812ae7b0d2ab2353ca11c0502849a (diff) |
sandbox: Add dummy SCSI functions
Add some functions needed by the SCSI code. This allows it to be compiled
for sandbox, thus increasing build coverage.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/block/sandbox_scsi.c')
-rw-r--r-- | drivers/block/sandbox_scsi.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/block/sandbox_scsi.c b/drivers/block/sandbox_scsi.c new file mode 100644 index 0000000000..ad961bd225 --- /dev/null +++ b/drivers/block/sandbox_scsi.c @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2015 Google, Inc + * Written by Simon Glass <sjg@chromium.org> + * + * SPDX-License-Identifier: GPL-2.0+ + * + * This file contains dummy implementations of SCSI functions requried so + * that CONFIG_SCSI can be enabled for sandbox. + */ + +#include <common.h> +#include <scsi.h> + +void scsi_bus_reset(void) +{ +} + +void scsi_init(void) +{ +} + +int scsi_exec(ccb *pccb) +{ + return 0; +} + +void scsi_print_error(ccb *pccb) +{ +} |