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 160b9a2443SDavid Hildenbrand #include "hw/virtio/virtio-pci.h" 170b9a2443SDavid Hildenbrand #include "hw/virtio/virtio-mem.h" 18*db1015e9SEduardo Habkost #include "qom/object.h" 190b9a2443SDavid Hildenbrand 200b9a2443SDavid Hildenbrand typedef struct VirtIOMEMPCI VirtIOMEMPCI; 210b9a2443SDavid Hildenbrand 220b9a2443SDavid Hildenbrand /* 230b9a2443SDavid Hildenbrand * virtio-mem-pci: This extends VirtioPCIProxy. 240b9a2443SDavid Hildenbrand */ 250b9a2443SDavid Hildenbrand #define TYPE_VIRTIO_MEM_PCI "virtio-mem-pci-base" 260b9a2443SDavid Hildenbrand #define VIRTIO_MEM_PCI(obj) \ 270b9a2443SDavid Hildenbrand OBJECT_CHECK(VirtIOMEMPCI, (obj), TYPE_VIRTIO_MEM_PCI) 280b9a2443SDavid Hildenbrand 290b9a2443SDavid Hildenbrand struct VirtIOMEMPCI { 300b9a2443SDavid Hildenbrand VirtIOPCIProxy 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