]>
Commit | Line | Data |
---|---|---|
adf0748a PG |
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 | ||
14 | #ifndef QEMU_VIRTIO_PMEM_PCI_H | |
15 | #define QEMU_VIRTIO_PMEM_PCI_H | |
16 | ||
17 | #include "hw/virtio/virtio-pci.h" | |
18 | #include "hw/virtio/virtio-pmem.h" | |
19 | ||
20 | typedef struct VirtIOPMEMPCI VirtIOPMEMPCI; | |
21 | ||
22 | /* | |
23 | * virtio-pmem-pci: This extends VirtioPCIProxy. | |
24 | */ | |
25 | #define TYPE_VIRTIO_PMEM_PCI "virtio-pmem-pci-base" | |
26 | #define VIRTIO_PMEM_PCI(obj) \ | |
27 | OBJECT_CHECK(VirtIOPMEMPCI, (obj), TYPE_VIRTIO_PMEM_PCI) | |
28 | ||
29 | struct VirtIOPMEMPCI { | |
30 | VirtIOPCIProxy parent_obj; | |
31 | VirtIOPMEM vdev; | |
32 | }; | |
33 | ||
34 | #endif /* QEMU_VIRTIO_PMEM_PCI_H */ |