linuxOS_AP06/kernel/drivers/gpu/drm/rockchip/rockchip_drm_debugfs.h
2025-06-03 12:28:32 +08:00

63 lines
1.3 KiB
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
* Author: Sandy Huang <hjc@rock-chips.com>
*/
#ifndef ROCKCHIP_DRM_DEBUGFS_H
#define ROCKCHIP_DRM_DEBUGFS_H
struct vop_dump_info;
enum vop_dump_status {
DUMP_DISABLE = 0,
DUMP_KEEP
};
#if defined(CONFIG_ROCKCHIP_DRM_DEBUG)
#if defined(CONFIG_NO_GKI)
int rockchip_drm_add_dump_buffer(struct drm_crtc *crtc, struct dentry *root);
int rockchip_drm_crtc_dump_plane_buffer(struct drm_crtc *crtc);
#else
static inline int
rockchip_drm_add_dump_buffer(struct drm_crtc *crtc, struct dentry *root)
{
return 0;
}
static inline int
rockchip_drm_crtc_dump_plane_buffer(struct drm_crtc *crtc)
{
return 0;
}
#endif
int rockchip_drm_debugfs_add_color_bar(struct drm_crtc *crtc, struct dentry *root);
int rockchip_drm_debugfs_add_regs_write(struct drm_crtc *crtc, struct dentry *root);
#else
static inline int
rockchip_drm_add_dump_buffer(struct drm_crtc *crtc, struct dentry *root)
{
return 0;
}
static inline int
rockchip_drm_crtc_dump_plane_buffer(struct drm_crtc *crtc)
{
return 0;
}
static inline int
rockchip_drm_debugfs_add_color_bar(struct drm_crtc *crtc, struct dentry *root)
{
return 0;
}
static inline int
rockchip_drm_debugfs_add_regs_write(struct drm_crtc *crtc, struct dentry *root)
{
return 0;
}
#endif
#endif