1 /* 2 * Vhost-user SCMI virtio device 3 * 4 * Copyright (c) 2023 Red Hat, Inc. 5 * 6 * SPDX-License-Identifier: GPL-2.0-or-later 7 */ 8 9 #ifndef _QEMU_VHOST_USER_SCMI_H 10 #define _QEMU_VHOST_USER_SCMI_H 11 12 #include "hw/virtio/virtio.h" 13 #include "hw/virtio/vhost.h" 14 #include "hw/virtio/vhost-user.h" 15 16 #define TYPE_VHOST_USER_SCMI "vhost-user-scmi" 17 OBJECT_DECLARE_SIMPLE_TYPE(VHostUserSCMI, VHOST_USER_SCMI); 18 19 struct VHostUserSCMI { 20 VirtIODevice parent; 21 CharBackend chardev; 22 struct vhost_virtqueue *vhost_vqs; 23 struct vhost_dev vhost_dev; 24 VhostUserState vhost_user; 25 VirtQueue *cmd_vq; 26 VirtQueue *event_vq; 27 bool connected; 28 }; 29 30 #endif /* _QEMU_VHOST_USER_SCMI_H */ 31