host-export.h 537 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Cadence USBSS and USBSSP DRD Driver - Host Export APIs
  4. *
  5. * Copyright (C) 2017-2018 NXP
  6. *
  7. * Authors: Peter Chen <[email protected]>
  8. */
  9. #ifndef __LINUX_CDNS3_HOST_EXPORT
  10. #define __LINUX_CDNS3_HOST_EXPORT
  11. #if IS_ENABLED(CONFIG_USB_CDNS_HOST)
  12. int cdns_host_init(struct cdns *cdns);
  13. #else
  14. static inline int cdns_host_init(struct cdns *cdns)
  15. {
  16. return -ENXIO;
  17. }
  18. static inline void cdns_host_exit(struct cdns *cdns) { }
  19. #endif /* USB_CDNS_HOST */
  20. #endif /* __LINUX_CDNS3_HOST_EXPORT */