2 * Copyright (c) 2015 Google, Inc
3 * Written by Simon Glass <sjg@chromium.org>
4 * Copyright (c) 2016 Xilinx, Inc
5 * Written by Michal Simek
7 * Based on ahci-uclass.c
9 * SPDX-License-Identifier: GPL-2.0+
16 int scsi_exec(struct udevice
*dev
, struct scsi_cmd
*pccb
)
18 struct scsi_ops
*ops
= scsi_get_ops(dev
);
23 return ops
->exec(dev
, pccb
);
26 int scsi_bus_reset(struct udevice
*dev
)
28 struct scsi_ops
*ops
= scsi_get_ops(dev
);
33 return ops
->bus_reset(dev
);
36 UCLASS_DRIVER(scsi
) = {
39 .per_device_platdata_auto_alloc_size
= sizeof(struct scsi_platdata
),