aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/libqos/virtio-gpio.h
blob: f11d41bd19464056fbb7d69a9239e98a37ebea05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * virtio-gpio structures
 *
 * Copyright (c) 2022 Linaro Ltd
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef TESTS_LIBQOS_VIRTIO_GPIO_H
#define TESTS_LIBQOS_VIRTIO_GPIO_H

#include "qgraph.h"
#include "virtio.h"
#include "virtio-pci.h"

typedef struct QVhostUserGPIO QVhostUserGPIO;
typedef struct QVhostUserGPIOPCI QVhostUserGPIOPCI;
typedef struct QVhostUserGPIODevice QVhostUserGPIODevice;

struct QVhostUserGPIO {
    QVirtioDevice *vdev;
    QVirtQueue **queues;
};

struct QVhostUserGPIOPCI {
    QVirtioPCIDevice pci_vdev;
    QVhostUserGPIO gpio;
};

struct QVhostUserGPIODevice {
    QOSGraphObject obj;
    QVhostUserGPIO gpio;
};

#endif