xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_debugfs.h (revision b5c47949a45ac972130c38cf13dfd8afb1f09285)
1 /*	$NetBSD: nouveau_debugfs.h,v 1.2 2018/08/27 04:58:24 riastradh Exp $	*/
2 
3 #ifndef __NOUVEAU_DEBUGFS_H__
4 #define __NOUVEAU_DEBUGFS_H__
5 
6 #include <drm/drmP.h>
7 
8 #if defined(CONFIG_DEBUG_FS)
9 extern int  nouveau_debugfs_init(struct drm_minor *);
10 extern void nouveau_debugfs_takedown(struct drm_minor *);
11 #else
12 static inline int
13 nouveau_debugfs_init(struct drm_minor *minor)
14 {
15        return 0;
16 }
17 
18 static inline void nouveau_debugfs_takedown(struct drm_minor *minor)
19 {
20 }
21 
22 #endif
23 
24 #endif
25