xref: /openbmc/qemu/hw/virtio/virtio-mem-pci.h (revision 6f05a92ddc73ac8aa16cfd6188f907b30b0501e3)
10b9a2443SDavid Hildenbrand /*
20b9a2443SDavid Hildenbrand  * Virtio MEM PCI device
30b9a2443SDavid Hildenbrand  *
40b9a2443SDavid Hildenbrand  * Copyright (C) 2020 Red Hat, Inc.
50b9a2443SDavid Hildenbrand  *
60b9a2443SDavid Hildenbrand  * Authors:
70b9a2443SDavid Hildenbrand  *  David Hildenbrand <david@redhat.com>
80b9a2443SDavid Hildenbrand  *
90b9a2443SDavid Hildenbrand  * This work is licensed under the terms of the GNU GPL, version 2.
100b9a2443SDavid Hildenbrand  * See the COPYING file in the top-level directory.
110b9a2443SDavid Hildenbrand  */
120b9a2443SDavid Hildenbrand 
130b9a2443SDavid Hildenbrand #ifndef QEMU_VIRTIO_MEM_PCI_H
140b9a2443SDavid Hildenbrand #define QEMU_VIRTIO_MEM_PCI_H
150b9a2443SDavid Hildenbrand 
16*18129c15SDavid Hildenbrand #include "hw/virtio/virtio-md-pci.h"
170b9a2443SDavid Hildenbrand #include "hw/virtio/virtio-mem.h"
18db1015e9SEduardo Habkost #include "qom/object.h"
190b9a2443SDavid Hildenbrand 
200b9a2443SDavid Hildenbrand typedef struct VirtIOMEMPCI VirtIOMEMPCI;
210b9a2443SDavid Hildenbrand 
220b9a2443SDavid Hildenbrand /*
23*18129c15SDavid Hildenbrand  * virtio-mem-pci: This extends VirtIOMDPCI.
240b9a2443SDavid Hildenbrand  */
250b9a2443SDavid Hildenbrand #define TYPE_VIRTIO_MEM_PCI "virtio-mem-pci-base"
268110fa1dSEduardo Habkost DECLARE_INSTANCE_CHECKER(VirtIOMEMPCI, VIRTIO_MEM_PCI,
278110fa1dSEduardo Habkost                          TYPE_VIRTIO_MEM_PCI)
280b9a2443SDavid Hildenbrand 
290b9a2443SDavid Hildenbrand struct VirtIOMEMPCI {
30*18129c15SDavid Hildenbrand     VirtIOMDPCI parent_obj;
310b9a2443SDavid Hildenbrand     VirtIOMEM vdev;
32722a3c78SDavid Hildenbrand     Notifier size_change_notifier;
330b9a2443SDavid Hildenbrand };
340b9a2443SDavid Hildenbrand 
350b9a2443SDavid Hildenbrand #endif /* QEMU_VIRTIO_MEM_PCI_H */
36