xref: /qemu/tests/qtest/libqos/virtio-9p.h (revision 9d44725793700112b5a0ff71f64f7059f0a4b6c9)
1 /*
2  * libqos driver framework
3  *
4  * Copyright (c) 2018 Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License version 2 as published by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, see <http://www.gnu.org/licenses/>
17  */
18 
19 #include "libqos/qgraph.h"
20 #include "libqos/virtio.h"
21 #include "libqos/virtio-pci.h"
22 
23 typedef struct QVirtio9P QVirtio9P;
24 typedef struct QVirtio9PPCI QVirtio9PPCI;
25 typedef struct QVirtio9PDevice QVirtio9PDevice;
26 
27 #define MOUNT_TAG "qtest"
28 
29 struct QVirtio9P {
30     QVirtioDevice *vdev;
31     QVirtQueue *vq;
32 };
33 
34 struct QVirtio9PPCI {
35     QVirtioPCIDevice pci_vdev;
36     QVirtio9P v9p;
37 };
38 
39 struct QVirtio9PDevice {
40     QOSGraphObject obj;
41     QVirtio9P v9p;
42 };
43