1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef HW_VIRTIO_GPU_PCI_H
15#define HW_VIRTIO_GPU_PCI_H
16
17#include "hw/virtio/virtio-pci.h"
18#include "hw/virtio/virtio-gpu.h"
19
20typedef struct VirtIOGPUPCIBase VirtIOGPUPCIBase;
21
22
23
24
25#define TYPE_VIRTIO_GPU_PCI_BASE "virtio-gpu-pci-base"
26#define VIRTIO_GPU_PCI_BASE(obj) \
27 OBJECT_CHECK(VirtIOGPUPCIBase, (obj), TYPE_VIRTIO_GPU_PCI_BASE)
28
29struct VirtIOGPUPCIBase {
30 VirtIOPCIProxy parent_obj;
31 VirtIOGPUBase *vgpu;
32};
33
34
35#define DEFINE_VIRTIO_GPU_PCI_PROPERTIES(_state) \
36 DEFINE_PROP_BIT("ioeventfd", _state, flags, \
37 VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, false), \
38 DEFINE_PROP_UINT32("vectors", _state, nvectors, 3)
39
40#endif
41