Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / rcar-du / rcar_du_writeback.h
blobfa87ebf8d21fa379ddb674eaca9272eaec474725
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * rcar_du_writeback.h -- R-Car Display Unit Writeback Support
5 * Copyright (C) 2019 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
6 */
8 #ifndef __RCAR_DU_WRITEBACK_H__
9 #define __RCAR_DU_WRITEBACK_H__
11 #include <drm/drm_plane.h>
13 struct rcar_du_crtc;
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);
23 #else
24 static inline int rcar_du_writeback_init(struct rcar_du_device *rcdu,
25 struct rcar_du_crtc *rcrtc)
27 return -ENXIO;
29 static inline void
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)
37 #endif
39 #endif /* __RCAR_DU_WRITEBACK_H__ */