18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Cadence USBSS DRD Driver - Host Export APIs
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2017-2018 NXP
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Authors: Peter Chen <peter.chen@nxp.com>
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef __LINUX_CDNS3_HOST_EXPORT
108c2ecf20Sopenharmony_ci#define __LINUX_CDNS3_HOST_EXPORT
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cistruct usb_hcd;
138c2ecf20Sopenharmony_ci#ifdef CONFIG_USB_CDNS3_HOST
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciint cdns3_host_init(struct cdns3 *cdns);
168c2ecf20Sopenharmony_ciint xhci_cdns3_suspend_quirk(struct usb_hcd *hcd);
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#else
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_cistatic inline int cdns3_host_init(struct cdns3 *cdns)
218c2ecf20Sopenharmony_ci{
228c2ecf20Sopenharmony_ci	return -ENXIO;
238c2ecf20Sopenharmony_ci}
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_cistatic inline void cdns3_host_exit(struct cdns3 *cdns) { }
268c2ecf20Sopenharmony_cistatic inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd)
278c2ecf20Sopenharmony_ci{
288c2ecf20Sopenharmony_ci	return 0;
298c2ecf20Sopenharmony_ci}
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#endif /* CONFIG_USB_CDNS3_HOST */
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#endif /* __LINUX_CDNS3_HOST_EXPORT */
34