xref: /openbmc/qemu/tests/qtest/libqos/virtio-iommu.h (revision 2df1eb27)
1 /*
2  * libqos driver virtio-iommu-pci framework
3  *
4  * Copyright (c) 2021 Red Hat, Inc.
5  *
6  * Authors:
7  *  Eric Auger <eric.auger@redhat.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2 or (at your
10  * option) any later version.  See the COPYING file in the top-level directory.
11  *
12  */
13 
14 #ifndef TESTS_LIBQOS_VIRTIO_IOMMU_H
15 #define TESTS_LIBQOS_VIRTIO_IOMMU_H
16 
17 #include "qgraph.h"
18 #include "virtio.h"
19 #include "virtio-pci.h"
20 
21 typedef struct QVirtioIOMMU QVirtioIOMMU;
22 typedef struct QVirtioIOMMUPCI QVirtioIOMMUPCI;
23 typedef struct QVirtioIOMMUDevice QVirtioIOMMUDevice;
24 
25 struct QVirtioIOMMU {
26     QVirtioDevice *vdev;
27     QVirtQueue *vq;
28 };
29 
30 struct QVirtioIOMMUPCI {
31     QVirtioPCIDevice pci_vdev;
32     QVirtioIOMMU iommu;
33 };
34 
35 struct QVirtioIOMMUDevice {
36     QOSGraphObject obj;
37     QVirtioIOMMU iommu;
38 };
39 
40 #endif
41