debug.h 948 B

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