host-export.h 574 B

12345678910111213141516171819202122232425262728
  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. #ifdef CONFIG_USB_CDNS3_HOST
  12. int cdns3_host_init(struct cdns3 *cdns);
  13. void cdns3_host_exit(struct cdns3 *cdns);
  14. #else
  15. static inline int cdns3_host_init(struct cdns3 *cdns)
  16. {
  17. return -ENXIO;
  18. }
  19. static inline void cdns3_host_exit(struct cdns3 *cdns) { }
  20. #endif /* CONFIG_USB_CDNS3_HOST */
  21. #endif /* __LINUX_CDNS3_HOST_EXPORT */