aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/mod.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-04-04 22:40:54 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-13 19:07:07 -0400
commit2f98382dcdfe1f0048b447da35f34507ffb514dc (patch)
tree2b488080471eceb387de0f7ccb22d8a8c12be403 /drivers/usb/renesas_usbhs/mod.h
parentf1407d5c66240b33d11a7f1a41d55ccf6a9d7647 (diff)
usb: renesas_usbhs: Add Renesas USBHS Gadget
This patch add usb gadget code to SuperH USBHS. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs/mod.h')
-rw-r--r--drivers/usb/renesas_usbhs/mod.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/mod.h b/drivers/usb/renesas_usbhs/mod.h
index bd873d5b432a..8644191e164f 100644
--- a/drivers/usb/renesas_usbhs/mod.h
+++ b/drivers/usb/renesas_usbhs/mod.h
@@ -103,4 +103,20 @@ void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod);
103 mod->func(param); \ 103 mod->func(param); \
104 }) 104 })
105 105
106/*
107 * gadget control
108 */
109#ifdef CONFIG_USB_RENESAS_USBHS_UDC
110extern int __devinit usbhs_mod_gadget_probe(struct usbhs_priv *priv);
111extern void __devexit usbhs_mod_gadget_remove(struct usbhs_priv *priv);
112#else
113static inline int usbhs_mod_gadget_probe(struct usbhs_priv *priv)
114{
115 return 0;
116}
117static inline void usbhs_mod_gadget_remove(struct usbhs_priv *priv)
118{
119}
120#endif
121
106#endif /* RENESAS_USB_MOD_H */ 122#endif /* RENESAS_USB_MOD_H */