aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/libqos/virtio-scmi.h
blob: cb5670da6ef2f26d0467a5a196838e7ec31e84ea (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
/*
 * virtio-scmi structures
 *
 * SPDX-FileCopyrightText: Red Hat, Inc.
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef TESTS_LIBQOS_VIRTIO_SCMI_H
#define TESTS_LIBQOS_VIRTIO_SCMI_H

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

typedef struct QVhostUserSCMI QVhostUserSCMI;
typedef struct QVhostUserSCMIPCI QVhostUserSCMIPCI;
typedef struct QVhostUserSCMIDevice QVhostUserSCMIDevice;

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

struct QVhostUserSCMIPCI {
    QVirtioPCIDevice pci_vdev;
    QVhostUserSCMI scmi;
};

struct QVhostUserSCMIDevice {
    QOSGraphObject obj;
    QVhostUserSCMI scmi;
};

#endif