diff options
author | Karol Herbst <nouveau@karolherbst.de> | 2015-07-30 12:52:23 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-01-11 04:28:25 +0300 |
commit | b126a200e9dbd90fbe2148ee572dd0c2508be81f (patch) | |
tree | 5038256b4c4d8ea147767d36403367292a2ec67c /drivers/gpu/drm/nouveau/nouveau_debugfs.h | |
parent | 56c101af401f3c1f0c97bc98ad6f32e4d4a6b05a (diff) | |
download | linux-b126a200e9dbd90fbe2148ee572dd0c2508be81f.tar.xz |
drm/nouveau/debugfs: we need a ctrl object for debugfs
Signed-off-by: Karol Herbst <nouveau@karolherbst.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_debugfs.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_debugfs.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.h b/drivers/gpu/drm/nouveau/nouveau_debugfs.h index 42d65c9d1db7..52c7161297d7 100644 --- a/drivers/gpu/drm/nouveau/nouveau_debugfs.h +++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.h @@ -4,8 +4,23 @@ #include <drm/drmP.h> #if defined(CONFIG_DEBUG_FS) + +#include "nouveau_drm.h" + +struct nouveau_debugfs { + struct nvif_object ctrl; +}; + +static inline struct nouveau_debugfs * +nouveau_debugfs(struct drm_device *dev) +{ + return nouveau_drm(dev)->debugfs; +} + extern int nouveau_drm_debugfs_init(struct drm_minor *); extern void nouveau_drm_debugfs_cleanup(struct drm_minor *); +extern int nouveau_debugfs_init(struct nouveau_drm *); +extern void nouveau_debugfs_fini(struct nouveau_drm *); #else static inline int nouveau_drm_debugfs_init(struct drm_minor *minor) @@ -18,6 +33,17 @@ nouveau_drm_debugfs_cleanup(struct drm_minor *minor) { } +static inline int +nouveau_debugfs_init(struct nouveau_drm *) +{ + return 0; +} + +static inline void +nouveau_debugfs_fini(struct nouveau_drm *) +{ +} + #endif #endif |