usb: dwc3: core: add defines for XferNotReady event on Control EPs
authorFelipe Balbi <balbi@ti.com>
Sat, 27 Aug 2011 19:04:32 +0000 (22:04 +0300)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:02:03 +0000 (13:02 +0300)
The status field of the Transfer Not Read event
is different on Control Endpoints. On this patch
we are just adding the defines to be used on a
later patch which will re-work the control endpoint
handling.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h

index 17e9661..08d8ff6 100644 (file)
@@ -634,6 +634,12 @@ struct dwc3_event_depevt {
 #define DEPEVT_STATUS_SHORT     (1 << 1)
 #define DEPEVT_STATUS_IOC       (1 << 2)
 #define DEPEVT_STATUS_LST      (1 << 3)
+
+/* Control-only Status */
+#define DEPEVT_STATUS_CONTROL_SETUP    0
+#define DEPEVT_STATUS_CONTROL_DATA     1
+#define DEPEVT_STATUS_CONTROL_STATUS   2
+
        u32     parameters:16;
 } __packed;