2013-02-09 04:42:13 +08:00
|
|
|
#ifndef __NOUVEAU_DEBUGFS_H__
|
|
|
|
#define __NOUVEAU_DEBUGFS_H__
|
|
|
|
|
|
|
|
#include <drm/drmP.h>
|
|
|
|
|
|
|
|
#if defined(CONFIG_DEBUG_FS)
|
2015-07-30 17:52:23 +08:00
|
|
|
|
|
|
|
#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;
|
|
|
|
}
|
|
|
|
|
2015-07-31 06:35:42 +08:00
|
|
|
extern int nouveau_drm_debugfs_init(struct drm_minor *);
|
|
|
|
extern void nouveau_drm_debugfs_cleanup(struct drm_minor *);
|
2015-07-30 17:52:23 +08:00
|
|
|
extern int nouveau_debugfs_init(struct nouveau_drm *);
|
|
|
|
extern void nouveau_debugfs_fini(struct nouveau_drm *);
|
2013-02-09 04:42:13 +08:00
|
|
|
#else
|
|
|
|
static inline int
|
2015-07-31 06:35:42 +08:00
|
|
|
nouveau_drm_debugfs_init(struct drm_minor *minor)
|
2013-02-09 04:42:13 +08:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-07-31 06:35:42 +08:00
|
|
|
static inline void
|
|
|
|
nouveau_drm_debugfs_cleanup(struct drm_minor *minor)
|
2013-02-09 04:42:13 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-07-30 17:52:23 +08:00
|
|
|
static inline int
|
2016-01-13 21:48:13 +08:00
|
|
|
nouveau_debugfs_init(struct nouveau_drm *drm)
|
2015-07-30 17:52:23 +08:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
2016-01-13 21:48:13 +08:00
|
|
|
nouveau_debugfs_fini(struct nouveau_drm *drm)
|
2015-07-30 17:52:23 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-02-09 04:42:13 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|