Linux Audio

Check our new training course

Loading...
v4.6
 
 1#ifndef __NOUVEAU_DEBUGFS_H__
 2#define __NOUVEAU_DEBUGFS_H__
 3
 4#include <drm/drmP.h>
 5
 6#if defined(CONFIG_DEBUG_FS)
 7
 8#include "nouveau_drm.h"
 9
10struct nouveau_debugfs {
11	struct nvif_object ctrl;
12};
13
14static inline struct nouveau_debugfs *
15nouveau_debugfs(struct drm_device *dev)
16{
17	return nouveau_drm(dev)->debugfs;
18}
19
20extern int  nouveau_drm_debugfs_init(struct drm_minor *);
21extern void nouveau_drm_debugfs_cleanup(struct drm_minor *);
22extern int  nouveau_debugfs_init(struct nouveau_drm *);
23extern void nouveau_debugfs_fini(struct nouveau_drm *);
24#else
25static inline int
26nouveau_drm_debugfs_init(struct drm_minor *minor)
27{
28       return 0;
29}
30
31static inline void
32nouveau_drm_debugfs_cleanup(struct drm_minor *minor)
33{
34}
35
36static inline int
37nouveau_debugfs_init(struct nouveau_drm *drm)
38{
39	return 0;
40}
41
42static inline void
43nouveau_debugfs_fini(struct nouveau_drm *drm)
44{
45}
46
47#endif
48
49#endif
v5.4
 1/* SPDX-License-Identifier: MIT */
 2#ifndef __NOUVEAU_DEBUGFS_H__
 3#define __NOUVEAU_DEBUGFS_H__
 4
 5#include <drm/drm_debugfs.h>
 6
 7#if defined(CONFIG_DEBUG_FS)
 8
 9#include "nouveau_drv.h"
10
11struct nouveau_debugfs {
12	struct nvif_object ctrl;
13};
14
15static inline struct nouveau_debugfs *
16nouveau_debugfs(struct drm_device *dev)
17{
18	return nouveau_drm(dev)->debugfs;
19}
20
21extern int  nouveau_drm_debugfs_init(struct drm_minor *);
 
22extern int  nouveau_debugfs_init(struct nouveau_drm *);
23extern void nouveau_debugfs_fini(struct nouveau_drm *);
24#else
25static inline int
26nouveau_drm_debugfs_init(struct drm_minor *minor)
27{
28       return 0;
 
 
 
 
 
29}
30
31static inline int
32nouveau_debugfs_init(struct nouveau_drm *drm)
33{
34	return 0;
35}
36
37static inline void
38nouveau_debugfs_fini(struct nouveau_drm *drm)
39{
40}
41
42#endif
43
44#endif