aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-23 09:52:20 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-13 07:48:41 -0400
commit55310008684309985110fdb99fa7b61c649778b2 (patch)
treedcffa70036a49228aede596ac0da5c7162f3830b /include/drm/drmP.h
parent8bd441b27e85834533df26a7f1c2c9289303c5ef (diff)
drm: extract drm_modes.h for drm_crtc.h functions
I want to also include kerneldoc from the header (for static inline functions and structs), but fishing the right pieces out of a giant header is a real pain. So split things out. Note that it's not a really clean header with sane include orders, but given's drm historical knack for giant headers detangling this is a major task. v2: Also extract struct drm_cmdline_mode. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 04a7f31301f8..1910f245e2cd 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1054,21 +1054,6 @@ struct drm_minor {
1054 struct drm_mode_group mode_group; 1054 struct drm_mode_group mode_group;
1055}; 1055};
1056 1056
1057/* mode specified on the command line */
1058struct drm_cmdline_mode {
1059 bool specified;
1060 bool refresh_specified;
1061 bool bpp_specified;
1062 int xres, yres;
1063 int bpp;
1064 int refresh;
1065 bool rb;
1066 bool interlace;
1067 bool cvt;
1068 bool margins;
1069 enum drm_connector_force force;
1070};
1071
1072 1057
1073struct drm_pending_vblank_event { 1058struct drm_pending_vblank_event {
1074 struct drm_pending_event base; 1059 struct drm_pending_event base;
@@ -1411,20 +1396,6 @@ extern int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
1411extern void drm_calc_timestamping_constants(struct drm_crtc *crtc, 1396extern void drm_calc_timestamping_constants(struct drm_crtc *crtc,
1412 const struct drm_display_mode *mode); 1397 const struct drm_display_mode *mode);
1413 1398
1414extern bool
1415drm_mode_parse_command_line_for_connector(const char *mode_option,
1416 struct drm_connector *connector,
1417 struct drm_cmdline_mode *mode);
1418
1419extern struct drm_display_mode *
1420drm_mode_create_from_cmdline_mode(struct drm_device *dev,
1421 struct drm_cmdline_mode *cmd);
1422
1423extern int drm_display_mode_from_videomode(const struct videomode *vm,
1424 struct drm_display_mode *dmode);
1425extern int of_get_drm_display_mode(struct device_node *np,
1426 struct drm_display_mode *dmode,
1427 int index);
1428 1399
1429/* Modesetting support */ 1400/* Modesetting support */
1430extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc); 1401extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc);