]>
Commit | Line | Data |
---|---|---|
33b903e8 MS |
1 | #ifndef __NOUVEAU_DEBUGFS_H__ |
2 | #define __NOUVEAU_DEBUGFS_H__ | |
3 | ||
4 | #include <drm/drmP.h> | |
5 | ||
6 | #if defined(CONFIG_DEBUG_FS) | |
b126a200 | 7 | |
4dc28134 | 8 | #include "nouveau_drv.h" |
b126a200 KH |
9 | |
10 | struct nouveau_debugfs { | |
11 | struct nvif_object ctrl; | |
12 | }; | |
13 | ||
14 | static inline struct nouveau_debugfs * | |
15 | nouveau_debugfs(struct drm_device *dev) | |
16 | { | |
17 | return nouveau_drm(dev)->debugfs; | |
18 | } | |
19 | ||
56c101af | 20 | extern int nouveau_drm_debugfs_init(struct drm_minor *); |
b126a200 KH |
21 | extern int nouveau_debugfs_init(struct nouveau_drm *); |
22 | extern void nouveau_debugfs_fini(struct nouveau_drm *); | |
33b903e8 MS |
23 | #else |
24 | static inline int | |
56c101af | 25 | nouveau_drm_debugfs_init(struct drm_minor *minor) |
33b903e8 MS |
26 | { |
27 | return 0; | |
28 | } | |
29 | ||
b126a200 | 30 | static inline int |
38b17519 | 31 | nouveau_debugfs_init(struct nouveau_drm *drm) |
b126a200 KH |
32 | { |
33 | return 0; | |
34 | } | |
35 | ||
36 | static inline void | |
38b17519 | 37 | nouveau_debugfs_fini(struct nouveau_drm *drm) |
b126a200 KH |
38 | { |
39 | } | |
40 | ||
33b903e8 MS |
41 | #endif |
42 | ||
43 | #endif |