Clean up ill-advised or unusual header guards
[qemu/armbru.git] / include / hw / virtio / vhost-user-rng.h
blobddd9f01eea6116a58d60e4d6c9e480115f147fc7
1 /*
2 * Vhost-user RNG virtio device
4 * Copyright (c) 2021 Mathieu Poirier <mathieu.poirier@linaro.org>
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #ifndef QEMU_VHOST_USER_RNG_H
10 #define QEMU_VHOST_USER_RNG_H
12 #include "hw/virtio/virtio.h"
13 #include "hw/virtio/vhost.h"
14 #include "hw/virtio/vhost-user.h"
15 #include "chardev/char-fe.h"
17 #define TYPE_VHOST_USER_RNG "vhost-user-rng"
18 OBJECT_DECLARE_SIMPLE_TYPE(VHostUserRNG, VHOST_USER_RNG)
20 struct VHostUserRNG {
21 /*< private >*/
22 VirtIODevice parent;
23 CharBackend chardev;
24 struct vhost_virtqueue *vhost_vq;
25 struct vhost_dev vhost_dev;
26 VhostUserState vhost_user;
27 VirtQueue *req_vq;
28 bool connected;
30 /*< public >*/
33 #endif /* QEMU_VHOST_USER_RNG_H */