virtio-mem-pci.h 770 B

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef QEMU_VIRTIO_MEM_PCI_H
  13. #define QEMU_VIRTIO_MEM_PCI_H
  14. #include "hw/virtio/virtio-pci.h"
  15. #include "hw/virtio/virtio-mem.h"
  16. typedef struct VirtIOMEMPCI VirtIOMEMPCI;
  17. /*
  18. * virtio-mem-pci: This extends VirtioPCIProxy.
  19. */
  20. #define TYPE_VIRTIO_MEM_PCI "virtio-mem-pci-base"
  21. #define VIRTIO_MEM_PCI(obj) \
  22. OBJECT_CHECK(VirtIOMEMPCI, (obj), TYPE_VIRTIO_MEM_PCI)
  23. struct VirtIOMEMPCI {
  24. VirtIOPCIProxy parent_obj;
  25. VirtIOMEM vdev;
  26. Notifier size_change_notifier;
  27. };
  28. #endif /* QEMU_VIRTIO_MEM_PCI_H */