aboutsummaryrefslogtreecommitdiffstats
path: root/hw/display/virtio-vga.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/display/virtio-vga.h')
-rw-r--r--hw/display/virtio-vga.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/hw/display/virtio-vga.h b/hw/display/virtio-vga.h
new file mode 100644
index 000000000..977ad5edc
--- /dev/null
+++ b/hw/display/virtio-vga.h
@@ -0,0 +1,29 @@
+#ifndef VIRTIO_VGA_H
+#define VIRTIO_VGA_H
+
+#include "hw/virtio/virtio-gpu-pci.h"
+#include "vga_int.h"
+#include "qom/object.h"
+
+/*
+ * virtio-vga-base: This extends VirtioPCIProxy.
+ */
+#define TYPE_VIRTIO_VGA_BASE "virtio-vga-base"
+OBJECT_DECLARE_TYPE(VirtIOVGABase, VirtIOVGABaseClass,
+ VIRTIO_VGA_BASE)
+
+struct VirtIOVGABase {
+ VirtIOPCIProxy parent_obj;
+
+ VirtIOGPUBase *vgpu;
+ VGACommonState vga;
+ MemoryRegion vga_mrs[3];
+};
+
+struct VirtIOVGABaseClass {
+ VirtioPCIClass parent_class;
+
+ DeviceReset parent_reset;
+};
+
+#endif /* VIRTIO_VGA_H */