aboutsummaryrefslogtreecommitdiff
path: root/include/hw/virtio/vhost-user-scmi.h
blob: 6175a74ebd51442304c39cb87d31d5410df3ee58 (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
/*
 * Vhost-user SCMI virtio device
 *
 * Copyright (c) 2023 Red Hat, Inc.
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef _QEMU_VHOST_USER_SCMI_H
#define _QEMU_VHOST_USER_SCMI_H

#include "hw/virtio/virtio.h"
#include "hw/virtio/vhost.h"
#include "hw/virtio/vhost-user.h"

#define TYPE_VHOST_USER_SCMI "vhost-user-scmi"
OBJECT_DECLARE_SIMPLE_TYPE(VHostUserSCMI, VHOST_USER_SCMI);

struct VHostUserSCMI {
    VirtIODevice parent;
    CharBackend chardev;
    struct vhost_virtqueue *vhost_vqs;
    struct vhost_dev vhost_dev;
    VhostUserState vhost_user;
    VirtQueue *cmd_vq;
    VirtQueue *event_vq;
    bool connected;
};

#endif /* _QEMU_VHOST_USER_SCMI_H */