diff options
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 |