]> git.proxmox.com Git - mirror_qemu.git/blame - include/hw/virtio/virtio-gpu-pci.h
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / include / hw / virtio / virtio-gpu-pci.h
CommitLineData
267f6646
MAL
1/*
2 * Virtio GPU PCI Device
3 *
4 * Copyright Red Hat, Inc. 2013-2014
5 *
6 * Authors:
7 * Dave Airlie <airlied@redhat.com>
8 * Gerd Hoffmann <kraxel@redhat.com>
9 *
10 * This work is licensed under the terms of the GNU GPL, version 2.
11 * See the COPYING file in the top-level directory.
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"
db1015e9 19#include "qom/object.h"
267f6646
MAL
20
21typedef struct VirtIOGPUPCIBase VirtIOGPUPCIBase;
22
23/*
24 * virtio-gpu-pci-base: This extends VirtioPCIProxy.
25 */
26#define TYPE_VIRTIO_GPU_PCI_BASE "virtio-gpu-pci-base"
8110fa1d
EH
27DECLARE_INSTANCE_CHECKER(VirtIOGPUPCIBase, VIRTIO_GPU_PCI_BASE,
28 TYPE_VIRTIO_GPU_PCI_BASE)
267f6646
MAL
29
30struct VirtIOGPUPCIBase {
31 VirtIOPCIProxy parent_obj;
32 VirtIOGPUBase *vgpu;
33};
34
35/* to share between PCI and VGA */
36#define DEFINE_VIRTIO_GPU_PCI_PROPERTIES(_state) \
37 DEFINE_PROP_BIT("ioeventfd", _state, flags, \
38 VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, false), \
39 DEFINE_PROP_UINT32("vectors", _state, nvectors, 3)
40
41#endif /* HW_VIRTIO_GPU_PCI_H */