df3bf3805c697bf8a2f570d9f1dd4ccb37287c54
2 * rcar_du_vsp.h -- R-Car Display Unit VSP-Based Compositor
4 * Copyright (C) 2015 Renesas Electronics Corporation
6 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
14 #ifndef __RCAR_DU_VSP_H__
15 #define __RCAR_DU_VSP_H__
18 #include <drm/drm_crtc.h>
20 struct rcar_du_format_info
;
23 struct rcar_du_vsp_plane
{
24 struct drm_plane plane
;
25 struct rcar_du_vsp
*vsp
;
32 struct rcar_du_device
*dev
;
33 struct rcar_du_vsp_plane
*planes
;
34 unsigned int num_planes
;
37 static inline struct rcar_du_vsp_plane
*to_rcar_vsp_plane(struct drm_plane
*p
)
39 return container_of(p
, struct rcar_du_vsp_plane
, plane
);
43 * struct rcar_du_vsp_plane_state - Driver-specific plane state
44 * @state: base DRM plane state
45 * @format: information about the pixel format used by the plane
46 * @alpha: value of the plane alpha property
48 struct rcar_du_vsp_plane_state
{
49 struct drm_plane_state state
;
51 const struct rcar_du_format_info
*format
;
56 static inline struct rcar_du_vsp_plane_state
*
57 to_rcar_vsp_plane_state(struct drm_plane_state
*state
)
59 return container_of(state
, struct rcar_du_vsp_plane_state
, state
);
62 #ifdef CONFIG_DRM_RCAR_VSP
63 int rcar_du_vsp_init(struct rcar_du_vsp
*vsp
);
64 void rcar_du_vsp_enable(struct rcar_du_crtc
*crtc
);
65 void rcar_du_vsp_disable(struct rcar_du_crtc
*crtc
);
66 void rcar_du_vsp_atomic_begin(struct rcar_du_crtc
*crtc
);
67 void rcar_du_vsp_atomic_flush(struct rcar_du_crtc
*crtc
);
69 static inline int rcar_du_vsp_init(struct rcar_du_vsp
*vsp
) { return 0; };
70 static inline void rcar_du_vsp_enable(struct rcar_du_crtc
*crtc
) { };
71 static inline void rcar_du_vsp_disable(struct rcar_du_crtc
*crtc
) { };
72 static inline void rcar_du_vsp_atomic_begin(struct rcar_du_crtc
*crtc
) { };
73 static inline void rcar_du_vsp_atomic_flush(struct rcar_du_crtc
*crtc
) { };
76 #endif /* __RCAR_DU_VSP_H__ */
This page took 0.0316 seconds and 4 git commands to generate.