diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-06-22 01:17:08 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-07-15 02:29:33 -0400 |
commit | d782c3f95c9263dc0b98e7115f75f1e18b9600b3 (patch) | |
tree | e58d950cfa9b9a3a0c52e0f91a08b00cb2be8421 /include/drm/drm_crtc.h | |
parent | e9e961c9a818a2f24711af493b907a8e40a69efc (diff) |
drm/mode: add the CVT algorithm in kernel space
Add the CVT algorithm in kernel space. And this function can be called to
generate the required modeline.
I copied it from the file of xserver/hw/xfree86/modes/xf86cvt.c. What I have
done is to translate it by using integer calculation. This is to avoid
the float-point calculation in kernel space.
[airlied:- cleaned up some bits]
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 7300fb866767..820bc0977e5e 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -736,4 +736,7 @@ extern int drm_mode_gamma_get_ioctl(struct drm_device *dev, | |||
736 | extern int drm_mode_gamma_set_ioctl(struct drm_device *dev, | 736 | extern int drm_mode_gamma_set_ioctl(struct drm_device *dev, |
737 | void *data, struct drm_file *file_priv); | 737 | void *data, struct drm_file *file_priv); |
738 | extern bool drm_detect_hdmi_monitor(struct edid *edid); | 738 | extern bool drm_detect_hdmi_monitor(struct edid *edid); |
739 | extern struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, | ||
740 | int hdisplay, int vdisplay, int vrefresh, | ||
741 | bool reduced, bool interlaced); | ||
739 | #endif /* __DRM_CRTC_H__ */ | 742 | #endif /* __DRM_CRTC_H__ */ |