aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos/exynos_drm_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_drv.h')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h
index 1d814175cd49..c82c90c443e7 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h
@@ -77,6 +77,8 @@ struct exynos_drm_overlay_ops {
77 * - the unit is screen coordinates. 77 * - the unit is screen coordinates.
78 * @fb_width: width of a framebuffer. 78 * @fb_width: width of a framebuffer.
79 * @fb_height: height of a framebuffer. 79 * @fb_height: height of a framebuffer.
80 * @src_width: width of a partial image to be displayed from framebuffer.
81 * @src_height: height of a partial image to be displayed from framebuffer.
80 * @crtc_x: offset x on hardware screen. 82 * @crtc_x: offset x on hardware screen.
81 * @crtc_y: offset y on hardware screen. 83 * @crtc_y: offset y on hardware screen.
82 * @crtc_width: window width to be displayed (hardware screen). 84 * @crtc_width: window width to be displayed (hardware screen).
@@ -108,6 +110,8 @@ struct exynos_drm_overlay {
108 unsigned int fb_y; 110 unsigned int fb_y;
109 unsigned int fb_width; 111 unsigned int fb_width;
110 unsigned int fb_height; 112 unsigned int fb_height;
113 unsigned int src_width;
114 unsigned int src_height;
111 unsigned int crtc_x; 115 unsigned int crtc_x;
112 unsigned int crtc_y; 116 unsigned int crtc_y;
113 unsigned int crtc_width; 117 unsigned int crtc_width;
@@ -205,6 +209,18 @@ struct exynos_drm_manager {
205 struct exynos_drm_display_ops *display_ops; 209 struct exynos_drm_display_ops *display_ops;
206}; 210};
207 211
212struct exynos_drm_g2d_private {
213 struct device *dev;
214 struct list_head inuse_cmdlist;
215 struct list_head event_list;
216 struct list_head gem_list;
217 unsigned int gem_nr;
218};
219
220struct drm_exynos_file_private {
221 struct exynos_drm_g2d_private *g2d_priv;
222};
223
208/* 224/*
209 * Exynos drm private structure. 225 * Exynos drm private structure.
210 */ 226 */
@@ -287,4 +303,5 @@ extern struct platform_driver hdmi_driver;
287extern struct platform_driver mixer_driver; 303extern struct platform_driver mixer_driver;
288extern struct platform_driver exynos_drm_common_hdmi_driver; 304extern struct platform_driver exynos_drm_common_hdmi_driver;
289extern struct platform_driver vidi_driver; 305extern struct platform_driver vidi_driver;
306extern struct platform_driver g2d_driver;
290#endif 307#endif