debug.h 976 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * debug.h - DesignWare USB3 DRD Controller Debug Header
  3. *
  4. * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
  5. *
  6. * Authors: Felipe Balbi <balbi@ti.com>,
  7. * Sebastian Andrzej Siewior <bigeasy@linutronix.de>
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 of
  11. * the License as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. */
  18. #include "core.h"
  19. #ifdef CONFIG_DEBUG_FS
  20. extern int dwc3_debugfs_init(struct dwc3 *);
  21. extern void dwc3_debugfs_exit(struct dwc3 *);
  22. #else
  23. static inline int dwc3_debugfs_init(struct dwc3 *d)
  24. { return 0; }
  25. static inline void dwc3_debugfs_exit(struct dwc3 *d)
  26. { }
  27. #endif