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