aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-07-04 13:23:14 -0400
committerFelipe Balbi <balbi@ti.com>2013-03-18 05:17:10 -0400
commit60d04bbee0b729dc1e95d4dc669f68dea2a32570 (patch)
tree8121b1d23c1260c43fa93d9551094b088e967902
parentabed411869770a0f6c31e66388d7566bae672c2c (diff)
usb: dwc3: add count field to event buffer
we can cache the last read value of the event buffer count register on this field, for later handling. Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/dwc3/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index e7b06798fb69..cdd70cb78aa4 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -370,6 +370,7 @@ struct dwc3_trb;
370 * @buf: _THE_ buffer 370 * @buf: _THE_ buffer
371 * @length: size of this buffer 371 * @length: size of this buffer
372 * @lpos: event offset 372 * @lpos: event offset
373 * @count: cache of last read event count register
373 * @flags: flags related to this event buffer 374 * @flags: flags related to this event buffer
374 * @dma: dma_addr_t 375 * @dma: dma_addr_t
375 * @dwc: pointer to DWC controller 376 * @dwc: pointer to DWC controller
@@ -378,6 +379,7 @@ struct dwc3_event_buffer {
378 void *buf; 379 void *buf;
379 unsigned length; 380 unsigned length;
380 unsigned int lpos; 381 unsigned int lpos;
382 unsigned int count;
381 unsigned int flags; 383 unsigned int flags;
382 384
383#define DWC3_EVENT_PENDING BIT(0) 385#define DWC3_EVENT_PENDING BIT(0)