]> git.ipfire.org Git - thirdparty/qemu.git/blame - hw/virtio/virtio-mem-pci.h
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / hw / virtio / virtio-mem-pci.h
CommitLineData
0b9a2443
DH
1/*
2 * Virtio MEM PCI device
3 *
4 * Copyright (C) 2020 Red Hat, Inc.
5 *
6 * Authors:
7 * David Hildenbrand <david@redhat.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2.
10 * See the COPYING file in the top-level directory.
11 */
12
13#ifndef QEMU_VIRTIO_MEM_PCI_H
14#define QEMU_VIRTIO_MEM_PCI_H
15
16#include "hw/virtio/virtio-pci.h"
17#include "hw/virtio/virtio-mem.h"
db1015e9 18#include "qom/object.h"
0b9a2443
DH
19
20typedef struct VirtIOMEMPCI VirtIOMEMPCI;
21
22/*
23 * virtio-mem-pci: This extends VirtioPCIProxy.
24 */
25#define TYPE_VIRTIO_MEM_PCI "virtio-mem-pci-base"
26#define VIRTIO_MEM_PCI(obj) \
27 OBJECT_CHECK(VirtIOMEMPCI, (obj), TYPE_VIRTIO_MEM_PCI)
28
29struct VirtIOMEMPCI {
30 VirtIOPCIProxy parent_obj;
31 VirtIOMEM vdev;
722a3c78 32 Notifier size_change_notifier;
0b9a2443
DH
33};
34
35#endif /* QEMU_VIRTIO_MEM_PCI_H */