0001
0002 #ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
0003 #define __DRIVERS_USB_CHIPIDEA_HOST_H
0004
0005 #ifdef CONFIG_USB_CHIPIDEA_HOST
0006
0007 int ci_hdrc_host_init(struct ci_hdrc *ci);
0008 void ci_hdrc_host_destroy(struct ci_hdrc *ci);
0009 void ci_hdrc_host_driver_init(void);
0010
0011 #else
0012
0013 static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
0014 {
0015 return -ENXIO;
0016 }
0017
0018 static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
0019 {
0020
0021 }
0022
0023 static inline void ci_hdrc_host_driver_init(void)
0024 {
0025
0026 }
0027
0028 #endif
0029
0030 #endif