]>
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 | ||
18129c15 | 17 | #include "hw/virtio/virtio-md-pci.h" |
adf0748a | 18 | #include "hw/virtio/virtio-pmem.h" |
db1015e9 | 19 | #include "qom/object.h" |
adf0748a PG |
20 | |
21 | typedef struct VirtIOPMEMPCI VirtIOPMEMPCI; | |
22 | ||
23 | /* | |
18129c15 | 24 | * virtio-pmem-pci: This extends VirtIOMDPCI. |
adf0748a PG |
25 | */ |
26 | #define TYPE_VIRTIO_PMEM_PCI "virtio-pmem-pci-base" | |
8110fa1d EH |
27 | DECLARE_INSTANCE_CHECKER(VirtIOPMEMPCI, VIRTIO_PMEM_PCI, |
28 | TYPE_VIRTIO_PMEM_PCI) | |
adf0748a PG |
29 | |
30 | struct VirtIOPMEMPCI { | |
18129c15 | 31 | VirtIOMDPCI parent_obj; |
adf0748a PG |
32 | VirtIOPMEM vdev; |
33 | }; | |
34 | ||
35 | #endif /* QEMU_VIRTIO_PMEM_PCI_H */ |