1fe2611b0SMarkus Armbruster #ifndef VIRTIO_VGA_H 2fe2611b0SMarkus Armbruster #define VIRTIO_VGA_H 3c68082c4SMarc-André Lureau 4267f6646SMarc-André Lureau #include "hw/virtio/virtio-gpu-pci.h" 5c68082c4SMarc-André Lureau #include "vga_int.h" 6db1015e9SEduardo Habkost #include "qom/object.h" 7c68082c4SMarc-André Lureau 8c68082c4SMarc-André Lureau /* 9c68082c4SMarc-André Lureau * virtio-vga-base: This extends VirtioPCIProxy. 10c68082c4SMarc-André Lureau */ 11c68082c4SMarc-André Lureau #define TYPE_VIRTIO_VGA_BASE "virtio-vga-base" 12c821774aSEduardo Habkost OBJECT_DECLARE_TYPE(VirtIOVGABase, VirtIOVGABaseClass, 1330b5707cSEduardo Habkost VIRTIO_VGA_BASE) 14c68082c4SMarc-André Lureau 15db1015e9SEduardo Habkost struct VirtIOVGABase { 16c68082c4SMarc-André Lureau VirtIOPCIProxy parent_obj; 17c68082c4SMarc-André Lureau 18c68082c4SMarc-André Lureau VirtIOGPUBase *vgpu; 19c68082c4SMarc-André Lureau VGACommonState vga; 20c68082c4SMarc-André Lureau MemoryRegion vga_mrs[3]; 21db1015e9SEduardo Habkost }; 22c68082c4SMarc-André Lureau 23db1015e9SEduardo Habkost struct VirtIOVGABaseClass { 24c68082c4SMarc-André Lureau VirtioPCIClass parent_class; 25c68082c4SMarc-André Lureau 26*0d898904SPeter Maydell ResettablePhases parent_phases; 27db1015e9SEduardo Habkost }; 28c68082c4SMarc-André Lureau 29fe2611b0SMarkus Armbruster #endif /* VIRTIO_VGA_H */ 30