xref: /openbmc/qemu/include/hw/virtio/virtio-md-pci.h (revision 18129c15)
1*18129c15SDavid Hildenbrand /*
2*18129c15SDavid Hildenbrand  * Abstract virtio based memory device
3*18129c15SDavid Hildenbrand  *
4*18129c15SDavid Hildenbrand  * Copyright (C) 2023 Red Hat, Inc.
5*18129c15SDavid Hildenbrand  *
6*18129c15SDavid Hildenbrand  * Authors:
7*18129c15SDavid Hildenbrand  *  David Hildenbrand <david@redhat.com>
8*18129c15SDavid Hildenbrand  *
9*18129c15SDavid Hildenbrand  * This work is licensed under the terms of the GNU GPL, version 2.
10*18129c15SDavid Hildenbrand  * See the COPYING file in the top-level directory.
11*18129c15SDavid Hildenbrand  */
12*18129c15SDavid Hildenbrand 
13*18129c15SDavid Hildenbrand #ifndef HW_VIRTIO_MD_PCI_H
14*18129c15SDavid Hildenbrand #define HW_VIRTIO_MD_PCI_H
15*18129c15SDavid Hildenbrand 
16*18129c15SDavid Hildenbrand #include "hw/virtio/virtio-pci.h"
17*18129c15SDavid Hildenbrand #include "qom/object.h"
18*18129c15SDavid Hildenbrand 
19*18129c15SDavid Hildenbrand /*
20*18129c15SDavid Hildenbrand  * virtio-md-pci: This extends VirtioPCIProxy.
21*18129c15SDavid Hildenbrand  */
22*18129c15SDavid Hildenbrand #define TYPE_VIRTIO_MD_PCI "virtio-md-pci"
23*18129c15SDavid Hildenbrand 
24*18129c15SDavid Hildenbrand OBJECT_DECLARE_TYPE(VirtIOMDPCI, VirtIOMDPCIClass, VIRTIO_MD_PCI)
25*18129c15SDavid Hildenbrand 
26*18129c15SDavid Hildenbrand struct VirtIOMDPCIClass {
27*18129c15SDavid Hildenbrand     /* private */
28*18129c15SDavid Hildenbrand     VirtioPCIClass parent;
29*18129c15SDavid Hildenbrand };
30*18129c15SDavid Hildenbrand 
31*18129c15SDavid Hildenbrand struct VirtIOMDPCI {
32*18129c15SDavid Hildenbrand     VirtIOPCIProxy parent_obj;
33*18129c15SDavid Hildenbrand };
34*18129c15SDavid Hildenbrand 
35*18129c15SDavid Hildenbrand #endif
36