drm_modes: add videomode helpers

Add conversion from videomode to drm_display_mode

Signed-off-by: Steffen Trumtrar <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Tested-by: Thierry Reding <[email protected]>
Tested-by: Philipp Zabel <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
Tested-by: Afzal Mohammed <[email protected]>
Tested-by: Rob Clark <[email protected]>
Tested-by: Leela Krishna Amudala <[email protected]>
This commit is contained in:
Steffen Trumtrar 2012-11-14 11:22:52 +01:00
commit ebc64e4538
2 changed files with 42 additions and 0 deletions

View file

@ -85,6 +85,8 @@ struct module;
struct drm_file;
struct drm_device;
struct videomode;
#include <drm/drm_os_linux.h>
#include <drm/drm_hashtab.h>
#include <drm/drm_mm.h>
@ -1456,6 +1458,9 @@ extern struct drm_display_mode *
drm_mode_create_from_cmdline_mode(struct drm_device *dev,
struct drm_cmdline_mode *cmd);
extern int drm_display_mode_from_videomode(const struct videomode *vm,
struct drm_display_mode *dmode);
/* Modesetting support */
extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc);
extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc);