diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-23 09:52:20 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-13 07:48:41 -0400 |
commit | 55310008684309985110fdb99fa7b61c649778b2 (patch) | |
tree | dcffa70036a49228aede596ac0da5c7162f3830b /include/drm/drmP.h | |
parent | 8bd441b27e85834533df26a7f1c2c9289303c5ef (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.h | 29 |
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 */ | ||
1058 | struct 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 | ||
1073 | struct drm_pending_vblank_event { | 1058 | struct 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, | |||
1411 | extern void drm_calc_timestamping_constants(struct drm_crtc *crtc, | 1396 | extern 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 | ||
1414 | extern bool | ||
1415 | drm_mode_parse_command_line_for_connector(const char *mode_option, | ||
1416 | struct drm_connector *connector, | ||
1417 | struct drm_cmdline_mode *mode); | ||
1418 | |||
1419 | extern struct drm_display_mode * | ||
1420 | drm_mode_create_from_cmdline_mode(struct drm_device *dev, | ||
1421 | struct drm_cmdline_mode *cmd); | ||
1422 | |||
1423 | extern int drm_display_mode_from_videomode(const struct videomode *vm, | ||
1424 | struct drm_display_mode *dmode); | ||
1425 | extern 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 */ |
1430 | extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc); | 1401 | extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc); |