aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2013-09-08 20:02:56 -0400
committerGerd Hoffmann <kraxel@redhat.com>2015-06-03 08:17:38 -0400
commitdc5698e80cf724770283e10414054662bdf6ccfa (patch)
tree9c70288526995f4bb2aa3109e9b49058a2cbdef4 /include/drm
parent16e3247da7f71f8c31f4330f739f6192a00c8b51 (diff)
Add virtio gpu driver.
This patch adds a kms driver for the virtio gpu. The xorg modesetting driver can handle the device just fine, the framebuffer for fbcon is there too. Qemu patches for the host side are under review currently. The pci version of the device comes in two variants: with and without vga compatibility. The former has a extra memory bar for the vga framebuffer, the later is a pure virtio device. The only concern for this driver is that in the virtio-vga case we have to kick out the firmware framebuffer. Initial revision has only 2d support, 3d (virgl) support requires some more work on the qemu side and will be added later. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index df6d9970d9a4..59ce5587ed90 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -814,6 +814,7 @@ struct drm_device {
814#endif 814#endif
815 815
816 struct platform_device *platformdev; /**< Platform device struture */ 816 struct platform_device *platformdev; /**< Platform device struture */
817 struct virtio_device *virtdev;
817 818
818 struct drm_sg_mem *sg; /**< Scatter gather memory */ 819 struct drm_sg_mem *sg; /**< Scatter gather memory */
819 unsigned int num_crtcs; /**< Number of CRTCs on this device */ 820 unsigned int num_crtcs; /**< Number of CRTCs on this device */