debug.h 916 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * debug.h - Designware USB2 DRD controller debug header
  3. *
  4. * Copyright (C) 2015 Intel Corporation
  5. * Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 of
  9. * the License as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #include "core.h"
  17. #ifdef CONFIG_DEBUG_FS
  18. extern int dwc2_debugfs_init(struct dwc2_hsotg *);
  19. extern void dwc2_debugfs_exit(struct dwc2_hsotg *);
  20. #else
  21. static inline int dwc2_debugfs_init(struct dwc2_hsotg *hsotg)
  22. { return 0; }
  23. static inline void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg)
  24. { }
  25. #endif