2019-06-07 17:13:21 +03:00
|
|
|
#ifndef VIRTIO_VGA_H
|
|
|
|
#define VIRTIO_VGA_H
|
2019-05-24 16:09:45 +03:00
|
|
|
|
2019-05-24 16:09:46 +03:00
|
|
|
#include "hw/virtio/virtio-gpu-pci.h"
|
2019-05-24 16:09:45 +03:00
|
|
|
#include "vga_int.h"
|
2020-09-03 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2019-05-24 16:09:45 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* virtio-vga-base: This extends VirtioPCIProxy.
|
|
|
|
*/
|
|
|
|
#define TYPE_VIRTIO_VGA_BASE "virtio-vga-base"
|
2020-09-01 00:07:37 +03:00
|
|
|
OBJECT_DECLARE_TYPE(VirtIOVGABase, VirtIOVGABaseClass,
|
|
|
|
virtio_vga_base, VIRTIO_VGA_BASE)
|
2019-05-24 16:09:45 +03:00
|
|
|
|
2020-09-03 23:43:22 +03:00
|
|
|
struct VirtIOVGABase {
|
2019-05-24 16:09:45 +03:00
|
|
|
VirtIOPCIProxy parent_obj;
|
|
|
|
|
|
|
|
VirtIOGPUBase *vgpu;
|
|
|
|
VGACommonState vga;
|
|
|
|
MemoryRegion vga_mrs[3];
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2019-05-24 16:09:45 +03:00
|
|
|
|
2020-09-03 23:43:22 +03:00
|
|
|
struct VirtIOVGABaseClass {
|
2019-05-24 16:09:45 +03:00
|
|
|
VirtioPCIClass parent_class;
|
|
|
|
|
|
|
|
DeviceReset parent_reset;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2019-05-24 16:09:45 +03:00
|
|
|
|
2019-06-07 17:13:21 +03:00
|
|
|
#endif /* VIRTIO_VGA_H */
|