2
0

virtio-pmem-pci.h 793 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Virtio PMEM PCI device
  3. *
  4. * Copyright (C) 2018-2019 Red Hat, Inc.
  5. *
  6. * Authors:
  7. * Pankaj Gupta <pagupta@redhat.com>
  8. * David Hildenbrand <david@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. #ifndef QEMU_VIRTIO_PMEM_PCI_H
  14. #define QEMU_VIRTIO_PMEM_PCI_H
  15. #include "hw/virtio/virtio-pci.h"
  16. #include "hw/virtio/virtio-pmem.h"
  17. typedef struct VirtIOPMEMPCI VirtIOPMEMPCI;
  18. /*
  19. * virtio-pmem-pci: This extends VirtioPCIProxy.
  20. */
  21. #define TYPE_VIRTIO_PMEM_PCI "virtio-pmem-pci-base"
  22. #define VIRTIO_PMEM_PCI(obj) \
  23. OBJECT_CHECK(VirtIOPMEMPCI, (obj), TYPE_VIRTIO_PMEM_PCI)
  24. struct VirtIOPMEMPCI {
  25. VirtIOPCIProxy parent_obj;
  26. VirtIOPMEM vdev;
  27. };
  28. #endif /* QEMU_VIRTIO_PMEM_PCI_H */