diff options
Diffstat (limited to 'include/drm/drm_modes.h')
| -rw-r--r-- | include/drm/drm_modes.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h index 91d0582f924e..d92f6dd1fb11 100644 --- a/include/drm/drm_modes.h +++ b/include/drm/drm_modes.h | |||
| @@ -90,6 +90,9 @@ enum drm_mode_status { | |||
| 90 | 90 | ||
| 91 | #define CRTC_INTERLACE_HALVE_V (1 << 0) /* halve V values for interlacing */ | 91 | #define CRTC_INTERLACE_HALVE_V (1 << 0) /* halve V values for interlacing */ |
| 92 | #define CRTC_STEREO_DOUBLE (1 << 1) /* adjust timings for stereo modes */ | 92 | #define CRTC_STEREO_DOUBLE (1 << 1) /* adjust timings for stereo modes */ |
| 93 | #define CRTC_NO_DBLSCAN (1 << 2) /* don't adjust doublescan */ | ||
| 94 | #define CRTC_NO_VSCAN (1 << 3) /* don't adjust doublescan */ | ||
| 95 | #define CRTC_STEREO_DOUBLE_ONLY (CRTC_NO_DBLSCAN | CRTC_NO_VSCAN) | ||
| 93 | 96 | ||
| 94 | #define DRM_MODE_FLAG_3D_MAX DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF | 97 | #define DRM_MODE_FLAG_3D_MAX DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF |
| 95 | 98 | ||
| @@ -197,6 +200,8 @@ struct drm_display_mode *drm_gtf_mode_complex(struct drm_device *dev, | |||
| 197 | int GTF_K, int GTF_2J); | 200 | int GTF_K, int GTF_2J); |
| 198 | void drm_display_mode_from_videomode(const struct videomode *vm, | 201 | void drm_display_mode_from_videomode(const struct videomode *vm, |
| 199 | struct drm_display_mode *dmode); | 202 | struct drm_display_mode *dmode); |
| 203 | void drm_display_mode_to_videomode(const struct drm_display_mode *dmode, | ||
| 204 | struct videomode *vm); | ||
| 200 | int of_get_drm_display_mode(struct device_node *np, | 205 | int of_get_drm_display_mode(struct device_node *np, |
| 201 | struct drm_display_mode *dmode, | 206 | struct drm_display_mode *dmode, |
| 202 | int index); | 207 | int index); |
| @@ -217,9 +222,9 @@ bool drm_mode_equal_no_clocks_no_stereo(const struct drm_display_mode *mode1, | |||
| 217 | const struct drm_display_mode *mode2); | 222 | const struct drm_display_mode *mode2); |
| 218 | 223 | ||
| 219 | /* for use by the crtc helper probe functions */ | 224 | /* for use by the crtc helper probe functions */ |
| 220 | void drm_mode_validate_size(struct drm_device *dev, | 225 | enum drm_mode_status drm_mode_validate_basic(const struct drm_display_mode *mode); |
| 221 | struct list_head *mode_list, | 226 | enum drm_mode_status drm_mode_validate_size(const struct drm_display_mode *mode, |
| 222 | int maxX, int maxY); | 227 | int maxX, int maxY); |
| 223 | void drm_mode_prune_invalid(struct drm_device *dev, | 228 | void drm_mode_prune_invalid(struct drm_device *dev, |
| 224 | struct list_head *mode_list, bool verbose); | 229 | struct list_head *mode_list, bool verbose); |
| 225 | void drm_mode_sort(struct list_head *mode_list); | 230 | void drm_mode_sort(struct list_head *mode_list); |
