1#ifndef __NOUVEAU_DEBUGFS_H__ 2#define __NOUVEAU_DEBUGFS_H__ 3 4#include <drm/drmP.h> 5 6#if defined(CONFIG_DEBUG_FS) 7 8#include "nouveau_drv.h" 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 20extern int nouveau_drm_debugfs_init(struct drm_minor *); 21extern int nouveau_debugfs_init(struct nouveau_drm *); 22extern void nouveau_debugfs_fini(struct nouveau_drm *); 23#else 24static inline int 25nouveau_drm_debugfs_init(struct drm_minor *minor) 26{ 27 return 0; 28} 29 30static inline int 31nouveau_debugfs_init(struct nouveau_drm *drm) 32{ 33 return 0; 34} 35 36static inline void 37nouveau_debugfs_fini(struct nouveau_drm *drm) 38{ 39} 40 41#endif 42 43#endif 44