diff options
author | Dave Airlie <airlied@redhat.com> | 2014-10-20 02:31:53 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-12-08 18:56:49 -0500 |
commit | b0ee9e7fa5b461a91f24d1d03b10c6bf162c86f9 (patch) | |
tree | dd12f04f8e18574f134a66bd8ceb93fbf5109606 /include/drm | |
parent | 6f134d7bb4347ab4c66ef123efb838fedb54186f (diff) |
drm/fb: add support for tiled monitor configurations. (v2)
This adds fbdev/con support for tiled monitors, so that we
only set a mode on the correct half of the monitor, or
span the two halves if needed.
v2: remove unneeded ERROR, fix | vs ||
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_fb_helper.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index f4ad254e3488..b597068103aa 100644 --- a/include/drm/drm_fb_helper.h +++ b/include/drm/drm_fb_helper.h | |||
@@ -34,9 +34,14 @@ struct drm_fb_helper; | |||
34 | 34 | ||
35 | #include <linux/kgdb.h> | 35 | #include <linux/kgdb.h> |
36 | 36 | ||
37 | struct drm_fb_offset { | ||
38 | int x, y; | ||
39 | }; | ||
40 | |||
37 | struct drm_fb_helper_crtc { | 41 | struct drm_fb_helper_crtc { |
38 | struct drm_mode_set mode_set; | 42 | struct drm_mode_set mode_set; |
39 | struct drm_display_mode *desired_mode; | 43 | struct drm_display_mode *desired_mode; |
44 | int x, y; | ||
40 | }; | 45 | }; |
41 | 46 | ||
42 | struct drm_fb_helper_surface_size { | 47 | struct drm_fb_helper_surface_size { |
@@ -72,6 +77,7 @@ struct drm_fb_helper_funcs { | |||
72 | bool (*initial_config)(struct drm_fb_helper *fb_helper, | 77 | bool (*initial_config)(struct drm_fb_helper *fb_helper, |
73 | struct drm_fb_helper_crtc **crtcs, | 78 | struct drm_fb_helper_crtc **crtcs, |
74 | struct drm_display_mode **modes, | 79 | struct drm_display_mode **modes, |
80 | struct drm_fb_offset *offsets, | ||
75 | bool *enabled, int width, int height); | 81 | bool *enabled, int width, int height); |
76 | }; | 82 | }; |
77 | 83 | ||