summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorheyuanjie87 <[email protected]>2013-01-11 00:02:21 +0800
committerheyuanjie87 <[email protected]>2013-01-11 00:02:40 +0800
commit7b2929303eeaf90f18f1404e896f869b62166ac4 (patch)
treedacb61f00483bd271efb0324a1f8b6d7d8bea945 /components/drivers/include
parentd84fde4e5493b1409adb2892fd4ac7cb4aadf303 (diff)
revert some define to usb_common.h
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/usb_common.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/usb_common.h b/components/drivers/include/drivers/usb_common.h
index 495cc17787..5881e11dc6 100644
--- a/components/drivers/include/drivers/usb_common.h
+++ b/components/drivers/include/drivers/usb_common.h
@@ -351,6 +351,27 @@ typedef struct ureqest* ureq_t;
#define CSW_SIGNATURE 0x53425355
#define CBW_TAG_VALUE 0x12345678
+struct ustorage_cbw
+{
+ rt_uint32_t signature;
+ rt_uint32_t tag;
+ rt_uint32_t xfer_len;
+ rt_uint8_t dflags;
+ rt_uint8_t lun;
+ rt_uint8_t cb_len;
+ rt_uint8_t cb[16];
+};
+typedef struct ustorage_cbw* ustorage_cbw_t;
+
+struct ustorage_csw
+{
+ rt_uint32_t signature;
+ rt_uint32_t tag;
+ rt_uint32_t data_reside;
+ rt_uint8_t status;
+};
+typedef struct ustorage_csw* ustorage_csw_t;
+
#pragma pack()
#ifdef __cplusplus