diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-02-25 12:28:09 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-28 14:05:18 -0500 |
commit | 7ac4704c099125214a4f0a4bd54ce94d15be2ffb (patch) | |
tree | 5d65763023c4446fe9b81a7c19562c28d22e3d64 /drivers/usb/gadget/storage_common.c | |
parent | 0d8520a1d7f43328bc7085d4244d93c595064157 (diff) |
usb/storage: a couple defines from drivers/usb/storage/transport.h to include/linux/usb/storage.h
This moves the BOT data structures for CBW and CSW from drivers internal
header file to global include able file in include/.
The storage gadget is using the same name for CSW but a different for
CBW so I fix it up properly. The same goes for the ub driver and keucr
driver in staging.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/storage_common.c')
-rw-r--r-- | drivers/usb/gadget/storage_common.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/usb/gadget/storage_common.c b/drivers/usb/gadget/storage_common.c index 85ea14e2545e..4095696b1582 100644 --- a/drivers/usb/gadget/storage_common.c +++ b/drivers/usb/gadget/storage_common.c | |||
@@ -153,29 +153,10 @@ | |||
153 | 153 | ||
154 | /* Bulk-only data structures */ | 154 | /* Bulk-only data structures */ |
155 | 155 | ||
156 | /* Command Block Wrapper */ | ||
157 | struct fsg_bulk_cb_wrap { | ||
158 | __le32 Signature; /* Contains 'USBC' */ | ||
159 | u32 Tag; /* Unique per command id */ | ||
160 | __le32 DataTransferLength; /* Size of the data */ | ||
161 | u8 Flags; /* Direction in bit 7 */ | ||
162 | u8 Lun; /* LUN (normally 0) */ | ||
163 | u8 Length; /* Of the CDB, <= MAX_COMMAND_SIZE */ | ||
164 | u8 CDB[16]; /* Command Data Block */ | ||
165 | }; | ||
166 | |||
167 | #define USB_BULK_CB_WRAP_LEN 31 | 156 | #define USB_BULK_CB_WRAP_LEN 31 |
168 | #define USB_BULK_CB_SIG 0x43425355 /* Spells out USBC */ | 157 | #define USB_BULK_CB_SIG 0x43425355 /* Spells out USBC */ |
169 | #define USB_BULK_IN_FLAG 0x80 | 158 | #define USB_BULK_IN_FLAG 0x80 |
170 | 159 | ||
171 | /* Command Status Wrapper */ | ||
172 | struct bulk_cs_wrap { | ||
173 | __le32 Signature; /* Should = 'USBS' */ | ||
174 | u32 Tag; /* Same as original command */ | ||
175 | __le32 Residue; /* Amount not transferred */ | ||
176 | u8 Status; /* See below */ | ||
177 | }; | ||
178 | |||
179 | #define USB_BULK_CS_WRAP_LEN 13 | 160 | #define USB_BULK_CS_WRAP_LEN 13 |
180 | #define USB_BULK_CS_SIG 0x53425355 /* Spells out 'USBS' */ | 161 | #define USB_BULK_CS_SIG 0x53425355 /* Spells out 'USBS' */ |
181 | #define USB_STATUS_PASS 0 | 162 | #define USB_STATUS_PASS 0 |