diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2012-11-14 05:22:52 -0500 |
---|---|---|
committer | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2013-01-24 03:04:09 -0500 |
commit | ebc64e453857e93b230881f48126257be9aa8830 (patch) | |
tree | 8ccb80725d3c273f5579bc1539ca841acd35381f /include/drm/drmP.h | |
parent | 790890444f591145d3a00623af461c9006e17d51 (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.h | 5 |
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; | |||
85 | struct drm_file; | 85 | struct drm_file; |
86 | struct drm_device; | 86 | struct drm_device; |
87 | 87 | ||
88 | struct 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 * | |||
1456 | drm_mode_create_from_cmdline_mode(struct drm_device *dev, | 1458 | drm_mode_create_from_cmdline_mode(struct drm_device *dev, |
1457 | struct drm_cmdline_mode *cmd); | 1459 | struct drm_cmdline_mode *cmd); |
1458 | 1460 | ||
1461 | extern int drm_display_mode_from_videomode(const struct videomode *vm, | ||
1462 | struct drm_display_mode *dmode); | ||
1463 | |||
1459 | /* Modesetting support */ | 1464 | /* Modesetting support */ |
1460 | extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc); | 1465 | extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc); |
1461 | extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc); | 1466 | extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc); |