aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/usbstd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic/usbstd.h')
-rw-r--r--src/generic/usbstd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/generic/usbstd.h b/src/generic/usbstd.h
index 07d0c1ca..2cec37df 100644
--- a/src/generic/usbstd.h
+++ b/src/generic/usbstd.h
@@ -8,6 +8,12 @@
#define USB_DIR_OUT 0 /* to device */
#define USB_DIR_IN 0x80 /* to host */
+#define USB_TYPE_MASK (0x03 << 5)
+#define USB_TYPE_STANDARD (0x00 << 5)
+#define USB_TYPE_CLASS (0x01 << 5)
+#define USB_TYPE_VENDOR (0x02 << 5)
+#define USB_TYPE_RESERVED (0x03 << 5)
+
#define USB_REQ_GET_STATUS 0x00
#define USB_REQ_CLEAR_FEATURE 0x01
#define USB_REQ_SET_FEATURE 0x03