diff options
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index e3e0d651c6ca..adb3f9b625f6 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -120,7 +120,7 @@ enum drm_mode_status { | |||
120 | .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ | 120 | .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ |
121 | .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \ | 121 | .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \ |
122 | .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \ | 122 | .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \ |
123 | .vscan = (vs), .flags = (f), .vrefresh = 0, \ | 123 | .vscan = (vs), .flags = (f), \ |
124 | .base.type = DRM_MODE_OBJECT_MODE | 124 | .base.type = DRM_MODE_OBJECT_MODE |
125 | 125 | ||
126 | #define CRTC_INTERLACE_HALVE_V 0x1 /* halve V values for interlacing */ | 126 | #define CRTC_INTERLACE_HALVE_V 0x1 /* halve V values for interlacing */ |
@@ -310,7 +310,7 @@ struct drm_plane; | |||
310 | * drm_crtc_funcs - control CRTCs for a given device | 310 | * drm_crtc_funcs - control CRTCs for a given device |
311 | * @save: save CRTC state | 311 | * @save: save CRTC state |
312 | * @restore: restore CRTC state | 312 | * @restore: restore CRTC state |
313 | * @reset: reset CRTC after state has been invalidate (e.g. resume) | 313 | * @reset: reset CRTC after state has been invalidated (e.g. resume) |
314 | * @cursor_set: setup the cursor | 314 | * @cursor_set: setup the cursor |
315 | * @cursor_move: move the cursor | 315 | * @cursor_move: move the cursor |
316 | * @gamma_set: specify color ramp for CRTC | 316 | * @gamma_set: specify color ramp for CRTC |
@@ -554,7 +554,6 @@ enum drm_connector_force { | |||
554 | * @probed_modes: list of modes derived directly from the display | 554 | * @probed_modes: list of modes derived directly from the display |
555 | * @display_info: information about attached display (e.g. from EDID) | 555 | * @display_info: information about attached display (e.g. from EDID) |
556 | * @funcs: connector control functions | 556 | * @funcs: connector control functions |
557 | * @user_modes: user added mode list | ||
558 | * @edid_blob_ptr: DRM property containing EDID if present | 557 | * @edid_blob_ptr: DRM property containing EDID if present |
559 | * @properties: property tracking for this connector | 558 | * @properties: property tracking for this connector |
560 | * @polled: a %DRM_CONNECTOR_POLL_<foo> value for core driven polling | 559 | * @polled: a %DRM_CONNECTOR_POLL_<foo> value for core driven polling |
@@ -598,7 +597,6 @@ struct drm_connector { | |||
598 | struct drm_display_info display_info; | 597 | struct drm_display_info display_info; |
599 | const struct drm_connector_funcs *funcs; | 598 | const struct drm_connector_funcs *funcs; |
600 | 599 | ||
601 | struct list_head user_modes; | ||
602 | struct drm_property_blob *edid_blob_ptr; | 600 | struct drm_property_blob *edid_blob_ptr; |
603 | struct drm_object_properties properties; | 601 | struct drm_object_properties properties; |
604 | 602 | ||
@@ -922,15 +920,11 @@ extern void drm_mode_config_reset(struct drm_device *dev); | |||
922 | extern void drm_mode_config_cleanup(struct drm_device *dev); | 920 | extern void drm_mode_config_cleanup(struct drm_device *dev); |
923 | extern void drm_mode_set_name(struct drm_display_mode *mode); | 921 | extern void drm_mode_set_name(struct drm_display_mode *mode); |
924 | extern bool drm_mode_equal(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2); | 922 | extern bool drm_mode_equal(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2); |
923 | extern bool drm_mode_equal_no_clocks(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2); | ||
925 | extern int drm_mode_width(const struct drm_display_mode *mode); | 924 | extern int drm_mode_width(const struct drm_display_mode *mode); |
926 | extern int drm_mode_height(const struct drm_display_mode *mode); | 925 | extern int drm_mode_height(const struct drm_display_mode *mode); |
927 | 926 | ||
928 | /* for us by fb module */ | 927 | /* for us by fb module */ |
929 | extern int drm_mode_attachmode_crtc(struct drm_device *dev, | ||
930 | struct drm_crtc *crtc, | ||
931 | const struct drm_display_mode *mode); | ||
932 | extern int drm_mode_detachmode_crtc(struct drm_device *dev, struct drm_display_mode *mode); | ||
933 | |||
934 | extern struct drm_display_mode *drm_mode_create(struct drm_device *dev); | 928 | extern struct drm_display_mode *drm_mode_create(struct drm_device *dev); |
935 | extern void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode); | 929 | extern void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode); |
936 | extern void drm_mode_list_concat(struct list_head *head, | 930 | extern void drm_mode_list_concat(struct list_head *head, |
@@ -938,6 +932,9 @@ extern void drm_mode_list_concat(struct list_head *head, | |||
938 | extern void drm_mode_validate_size(struct drm_device *dev, | 932 | extern void drm_mode_validate_size(struct drm_device *dev, |
939 | struct list_head *mode_list, | 933 | struct list_head *mode_list, |
940 | int maxX, int maxY, int maxPitch); | 934 | int maxX, int maxY, int maxPitch); |
935 | extern void drm_mode_validate_clocks(struct drm_device *dev, | ||
936 | struct list_head *mode_list, | ||
937 | int *min, int *max, int n_ranges); | ||
941 | extern void drm_mode_prune_invalid(struct drm_device *dev, | 938 | extern void drm_mode_prune_invalid(struct drm_device *dev, |
942 | struct list_head *mode_list, bool verbose); | 939 | struct list_head *mode_list, bool verbose); |
943 | extern void drm_mode_sort(struct list_head *mode_list); | 940 | extern void drm_mode_sort(struct list_head *mode_list); |
@@ -1036,14 +1033,6 @@ extern int drm_mode_getfb(struct drm_device *dev, | |||
1036 | void *data, struct drm_file *file_priv); | 1033 | void *data, struct drm_file *file_priv); |
1037 | extern int drm_mode_dirtyfb_ioctl(struct drm_device *dev, | 1034 | extern int drm_mode_dirtyfb_ioctl(struct drm_device *dev, |
1038 | void *data, struct drm_file *file_priv); | 1035 | void *data, struct drm_file *file_priv); |
1039 | extern int drm_mode_addmode_ioctl(struct drm_device *dev, | ||
1040 | void *data, struct drm_file *file_priv); | ||
1041 | extern int drm_mode_rmmode_ioctl(struct drm_device *dev, | ||
1042 | void *data, struct drm_file *file_priv); | ||
1043 | extern int drm_mode_attachmode_ioctl(struct drm_device *dev, | ||
1044 | void *data, struct drm_file *file_priv); | ||
1045 | extern int drm_mode_detachmode_ioctl(struct drm_device *dev, | ||
1046 | void *data, struct drm_file *file_priv); | ||
1047 | 1036 | ||
1048 | extern int drm_mode_getproperty_ioctl(struct drm_device *dev, | 1037 | extern int drm_mode_getproperty_ioctl(struct drm_device *dev, |
1049 | void *data, struct drm_file *file_priv); | 1038 | void *data, struct drm_file *file_priv); |