diff options
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
-rw-r--r-- | drivers/usb/dwc3/gadget.h | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h index 71145a449d99..d97f467d41cc 100644 --- a/drivers/usb/dwc3/gadget.h +++ b/drivers/usb/dwc3/gadget.h | |||
@@ -79,19 +79,6 @@ struct dwc3_gadget_ep_cmd_params { | |||
79 | 79 | ||
80 | /* -------------------------------------------------------------------------- */ | 80 | /* -------------------------------------------------------------------------- */ |
81 | 81 | ||
82 | struct dwc3_request { | ||
83 | struct usb_request request; | ||
84 | struct list_head list; | ||
85 | struct dwc3_ep *dep; | ||
86 | |||
87 | u8 epnum; | ||
88 | struct dwc3_trb_hw *trb; | ||
89 | dma_addr_t trb_dma; | ||
90 | |||
91 | unsigned direction:1; | ||
92 | unsigned mapped:1; | ||
93 | unsigned queued:1; | ||
94 | }; | ||
95 | #define to_dwc3_request(r) (container_of(r, struct dwc3_request, request)) | 82 | #define to_dwc3_request(r) (container_of(r, struct dwc3_request, request)) |
96 | 83 | ||
97 | static inline struct dwc3_request *next_request(struct list_head *list) | 84 | static inline struct dwc3_request *next_request(struct list_head *list) |
@@ -110,23 +97,11 @@ static inline void dwc3_gadget_move_request_queued(struct dwc3_request *req) | |||
110 | list_move_tail(&req->list, &dep->req_queued); | 97 | list_move_tail(&req->list, &dep->req_queued); |
111 | } | 98 | } |
112 | 99 | ||
113 | #if defined(CONFIG_USB_GADGET_DWC3) || defined(CONFIG_USB_GADGET_DWC3_MODULE) | ||
114 | int dwc3_gadget_init(struct dwc3 *dwc); | ||
115 | void dwc3_gadget_exit(struct dwc3 *dwc); | ||
116 | #else | ||
117 | static inline int dwc3_gadget_init(struct dwc3 *dwc) { return 0; } | ||
118 | static inline void dwc3_gadget_exit(struct dwc3 *dwc) { } | ||
119 | static inline int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, | ||
120 | unsigned cmd, struct dwc3_gadget_ep_cmd_params *params) | ||
121 | { | ||
122 | return 0; | ||
123 | } | ||
124 | #endif | ||
125 | |||
126 | void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req, | 100 | void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req, |
127 | int status); | 101 | int status); |
128 | 102 | ||
129 | void dwc3_ep0_interrupt(struct dwc3 *dwc, const struct dwc3_event_depevt *event); | 103 | void dwc3_ep0_interrupt(struct dwc3 *dwc, |
104 | const struct dwc3_event_depevt *event); | ||
130 | void dwc3_ep0_out_start(struct dwc3 *dwc); | 105 | void dwc3_ep0_out_start(struct dwc3 *dwc); |
131 | int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request, | 106 | int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request, |
132 | gfp_t gfp_flags); | 107 | gfp_t gfp_flags); |