David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Cadence USBSS DRD Driver - Host Export APIs |
| 4 | * |
| 5 | * Copyright (C) 2017-2018 NXP |
| 6 | * |
| 7 | * Authors: Peter Chen <peter.chen@nxp.com> |
| 8 | */ |
| 9 | #ifndef __LINUX_CDNS3_HOST_EXPORT |
| 10 | #define __LINUX_CDNS3_HOST_EXPORT |
| 11 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 12 | struct usb_hcd; |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 13 | #ifdef CONFIG_USB_CDNS3_HOST |
| 14 | |
| 15 | int cdns3_host_init(struct cdns3 *cdns); |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 16 | int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd); |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 17 | |
| 18 | #else |
| 19 | |
| 20 | static inline int cdns3_host_init(struct cdns3 *cdns) |
| 21 | { |
| 22 | return -ENXIO; |
| 23 | } |
| 24 | |
| 25 | static inline void cdns3_host_exit(struct cdns3 *cdns) { } |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 26 | static inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 30 | |
| 31 | #endif /* CONFIG_USB_CDNS3_HOST */ |
| 32 | |
| 33 | #endif /* __LINUX_CDNS3_HOST_EXPORT */ |