diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-09-21 16:47:02 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-09-25 15:49:49 +0300 |
commit | 86351de023dd3607b1b519f58c11154b217ec031 (patch) | |
tree | df5497c3c4f787e29a62bd0b1df7c1812311374c /drivers/gpu/drm/bochs/bochs.h | |
parent | 48b442238250bd27edfef13ab314b295b2734cc4 (diff) | |
download | linux-86351de023dd3607b1b519f58c11154b217ec031.tar.xz |
drm/bochs: support changing byteorder at mode set time
Add bochs_hw_set_*_endian() helper functions, to set the framebuffer
byteorder at mode set time. Support both DRM_FORMAT_XRGB8888 and
DRM_FORMAT_BGRX8888 framebuffer formats, no matter what the native
machine byte order is.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20180921134704.12826-5-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/bochs/bochs.h')
-rw-r--r-- | drivers/gpu/drm/bochs/bochs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bochs/bochs.h b/drivers/gpu/drm/bochs/bochs.h index b4f6bb521900..e7a69077e45a 100644 --- a/drivers/gpu/drm/bochs/bochs.h +++ b/drivers/gpu/drm/bochs/bochs.h @@ -58,6 +58,7 @@ struct bochs_device { void __iomem *fb_map; unsigned long fb_base; unsigned long fb_size; + unsigned long qext_size; /* mode */ u16 xres; @@ -121,7 +122,8 @@ int bochs_hw_init(struct drm_device *dev); void bochs_hw_fini(struct drm_device *dev); void bochs_hw_setmode(struct bochs_device *bochs, - struct drm_display_mode *mode); + struct drm_display_mode *mode, + const struct drm_format_info *format); void bochs_hw_setbase(struct bochs_device *bochs, int x, int y, u64 addr); |