Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 #ifndef __NOUVEAU_DEBUGFS_H__
0003 #define __NOUVEAU_DEBUGFS_H__
0004 
0005 #include <drm/drm_debugfs.h>
0006 
0007 #if defined(CONFIG_DEBUG_FS)
0008 
0009 #include "nouveau_drv.h"
0010 
0011 struct nouveau_debugfs {
0012     struct nvif_object ctrl;
0013 };
0014 
0015 static inline struct nouveau_debugfs *
0016 nouveau_debugfs(struct drm_device *dev)
0017 {
0018     return nouveau_drm(dev)->debugfs;
0019 }
0020 
0021 extern void  nouveau_drm_debugfs_init(struct drm_minor *);
0022 extern int  nouveau_debugfs_init(struct nouveau_drm *);
0023 extern void nouveau_debugfs_fini(struct nouveau_drm *);
0024 #else
0025 static inline void
0026 nouveau_drm_debugfs_init(struct drm_minor *minor)
0027 {}
0028 
0029 static inline int
0030 nouveau_debugfs_init(struct nouveau_drm *drm)
0031 {
0032     return 0;
0033 }
0034 
0035 static inline void
0036 nouveau_debugfs_fini(struct nouveau_drm *drm)
0037 {
0038 }
0039 
0040 #endif
0041 
0042 #endif