Commit abed4118 authored by Felipe Balbi's avatar Felipe Balbi

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: default avatarFelipe Balbi <balbi@ti.com>
parent 9e86e71b
...@@ -369,6 +369,8 @@ struct dwc3_trb; ...@@ -369,6 +369,8 @@ struct dwc3_trb;
* @list: a list of event buffers * @list: a list of event buffers
* @buf: _THE_ buffer * @buf: _THE_ buffer
* @length: size of this buffer * @length: size of this buffer
* @lpos: event offset
* @flags: flags related to this event buffer
* @dma: dma_addr_t * @dma: dma_addr_t
* @dwc: pointer to DWC controller * @dwc: pointer to DWC controller
*/ */
...@@ -376,6 +378,9 @@ struct dwc3_event_buffer { ...@@ -376,6 +378,9 @@ struct dwc3_event_buffer {
void *buf; void *buf;
unsigned length; unsigned length;
unsigned int lpos; unsigned int lpos;
unsigned int flags;
#define DWC3_EVENT_PENDING BIT(0)
dma_addr_t dma; dma_addr_t dma;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment