Skip to content

Commit

Permalink
usb: dwc3: add a flags field to event buffer
Browse files Browse the repository at this point in the history
that way we know if a particular event buffer
has pending events, or not.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 9e86e71 commit abed411
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/usb/dwc3/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,18 @@ 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
*/
struct dwc3_event_buffer {
void *buf;
unsigned length;
unsigned int lpos;
unsigned int flags;

#define DWC3_EVENT_PENDING BIT(0)

dma_addr_t dma;

Expand Down

0 comments on commit abed411

Please sign in to comment.