MAINTAINERS: Make section QOM cover hw/core/*bus.c as well
[qemu/armbru.git] / include / hw / virtio / virtio-gpu-pci.h
blob2f69b5a9ccec995932d15fd80da087bd1a03bf67
1 /*
2 * Virtio GPU PCI Device
4 * Copyright Red Hat, Inc. 2013-2014
6 * Authors:
7 * Dave Airlie <airlied@redhat.com>
8 * Gerd Hoffmann <kraxel@redhat.com>
10 * This work is licensed under the terms of the GNU GPL, version 2.
11 * See the COPYING file in the top-level directory.
14 #ifndef HW_VIRTIO_GPU_PCI_H
15 #define HW_VIRTIO_GPU_PCI_H
17 #include "hw/virtio/virtio-pci.h"
18 #include "hw/virtio/virtio-gpu.h"
20 typedef struct VirtIOGPUPCIBase VirtIOGPUPCIBase;
23 * virtio-gpu-pci-base: This extends VirtioPCIProxy.
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)
29 struct VirtIOGPUPCIBase {
30 VirtIOPCIProxy parent_obj;
31 VirtIOGPUBase *vgpu;
34 /* to share between PCI and VGA */
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)
40 #endif /* HW_VIRTIO_GPU_PCI_H */