diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-06-22 01:17:09 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-07-15 02:31:43 -0400 |
commit | 26bbdadad356ec02d33657858d91675f3e9aca94 (patch) | |
tree | 12fe6960ac50e03d1b1cd7f352ec5e86abbe11ec /include/drm | |
parent | d782c3f95c9263dc0b98e7115f75f1e18b9600b3 (diff) |
drm/mode: add the GTF algorithm in kernel space
Add the GTF 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/xf86gtf.c. What I have
done is to translate it by using integer calculation. This is to avoid
the float-point calculation in kernel space.
At the same tie I also refer to the function of fb_get_mode in
drivers/video/fbmon.c
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'include/drm')
-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 820bc0977e5e..125994d8ac0b 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -739,4 +739,7 @@ extern bool drm_detect_hdmi_monitor(struct edid *edid); | |||
739 | extern struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, | 739 | extern struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, |
740 | int hdisplay, int vdisplay, int vrefresh, | 740 | int hdisplay, int vdisplay, int vrefresh, |
741 | bool reduced, bool interlaced); | 741 | bool reduced, bool interlaced); |
742 | extern struct drm_display_mode *drm_gtf_mode(struct drm_device *dev, | ||
743 | int hdisplay, int vdisplay, int vrefresh, | ||
744 | bool interlaced, int margins); | ||
742 | #endif /* __DRM_CRTC_H__ */ | 745 | #endif /* __DRM_CRTC_H__ */ |