pvr_debugfs.h 757 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
  2. /* Copyright (c) 2023 Imagination Technologies Ltd. */
  3. #ifndef PVR_DEBUGFS_H
  4. #define PVR_DEBUGFS_H
  5. /* Forward declaration from <drm/drm_drv.h>. */
  6. struct drm_minor;
  7. #if defined(CONFIG_DEBUG_FS)
  8. /* Forward declaration from "pvr_device.h". */
  9. struct pvr_device;
  10. /* Forward declaration from <linux/dcache.h>. */
  11. struct dentry;
  12. struct pvr_debugfs_entry {
  13. const char *name;
  14. void (*init)(struct pvr_device *pvr_dev, struct dentry *dir);
  15. };
  16. void pvr_debugfs_init(struct drm_minor *minor);
  17. #else /* defined(CONFIG_DEBUG_FS) */
  18. #include <linux/compiler_attributes.h>
  19. static __always_inline void pvr_debugfs_init(struct drm_minor *minor) {}
  20. #endif /* defined(CONFIG_DEBUG_FS) */
  21. #endif /* PVR_DEBUGFS_H */