1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2015 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
5 * Copyright (c) 2016 Xilinx, Inc
6 * Written by Michal Simek
8 * Based on ahci-uclass.c
11 #define LOG_CATEGORY UCLASS_SCSI
17 int scsi_exec(struct udevice *dev, struct scsi_cmd *pccb)
19 struct scsi_ops *ops = scsi_get_ops(dev);
24 return ops->exec(dev, pccb);
27 int scsi_bus_reset(struct udevice *dev)
29 struct scsi_ops *ops = scsi_get_ops(dev);
34 return ops->bus_reset(dev);
37 UCLASS_DRIVER(scsi) = {
40 .per_device_plat_auto = sizeof(struct scsi_plat),