Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264975
b: refs/heads/master
c: b53c772
h: refs/heads/master
i:
  264973: ed95c95
  264971: 25edf8c
  264967: 4f919f3
  264959: 5257f87
v: v3
  • Loading branch information
Felipe Balbi committed Sep 9, 2011
1 parent ecee811 commit f76a03e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b7836a9eb32f626ffd3fe3045e8c618cb8ed965
refs/heads/master: b53c772d16a9751554aabb05f95cef7b0b7fa2e9
10 changes: 10 additions & 0 deletions trunk/drivers/usb/dwc3/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,14 @@ enum dwc3_phy {
DWC3_PHY_USB2,
};

enum dwc3_ep0_next {
DWC3_EP0_UNKNOWN = 0,
DWC3_EP0_COMPLETE,
DWC3_EP0_NRDY_SETUP,
DWC3_EP0_NRDY_DATA,
DWC3_EP0_NRDY_STATUS,
};

enum dwc3_ep0_state {
EP0_UNCONNECTED = 0,
EP0_SETUP_PHASE,
Expand Down Expand Up @@ -520,6 +528,7 @@ static inline void dwc3_trb_to_nat(struct dwc3_trb_hw *hw, struct dwc3_trb *nat)
* @three_stage_setup: set if we perform a three phase setup
* @ep0_status_pending: ep0 status response without a req is pending
* @ep0_bounced: true when we used bounce buffer
* @ep0_next_event: hold the next expected event
* @ep0state: state of endpoint zero
* @link_state: link state
* @speed: device speed (super, high, full, low)
Expand Down Expand Up @@ -566,6 +575,7 @@ struct dwc3 {
unsigned ep0_status_pending:1;
unsigned ep0_bounced:1;

enum dwc3_ep0_next ep0_next_event;
enum dwc3_ep0_state ep0state;
enum dwc3_link_state link_state;
enum dwc3_device_state dev_state;
Expand Down

0 comments on commit f76a03e

Please sign in to comment.