Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[deliverable/linux.git] / drivers / gpu / drm / nouveau / nouveau_debugfs.h
CommitLineData
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
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
56c101af
KH
20extern int nouveau_drm_debugfs_init(struct drm_minor *);
21extern void nouveau_drm_debugfs_cleanup(struct drm_minor *);
b126a200
KH
22extern int nouveau_debugfs_init(struct nouveau_drm *);
23extern void nouveau_debugfs_fini(struct nouveau_drm *);
33b903e8
MS
24#else
25static inline int
56c101af 26nouveau_drm_debugfs_init(struct drm_minor *minor)
33b903e8
MS
27{
28 return 0;
29}
30
56c101af
KH
31static inline void
32nouveau_drm_debugfs_cleanup(struct drm_minor *minor)
33b903e8
MS
33{
34}
35
b126a200 36static inline int
38b17519 37nouveau_debugfs_init(struct nouveau_drm *drm)
b126a200
KH
38{
39 return 0;
40}
41
42static inline void
38b17519 43nouveau_debugfs_fini(struct nouveau_drm *drm)
b126a200
KH
44{
45}
46
33b903e8
MS
47#endif
48
49#endif
This page took 0.265317 seconds and 5 git commands to generate.