diff options
-rw-r--r-- | drivers/usb/musb/musb_core.h | 17 | ||||
-rw-r--r-- | drivers/usb/musb/musb_gadget.h | 17 | ||||
-rw-r--r-- | drivers/usb/musb/musb_host.h | 4 |
3 files changed, 14 insertions, 24 deletions
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index 8013a5f6d3d2..0193dc9f4351 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h | |||
@@ -82,23 +82,6 @@ struct musb_ep; | |||
82 | #define MUSB_CONFIG_PROC_FS | 82 | #define MUSB_CONFIG_PROC_FS |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | /****************************** PERIPHERAL ROLE *****************************/ | ||
86 | |||
87 | extern irqreturn_t musb_g_ep0_irq(struct musb *); | ||
88 | extern void musb_g_tx(struct musb *, u8); | ||
89 | extern void musb_g_rx(struct musb *, u8); | ||
90 | extern void musb_g_reset(struct musb *); | ||
91 | extern void musb_g_suspend(struct musb *); | ||
92 | extern void musb_g_resume(struct musb *); | ||
93 | extern void musb_g_wakeup(struct musb *); | ||
94 | extern void musb_g_disconnect(struct musb *); | ||
95 | |||
96 | /****************************** HOST ROLE ***********************************/ | ||
97 | |||
98 | extern irqreturn_t musb_h_ep0_irq(struct musb *); | ||
99 | extern void musb_host_tx(struct musb *, u8); | ||
100 | extern void musb_host_rx(struct musb *, u8); | ||
101 | |||
102 | /****************************** CONSTANTS ********************************/ | 85 | /****************************** CONSTANTS ********************************/ |
103 | 86 | ||
104 | #ifndef MUSB_C_NUM_EPS | 87 | #ifndef MUSB_C_NUM_EPS |
diff --git a/drivers/usb/musb/musb_gadget.h b/drivers/usb/musb/musb_gadget.h index 66b7c5e0fb44..75f821cc3d98 100644 --- a/drivers/usb/musb/musb_gadget.h +++ b/drivers/usb/musb/musb_gadget.h | |||
@@ -37,6 +37,17 @@ | |||
37 | 37 | ||
38 | #include <linux/list.h> | 38 | #include <linux/list.h> |
39 | 39 | ||
40 | extern irqreturn_t musb_g_ep0_irq(struct musb *); | ||
41 | extern void musb_g_tx(struct musb *, u8); | ||
42 | extern void musb_g_rx(struct musb *, u8); | ||
43 | extern void musb_g_reset(struct musb *); | ||
44 | extern void musb_g_suspend(struct musb *); | ||
45 | extern void musb_g_resume(struct musb *); | ||
46 | extern void musb_g_wakeup(struct musb *); | ||
47 | extern void musb_g_disconnect(struct musb *); | ||
48 | extern void musb_gadget_cleanup(struct musb *); | ||
49 | extern int musb_gadget_setup(struct musb *); | ||
50 | |||
40 | enum buffer_map_state { | 51 | enum buffer_map_state { |
41 | UN_MAPPED = 0, | 52 | UN_MAPPED = 0, |
42 | PRE_MAPPED, | 53 | PRE_MAPPED, |
@@ -106,14 +117,8 @@ static inline struct musb_request *next_request(struct musb_ep *ep) | |||
106 | return container_of(queue->next, struct musb_request, list); | 117 | return container_of(queue->next, struct musb_request, list); |
107 | } | 118 | } |
108 | 119 | ||
109 | extern void musb_g_tx(struct musb *musb, u8 epnum); | ||
110 | extern void musb_g_rx(struct musb *musb, u8 epnum); | ||
111 | |||
112 | extern const struct usb_ep_ops musb_g_ep0_ops; | 120 | extern const struct usb_ep_ops musb_g_ep0_ops; |
113 | 121 | ||
114 | extern int musb_gadget_setup(struct musb *); | ||
115 | extern void musb_gadget_cleanup(struct musb *); | ||
116 | |||
117 | extern void musb_g_giveback(struct musb_ep *, struct usb_request *, int); | 122 | extern void musb_g_giveback(struct musb_ep *, struct usb_request *, int); |
118 | 123 | ||
119 | extern void musb_ep_restart(struct musb *, struct musb_request *); | 124 | extern void musb_ep_restart(struct musb *, struct musb_request *); |
diff --git a/drivers/usb/musb/musb_host.h b/drivers/usb/musb/musb_host.h index 5a9c8feec10c..967026986de9 100644 --- a/drivers/usb/musb/musb_host.h +++ b/drivers/usb/musb/musb_host.h | |||
@@ -84,7 +84,9 @@ static inline struct musb_qh *first_qh(struct list_head *q) | |||
84 | return list_entry(q->next, struct musb_qh, ring); | 84 | return list_entry(q->next, struct musb_qh, ring); |
85 | } | 85 | } |
86 | 86 | ||
87 | 87 | extern irqreturn_t musb_h_ep0_irq(struct musb *); | |
88 | extern void musb_host_tx(struct musb *, u8); | ||
89 | extern void musb_host_rx(struct musb *, u8); | ||
88 | extern void musb_root_disconnect(struct musb *musb); | 90 | extern void musb_root_disconnect(struct musb *musb); |
89 | 91 | ||
90 | struct usb_hcd; | 92 | struct usb_hcd; |