aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-07-04 20:20:04 +0300
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:10 +0200
commitabed411869770a0f6c31e66388d7566bae672c2c (patch)
treeb79799cd1869f792257ea4b714132118501affda /drivers/usb/dwc3
parent9e86e71bcec99256fa29466d207b414919beb977 (diff)
downloadlinux-linaro-stable-abed411869770a0f6c31e66388d7566bae672c2c.tar.gz
usb: dwc3: add a flags field to event buffer
that way we know if a particular event buffer has pending events, or not. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index 80f763f92e04..e7b06798fb69 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -369,6 +369,8 @@ struct dwc3_trb;
* @list: a list of event buffers
* @buf: _THE_ buffer
* @length: size of this buffer
+ * @lpos: event offset
+ * @flags: flags related to this event buffer
* @dma: dma_addr_t
* @dwc: pointer to DWC controller
*/
@@ -376,6 +378,9 @@ struct dwc3_event_buffer {
void *buf;
unsigned length;
unsigned int lpos;
+ unsigned int flags;
+
+#define DWC3_EVENT_PENDING BIT(0)
dma_addr_t dma;