xref: /kernel/linux/linux-5.10/drivers/usb/chipidea/host.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/usb/chipidea/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
38c2ecf20Sopenharmony_ci#define __DRIVERS_USB_CHIPIDEA_HOST_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#ifdef CONFIG_USB_CHIPIDEA_HOST
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciint ci_hdrc_host_init(struct ci_hdrc *ci);
88c2ecf20Sopenharmony_civoid ci_hdrc_host_destroy(struct ci_hdrc *ci);
98c2ecf20Sopenharmony_civoid ci_hdrc_host_driver_init(void);
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#else
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_cistatic inline int ci_hdrc_host_init(struct ci_hdrc *ci)
148c2ecf20Sopenharmony_ci{
158c2ecf20Sopenharmony_ci	return -ENXIO;
168c2ecf20Sopenharmony_ci}
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_cistatic inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
198c2ecf20Sopenharmony_ci{
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci}
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_cistatic inline void ci_hdrc_host_driver_init(void)
248c2ecf20Sopenharmony_ci{
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci}
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#endif
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci#endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */
31

Indexes created Thu Nov 07 10:32:03 CST 2024