aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/emul
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-21 16:21:43 +0200
committerSimon Glass <sjg@chromium.org>2022-09-25 08:30:05 -0600
commit1ac42900d8de7a8989a76f2b69e6ae46784476b1 (patch)
treeb8b171b7333c7d08a14fe16bf475454331217ce4 /drivers/usb/emul
parente074df4d23516597ce65d5056614073cc4e6bfc8 (diff)
downloadu-boot-1ac42900d8de7a8989a76f2b69e6ae46784476b1.zip
u-boot-1ac42900d8de7a8989a76f2b69e6ae46784476b1.tar.gz
u-boot-1ac42900d8de7a8989a76f2b69e6ae46784476b1.tar.bz2
sandbox: scsi: Move structs to header file
Move these to the SCSI header file so we can access them from multiple emulators. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/emul')
-rw-r--r--drivers/usb/emul/sandbox_flash.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c
index 7b9a99c..2059fc7 100644
--- a/drivers/usb/emul/sandbox_flash.c
+++ b/drivers/usb/emul/sandbox_flash.c
@@ -57,32 +57,6 @@ struct sandbox_flash_plat {
struct usb_string flash_strings[STRINGID_COUNT];
};
-struct scsi_inquiry_resp {
- u8 type;
- u8 flags;
- u8 version;
- u8 data_format;
- u8 additional_len;
- u8 spare[3];
- char vendor[8];
- char product[16];
- char revision[4];
-};
-
-struct scsi_read_capacity_resp {
- u32 last_block_addr;
- u32 block_len;
-};
-
-struct __packed scsi_read10_req {
- u8 cmd;
- u8 lun_flags;
- u32 lba;
- u8 spare;
- u16 xfer_len;
- u8 spare2[3];
-};
-
static struct usb_device_descriptor flash_device_desc = {
.bLength = sizeof(flash_device_desc),
.bDescriptorType = USB_DT_DEVICE,