diff options
author | Adam Jackson <ajax@redhat.com> | 2009-12-03 17:44:37 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-03 17:53:22 -0500 |
commit | 7ac96a9cb4982140e206bf3b58236efb2498ab3f (patch) | |
tree | 63d6a6387f18ed022f4f6bf4dd6b918312bbf977 /include/drm/drm_crtc.h | |
parent | 9cf00977da092096c7a983276dad8b3002d23a99 (diff) |
drm/modes: Add drm_mode_hsync()
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index d84fba15c9d8..938f327a2a3b 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -123,7 +123,7 @@ struct drm_display_mode { | |||
123 | int type; | 123 | int type; |
124 | 124 | ||
125 | /* Proposed mode values */ | 125 | /* Proposed mode values */ |
126 | int clock; | 126 | int clock; /* in kHz */ |
127 | int hdisplay; | 127 | int hdisplay; |
128 | int hsync_start; | 128 | int hsync_start; |
129 | int hsync_end; | 129 | int hsync_end; |
@@ -164,8 +164,8 @@ struct drm_display_mode { | |||
164 | int *private; | 164 | int *private; |
165 | int private_flags; | 165 | int private_flags; |
166 | 166 | ||
167 | int vrefresh; | 167 | int vrefresh; /* in Hz */ |
168 | float hsync; | 168 | int hsync; /* in kHz */ |
169 | }; | 169 | }; |
170 | 170 | ||
171 | enum drm_connector_status { | 171 | enum drm_connector_status { |
@@ -681,6 +681,7 @@ extern void drm_mode_validate_size(struct drm_device *dev, | |||
681 | extern void drm_mode_prune_invalid(struct drm_device *dev, | 681 | extern void drm_mode_prune_invalid(struct drm_device *dev, |
682 | struct list_head *mode_list, bool verbose); | 682 | struct list_head *mode_list, bool verbose); |
683 | extern void drm_mode_sort(struct list_head *mode_list); | 683 | extern void drm_mode_sort(struct list_head *mode_list); |
684 | extern int drm_mode_hsync(struct drm_display_mode *mode); | ||
684 | extern int drm_mode_vrefresh(struct drm_display_mode *mode); | 685 | extern int drm_mode_vrefresh(struct drm_display_mode *mode); |
685 | extern void drm_mode_set_crtcinfo(struct drm_display_mode *p, | 686 | extern void drm_mode_set_crtcinfo(struct drm_display_mode *p, |
686 | int adjust_flags); | 687 | int adjust_flags); |