Brooklyn/drivers/usb/cdns3/host-export.h

34 lines
678 B
C
Raw Normal View History

2021-05-27 00:09:36 +05:00
/* SPDX-License-Identifier: GPL-2.0 */
/*
2021-09-23 21:59:15 +05:00
* Cadence USBSS DRD Driver - Host Export APIs
2021-05-27 00:09:36 +05:00
*
* Copyright (C) 2017-2018 NXP
*
* Authors: Peter Chen <peter.chen@nxp.com>
*/
#ifndef __LINUX_CDNS3_HOST_EXPORT
#define __LINUX_CDNS3_HOST_EXPORT
2021-09-23 21:59:15 +05:00
struct usb_hcd;
#ifdef CONFIG_USB_CDNS3_HOST
2021-05-27 00:09:36 +05:00
2021-09-23 21:59:15 +05:00
int cdns3_host_init(struct cdns3 *cdns);
int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd);
2021-05-27 00:09:36 +05:00
#else
2021-09-23 21:59:15 +05:00
static inline int cdns3_host_init(struct cdns3 *cdns)
2021-05-27 00:09:36 +05:00
{
return -ENXIO;
}
2021-09-23 21:59:15 +05:00
static inline void cdns3_host_exit(struct cdns3 *cdns) { }
static inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd)
{
return 0;
}
2021-05-27 00:09:36 +05:00
2021-09-23 21:59:15 +05:00
#endif /* CONFIG_USB_CDNS3_HOST */
2021-05-27 00:09:36 +05:00
#endif /* __LINUX_CDNS3_HOST_EXPORT */