xref: /qemu/include/hw/virtio/virtio-rng.h (revision 16c915ba42b45df7a64a6908287f03bfa3764bed)
1*16c915baSAmit Shah /*
2*16c915baSAmit Shah  * Virtio RNG Support
3*16c915baSAmit Shah  *
4*16c915baSAmit Shah  * Copyright Red Hat, Inc. 2012
5*16c915baSAmit Shah  * Copyright Amit Shah <amit.shah@redhat.com>
6*16c915baSAmit Shah  *
7*16c915baSAmit Shah  * This work is licensed under the terms of the GNU GPL, version 2 or
8*16c915baSAmit Shah  * (at your option) any later version.  See the COPYING file in the
9*16c915baSAmit Shah  * top-level directory.
10*16c915baSAmit Shah  */
11*16c915baSAmit Shah 
12*16c915baSAmit Shah #ifndef _QEMU_VIRTIO_RNG_H
13*16c915baSAmit Shah #define _QEMU_VIRTIO_RNG_H
14*16c915baSAmit Shah 
15*16c915baSAmit Shah #include "qemu/rng.h"
16*16c915baSAmit Shah 
17*16c915baSAmit Shah /* The Virtio ID for the virtio rng device */
18*16c915baSAmit Shah #define VIRTIO_ID_RNG    4
19*16c915baSAmit Shah 
20*16c915baSAmit Shah struct VirtIORNGConf {
21*16c915baSAmit Shah     RngBackend *rng;
22*16c915baSAmit Shah };
23*16c915baSAmit Shah 
24*16c915baSAmit Shah #endif
25