kgsl_debugfs.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Copyright (c) 2002,2008-2011,2013, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef _KGSL_DEBUGFS_H
  14. #define _KGSL_DEBUGFS_H
  15. struct kgsl_device;
  16. struct kgsl_process_private;
  17. #ifdef CONFIG_DEBUG_FS
  18. void kgsl_core_debugfs_init(void);
  19. void kgsl_core_debugfs_close(void);
  20. int kgsl_device_debugfs_init(struct kgsl_device *device);
  21. extern struct dentry *kgsl_debugfs_dir;
  22. static inline struct dentry *kgsl_get_debugfs_dir(void)
  23. {
  24. return kgsl_debugfs_dir;
  25. }
  26. int kgsl_process_init_debugfs(struct kgsl_process_private *);
  27. #else
  28. static inline void kgsl_core_debugfs_init(void) { }
  29. static inline void kgsl_device_debugfs_init(struct kgsl_device *device) { }
  30. static inline void kgsl_core_debugfs_close(void) { }
  31. static inline struct dentry *kgsl_get_debugfs_dir(void) { return NULL; }
  32. static inline int kgsl_process_init_debugfs(struct kgsl_process_private *priv)
  33. {
  34. return 0;
  35. }
  36. #endif
  37. #endif