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