util: introduce qemu_open and qemu_create with error reporting
[qemu/ar7.git] / hw / virtio / virtio-pmem-pci.h
blob63cfe727f781937256402d5e9d098b97b670f53c
1 /*
2 * Virtio PMEM PCI device
4 * Copyright (C) 2018-2019 Red Hat, Inc.
6 * Authors:
7 * Pankaj Gupta <pagupta@redhat.com>
8 * David Hildenbrand <david@redhat.com>
10 * This work is licensed under the terms of the GNU GPL, version 2.
11 * See the COPYING file in the top-level directory.
14 #ifndef QEMU_VIRTIO_PMEM_PCI_H
15 #define QEMU_VIRTIO_PMEM_PCI_H
17 #include "hw/virtio/virtio-pci.h"
18 #include "hw/virtio/virtio-pmem.h"
19 #include "qom/object.h"
21 typedef struct VirtIOPMEMPCI VirtIOPMEMPCI;
24 * virtio-pmem-pci: This extends VirtioPCIProxy.
26 #define TYPE_VIRTIO_PMEM_PCI "virtio-pmem-pci-base"
27 DECLARE_INSTANCE_CHECKER(VirtIOPMEMPCI, VIRTIO_PMEM_PCI,
28 TYPE_VIRTIO_PMEM_PCI)
30 struct VirtIOPMEMPCI {
31 VirtIOPCIProxy parent_obj;
32 VirtIOPMEM vdev;
35 #endif /* QEMU_VIRTIO_PMEM_PCI_H */