mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 01:55:55 +07:00
12e32f554d
Implement writeback support for R-Car Gen3 by exposing writeback connectors. Behind the scene the calls are forwarded to the VSP backend. Using writeback connectors will allow implemented writeback support for R-Car Gen2 with a consistent API if desired. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
40 lines
1022 B
C
40 lines
1022 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* rcar_du_writeback.h -- R-Car Display Unit Writeback Support
|
|
*
|
|
* Copyright (C) 2019 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
*/
|
|
|
|
#ifndef __RCAR_DU_WRITEBACK_H__
|
|
#define __RCAR_DU_WRITEBACK_H__
|
|
|
|
#include <drm/drm_plane.h>
|
|
|
|
struct rcar_du_crtc;
|
|
struct rcar_du_device;
|
|
struct vsp1_du_atomic_pipe_config;
|
|
|
|
#ifdef CONFIG_DRM_RCAR_WRITEBACK
|
|
int rcar_du_writeback_init(struct rcar_du_device *rcdu,
|
|
struct rcar_du_crtc *rcrtc);
|
|
void rcar_du_writeback_setup(struct rcar_du_crtc *rcrtc,
|
|
struct vsp1_du_writeback_config *cfg);
|
|
void rcar_du_writeback_complete(struct rcar_du_crtc *rcrtc);
|
|
#else
|
|
static inline int rcar_du_writeback_init(struct rcar_du_device *rcdu,
|
|
struct rcar_du_crtc *rcrtc)
|
|
{
|
|
return -ENXIO;
|
|
}
|
|
static inline void
|
|
rcar_du_writeback_setup(struct rcar_du_crtc *rcrtc,
|
|
struct vsp1_du_writeback_config *cfg)
|
|
{
|
|
}
|
|
static inline void rcar_du_writeback_complete(struct rcar_du_crtc *rcrtc)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __RCAR_DU_WRITEBACK_H__ */
|