Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 471d867 | 2016-05-01 11:35:55 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015 Google, Inc |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
| 5 | * |
Simon Glass | 471d867 | 2016-05-01 11:35:55 -0600 | [diff] [blame] | 6 | * This file contains dummy implementations of SCSI functions requried so |
| 7 | * that CONFIG_SCSI can be enabled for sandbox. |
| 8 | */ |
| 9 | |
| 10 | #include <common.h> |
| 11 | #include <scsi.h> |
| 12 | |
Simon Glass | 11b2b62 | 2017-06-14 21:28:40 -0600 | [diff] [blame] | 13 | int scsi_bus_reset(struct udevice *dev) |
Simon Glass | 471d867 | 2016-05-01 11:35:55 -0600 | [diff] [blame] | 14 | { |
Simon Glass | 11b2b62 | 2017-06-14 21:28:40 -0600 | [diff] [blame] | 15 | return 0; |
Simon Glass | 471d867 | 2016-05-01 11:35:55 -0600 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | void scsi_init(void) |
| 19 | { |
| 20 | } |
| 21 | |
Simon Glass | 11b2b62 | 2017-06-14 21:28:40 -0600 | [diff] [blame] | 22 | int scsi_exec(struct udevice *dev, struct scsi_cmd *pccb) |
Simon Glass | 471d867 | 2016-05-01 11:35:55 -0600 | [diff] [blame] | 23 | { |
| 24 | return 0; |
| 25 | } |