i915_debugfs.h 627 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: MIT */
  2. /*
  3. * Copyright © 2019 Intel Corporation
  4. */
  5. #ifndef __I915_DEBUGFS_H__
  6. #define __I915_DEBUGFS_H__
  7. struct drm_connector;
  8. struct drm_i915_gem_object;
  9. struct drm_i915_private;
  10. struct seq_file;
  11. #ifdef CONFIG_DEBUG_FS
  12. void i915_debugfs_register(struct drm_i915_private *dev_priv);
  13. void i915_debugfs_describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj);
  14. #else
  15. static inline void i915_debugfs_register(struct drm_i915_private *dev_priv) {}
  16. static inline void i915_debugfs_describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj) {}
  17. #endif
  18. #endif /* __I915_DEBUGFS_H__ */