1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * rcar_du_writeback.h -- R-Car Display Unit Writeback Support
5 * Copyright (C) 2019 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
8 #ifndef __RCAR_DU_WRITEBACK_H__
9 #define __RCAR_DU_WRITEBACK_H__
11 #include <drm/drm_plane.h>
14 struct rcar_du_device
;
15 struct vsp1_du_atomic_pipe_config
;
17 #ifdef CONFIG_DRM_RCAR_WRITEBACK
18 int rcar_du_writeback_init(struct rcar_du_device
*rcdu
,
19 struct rcar_du_crtc
*rcrtc
);
20 void rcar_du_writeback_setup(struct rcar_du_crtc
*rcrtc
,
21 struct vsp1_du_writeback_config
*cfg
);
22 void rcar_du_writeback_complete(struct rcar_du_crtc
*rcrtc
);
24 static inline int rcar_du_writeback_init(struct rcar_du_device
*rcdu
,
25 struct rcar_du_crtc
*rcrtc
)
30 rcar_du_writeback_setup(struct rcar_du_crtc
*rcrtc
,
31 struct vsp1_du_writeback_config
*cfg
)
34 static inline void rcar_du_writeback_complete(struct rcar_du_crtc
*rcrtc
)
39 #endif /* __RCAR_DU_WRITEBACK_H__ */