28 lines
537 B
C
Raw Normal View History

2026-01-21 18:59:54 +08:00
/* SPDX-License-Identifier: GPL-2.0 */
/*
2026-01-29 22:25:33 +08:00
* Cadence USBSS and USBSSP DRD Driver - Host Export APIs
2026-01-21 18:59:54 +08:00
*
* Copyright (C) 2017-2018 NXP
*
* Authors: Peter Chen <peter.chen@nxp.com>
*/
#ifndef __LINUX_CDNS3_HOST_EXPORT
#define __LINUX_CDNS3_HOST_EXPORT
2026-01-29 22:25:33 +08:00
#if IS_ENABLED(CONFIG_USB_CDNS_HOST)
2026-01-21 18:59:54 +08:00
2026-01-29 22:25:33 +08:00
int cdns_host_init(struct cdns *cdns);
2026-01-21 18:59:54 +08:00
#else
2026-01-29 22:25:33 +08:00
static inline int cdns_host_init(struct cdns *cdns)
2026-01-21 18:59:54 +08:00
{
return -ENXIO;
}
2026-01-29 22:25:33 +08:00
static inline void cdns_host_exit(struct cdns *cdns) { }
2026-01-21 18:59:54 +08:00
2026-01-29 22:25:33 +08:00
#endif /* USB_CDNS_HOST */
2026-01-21 18:59:54 +08:00
#endif /* __LINUX_CDNS3_HOST_EXPORT */