usb: dwc3: add a flags field to event buffer
authorFelipe Balbi <balbi@ti.com>
Mon, 4 Jul 2011 17:20:04 +0000 (20:20 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:10 +0000 (11:17 +0200)
that way we know if a particular event buffer
has pending events, or not.

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

index 80f763f..e7b0679 100644 (file)
@@ -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;