master
h 35 lines 666 Bytes
Raw
1 /*
2 * virtio-gpio structures
3 *
4 * Copyright (c) 2022 Linaro Ltd
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9 #ifndef TESTS_LIBQOS_VIRTIO_GPIO_H
10 #define TESTS_LIBQOS_VIRTIO_GPIO_H
11
12 #include "qgraph.h"
13 #include "virtio.h"
14 #include "virtio-pci.h"
15
16 typedef struct QVhostUserGPIO QVhostUserGPIO;
17 typedef struct QVhostUserGPIOPCI QVhostUserGPIOPCI;
18 typedef struct QVhostUserGPIODevice QVhostUserGPIODevice;
19
20 struct QVhostUserGPIO {
21 QVirtioDevice *vdev;
22 QVirtQueue **queues;
23 };
24
25 struct QVhostUserGPIOPCI {
26 QVirtioPCIDevice pci_vdev;
27 QVhostUserGPIO gpio;
28 };
29
30 struct QVhostUserGPIODevice {
31 QOSGraphObject obj;
32 QVhostUserGPIO gpio;
33 };
34
35 #endif