qemu-img: rebase: Reuse in-chain BlockDriverState
[qemu/ar7.git] / tests / libqos / virtio-net.h
blob28238a1b20c789ea4c247fd2249c5752bb0a2738
1 /*
2 * libqos driver framework
4 * Copyright (c) 2018 Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>
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.
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.
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/>
19 #include "libqos/qgraph.h"
20 #include "libqos/virtio.h"
21 #include "libqos/virtio-pci.h"
23 typedef struct QVirtioNet QVirtioNet;
24 typedef struct QVirtioNetPCI QVirtioNetPCI;
25 typedef struct QVirtioNetDevice QVirtioNetDevice;
27 struct QVirtioNet {
28 QVirtioDevice *vdev;
29 int n_queues;
30 QVirtQueue **queues;
33 struct QVirtioNetPCI {
34 QVirtioPCIDevice pci_vdev;
35 QVirtioNet net;
38 struct QVirtioNetDevice {
39 QOSGraphObject obj;
40 QVirtioNet net;