summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-08-27 22:04:32 +0300
committerFelipe Balbi <balbi@ti.com>2011-09-09 13:02:03 +0300
commitdc137f01aca23ceb196945130a960e2a01b95890 (patch)
treebe12a0a233a9f1f16bc5e19022db53164154978b /drivers/usb/dwc3
parent164f6e141ed214bda30fb219d41ec3254bd90886 (diff)
downloadblackbird-obmc-linux-dc137f01aca23ceb196945130a960e2a01b95890.tar.gz
blackbird-obmc-linux-dc137f01aca23ceb196945130a960e2a01b95890.zip
usb: dwc3: core: add defines for XferNotReady event on Control EPs
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>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index 17e96610ec64..08d8ff6b943a 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -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;
OpenPOWER on IntegriCloud