summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imagination/pvr_debugfs.h
blob: ebacbd13b84a0086a28cb13248a6e38a420b913e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: GPL-2.0-only OR MIT */
/* Copyright (c) 2023 Imagination Technologies Ltd. */

#ifndef PVR_DEBUGFS_H
#define PVR_DEBUGFS_H

/* Forward declaration from <drm/drm_drv.h>. */
struct drm_minor;

#if defined(CONFIG_DEBUG_FS)
/* Forward declaration from "pvr_device.h". */
struct pvr_device;

/* Forward declaration from <linux/dcache.h>. */
struct dentry;

struct pvr_debugfs_entry {
	const char *name;
	void (*init)(struct pvr_device *pvr_dev, struct dentry *dir);
};

void pvr_debugfs_init(struct drm_minor *minor);
#else /* defined(CONFIG_DEBUG_FS) */
#include <linux/compiler_attributes.h>

static __always_inline void pvr_debugfs_init(struct drm_minor *minor) {}
#endif /* defined(CONFIG_DEBUG_FS) */

#endif /* PVR_DEBUGFS_H */