1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2015 Google, Inc
5 * Copyright (c) 2016 Xilinx, Inc
6 * Written by Michal Simek
8 * Based on ahci-uclass.c
15 int scsi_exec(struct udevice *dev, struct scsi_cmd *pccb)
17 struct scsi_ops *ops = scsi_get_ops(dev);
22 return ops->exec(dev, pccb);
25 int scsi_bus_reset(struct udevice *dev)
27 struct scsi_ops *ops = scsi_get_ops(dev);
32 return ops->bus_reset(dev);
35 UCLASS_DRIVER(scsi) = {
38 .per_device_platdata_auto_alloc_size = sizeof(struct scsi_platdata),