1 #ifndef __NOUVEAU_DEBUGFS_H__
2 #define __NOUVEAU_DEBUGFS_H__
6 #if defined(CONFIG_DEBUG_FS)
8 #include "nouveau_drv.h"
10 struct nouveau_debugfs
{
11 struct nvif_object ctrl
;
14 static inline struct nouveau_debugfs
*
15 nouveau_debugfs(struct drm_device
*dev
)
17 return nouveau_drm(dev
)->debugfs
;
20 extern int nouveau_drm_debugfs_init(struct drm_minor
*);
21 extern int nouveau_debugfs_init(struct nouveau_drm
*);
22 extern void nouveau_debugfs_fini(struct nouveau_drm
*);
25 nouveau_drm_debugfs_init(struct drm_minor
*minor
)
31 nouveau_debugfs_init(struct nouveau_drm
*drm
)
37 nouveau_debugfs_fini(struct nouveau_drm
*drm
)