summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2013-06-23 07:40:32 +0800
committerBernard Xiong <[email protected]>2013-06-23 07:40:32 +0800
commitc5927f51b3dcba72aea4aca26fdb3bffb1d6f763 (patch)
tree6a8ac1e323e765e8f9d77c52f450a2fd61960ad4 /components/drivers/include
parentf837ea41b1a263e2a3dfc2d4d4d9f0dfe31cb670 (diff)
parent0633e9853c6ce4713a28812a1200a2f77a366a40 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/usb_common.h1
-rw-r--r--components/drivers/include/drivers/usb_device.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/usb_common.h b/components/drivers/include/drivers/usb_common.h
index d8d32d8306..68944f43ef 100644
--- a/components/drivers/include/drivers/usb_common.h
+++ b/components/drivers/include/drivers/usb_common.h
@@ -368,6 +368,7 @@ typedef struct ureqest* ureq_t;
#define SCSI_INQUIRY_CMD 0x12
#define SCSI_ALLOW_MEDIUM_REMOVAL 0x1e
#define SCSI_MODE_SENSE_6 0x1a
+#define SCSI_START_STOP 0x1b
#define SCSI_READ_CAPACITIES 0x23
#define SCSI_READ_CAPACITY 0x25
#define SCSI_READ_10 0x28
diff --git a/components/drivers/include/drivers/usb_device.h b/components/drivers/include/drivers/usb_device.h
index f0e0989ce5..2f464def3f 100644
--- a/components/drivers/include/drivers/usb_device.h
+++ b/components/drivers/include/drivers/usb_device.h
@@ -146,6 +146,11 @@ enum udev_msg_type
USB_MSG_DATA_NOTIFY,
USB_MSG_SOF,
USB_MSG_RESET,
+ /* we don't need to add a "PLUG_IN" event because after the cable is
+ * plugged in(before any SETUP) the classed have nothing to do. If the host
+ * is ready, it will send RESET and we will have USB_MSG_RESET. So, a RESET
+ * should reset and run the class while plug_in is not. */
+ USB_MSG_PLUG_OUT,
};
typedef enum udev_msg_type udev_msg_type;