aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos/exynos_drm_drv.h
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2015-11-30 08:53:25 -0500
committerInki Dae <daeinki@gmail.com>2015-12-13 08:22:57 -0500
commitfd2d2fc2db28d3a2a18b7504e2d6d8b0753f90e8 (patch)
tree41b521e137aa1c50319fd0054dda643f438a505c /drivers/gpu/drm/exynos/exynos_drm_drv.h
parentab14420125c3cd1111f57731f0f9359c4e64d76a (diff)
drm/exynos: introduce exynos_drm_plane_config structure
This patch adds common structure for keeping plane configuration and capabilities data. This patch is inspired by similar code developed by Tobias Jakobi. Changelog v2: - fix vidi_win_types(i) call. vidi_win_types is not a function. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_drv.h')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h
index 482ed2c2ed89..6f8a296a3115 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h
@@ -84,11 +84,30 @@ to_exynos_plane_state(struct drm_plane_state *state)
84 84
85struct exynos_drm_plane { 85struct exynos_drm_plane {
86 struct drm_plane base; 86 struct drm_plane base;
87 const struct exynos_drm_plane_config *config;
87 unsigned int zpos; 88 unsigned int zpos;
88 struct drm_framebuffer *pending_fb; 89 struct drm_framebuffer *pending_fb;
89}; 90};
90 91
91/* 92/*
93 * Exynos DRM plane configuration structure.
94 *
95 * @zpos: z-position of the plane.
96 * @type: type of the plane (primary, cursor or overlay).
97 * @pixel_formats: supported pixel formats.
98 * @num_pixel_formats: number of elements in 'pixel_formats'.
99 * @capabilities: supported features (see EXYNOS_DRM_PLANE_CAP_*)
100 */
101
102struct exynos_drm_plane_config {
103 unsigned int zpos;
104 enum drm_plane_type type;
105 const uint32_t *pixel_formats;
106 unsigned int num_pixel_formats;
107 unsigned int capabilities;
108};
109
110/*
92 * Exynos drm crtc ops 111 * Exynos drm crtc ops
93 * 112 *
94 * @enable: enable the device 113 * @enable: enable the device