aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2012-11-14 05:22:52 -0500
committerSteffen Trumtrar <s.trumtrar@pengutronix.de>2013-01-24 03:04:09 -0500
commitebc64e453857e93b230881f48126257be9aa8830 (patch)
tree8ccb80725d3c273f5579bc1539ca841acd35381f /include/drm/drmP.h
parent790890444f591145d3a00623af461c9006e17d51 (diff)
drm_modes: add videomode helpers
Add conversion from videomode to drm_display_mode Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de> Acked-by: Thierry Reding <thierry.reding@avionic-design.de> Tested-by: Thierry Reding <thierry.reding@avionic-design.de> Tested-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Afzal Mohammed <Afzal@ti.com> Tested-by: Rob Clark <robclark@gmail.com> Tested-by: Leela Krishna Amudala <leelakrishna.a@gmail.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index fad21c927a38..d5c06ffb7a31 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -85,6 +85,8 @@ struct module;
85struct drm_file; 85struct drm_file;
86struct drm_device; 86struct drm_device;
87 87
88struct videomode;
89
88#include <drm/drm_os_linux.h> 90#include <drm/drm_os_linux.h>
89#include <drm/drm_hashtab.h> 91#include <drm/drm_hashtab.h>
90#include <drm/drm_mm.h> 92#include <drm/drm_mm.h>
@@ -1456,6 +1458,9 @@ extern struct drm_display_mode *
1456drm_mode_create_from_cmdline_mode(struct drm_device *dev, 1458drm_mode_create_from_cmdline_mode(struct drm_device *dev,
1457 struct drm_cmdline_mode *cmd); 1459 struct drm_cmdline_mode *cmd);
1458 1460
1461extern int drm_display_mode_from_videomode(const struct videomode *vm,
1462 struct drm_display_mode *dmode);
1463
1459/* Modesetting support */ 1464/* Modesetting support */
1460extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc); 1465extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc);
1461extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc); 1466extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc);