summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-10-20 16:31:53 +1000
committerDave Airlie <airlied@redhat.com>2014-12-09 09:56:49 +1000
commitb0ee9e7fa5b461a91f24d1d03b10c6bf162c86f9 (patch)
treedd12f04f8e18574f134a66bd8ceb93fbf5109606 /include/drm
parent6f134d7bb4347ab4c66ef123efb838fedb54186f (diff)
downloadop-kernel-dev-b0ee9e7fa5b461a91f24d1d03b10c6bf162c86f9.zip
op-kernel-dev-b0ee9e7fa5b461a91f24d1d03b10c6bf162c86f9.tar.gz
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h
index f4ad254..b597068 100644
--- a/include/drm/drm_fb_helper.h
+++ b/include/drm/drm_fb_helper.h
@@ -34,9 +34,14 @@ struct drm_fb_helper;
#include <linux/kgdb.h>
+struct drm_fb_offset {
+ int x, y;
+};
+
struct drm_fb_helper_crtc {
struct drm_mode_set mode_set;
struct drm_display_mode *desired_mode;
+ int x, y;
};
struct drm_fb_helper_surface_size {
@@ -72,6 +77,7 @@ struct drm_fb_helper_funcs {
bool (*initial_config)(struct drm_fb_helper *fb_helper,
struct drm_fb_helper_crtc **crtcs,
struct drm_display_mode **modes,
+ struct drm_fb_offset *offsets,
bool *enabled, int width, int height);
};
OpenPOWER on IntegriCloud