summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/bochs/bochs.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-10-29 23:50:48 +0300
committerGerd Hoffmann <kraxel@redhat.com>2018-10-30 16:42:28 +0300
commit01f23459cf93a57d11bd93e660460f135b237af5 (patch)
tree0f3363e3d50b27e06940ea134e88515351defaa1 /drivers/gpu/drm/bochs/bochs.h
parentcf6d100dd238d4be92f38fbba246a2d85427b9a0 (diff)
downloadlinux-01f23459cf93a57d11bd93e660460f135b237af5.tar.xz
drm/bochs: add edid support.
Recent qemu (latest master branch, upcoming 3.1 release) got support for EDID data. This patch adds guest driver support. EDID support in qemu is not (yet) enabled by default, so please use 'qemu -device VGA,edid=on' for testing. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20181029205048.13200-1-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/bochs/bochs.h')
-rw-r--r--drivers/gpu/drm/bochs/bochs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bochs/bochs.h b/drivers/gpu/drm/bochs/bochs.h
index e7a69077e45a..577a8b917cb9 100644
--- a/drivers/gpu/drm/bochs/bochs.h
+++ b/drivers/gpu/drm/bochs/bochs.h
@@ -66,6 +66,7 @@ struct bochs_device {
u16 yres_virtual;
u32 stride;
u32 bpp;
+ struct edid *edid;
/* drm */
struct drm_device *dev;
@@ -126,6 +127,7 @@ void bochs_hw_setmode(struct bochs_device *bochs,
const struct drm_format_info *format);
void bochs_hw_setbase(struct bochs_device *bochs,
int x, int y, u64 addr);
+int bochs_hw_load_edid(struct bochs_device *bochs);
/* bochs_mm.c */
int bochs_mm_init(struct bochs_device *bochs);