mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 21:17:50 +07:00
3a2b92725b
Drop include of the deprecated drmP.h from all nouveau heder files. This allows us to remove drmP.h from all .c files without any side-effects in a follow-up commit. Build tested using allyeyconfig and allmodconfig Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Ben Skeggs <bskeggs@redhat.com> Cc: nouveau@lists.freedesktop.org Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
45 lines
787 B
C
45 lines
787 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NOUVEAU_DEBUGFS_H__
|
|
#define __NOUVEAU_DEBUGFS_H__
|
|
|
|
#include <drm/drm_debugfs.h>
|
|
|
|
#if defined(CONFIG_DEBUG_FS)
|
|
|
|
#include "nouveau_drv.h"
|
|
|
|
struct nouveau_debugfs {
|
|
struct nvif_object ctrl;
|
|
};
|
|
|
|
static inline struct nouveau_debugfs *
|
|
nouveau_debugfs(struct drm_device *dev)
|
|
{
|
|
return nouveau_drm(dev)->debugfs;
|
|
}
|
|
|
|
extern int nouveau_drm_debugfs_init(struct drm_minor *);
|
|
extern int nouveau_debugfs_init(struct nouveau_drm *);
|
|
extern void nouveau_debugfs_fini(struct nouveau_drm *);
|
|
#else
|
|
static inline int
|
|
nouveau_drm_debugfs_init(struct drm_minor *minor)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int
|
|
nouveau_debugfs_init(struct nouveau_drm *drm)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void
|
|
nouveau_debugfs_fini(struct nouveau_drm *drm)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|