diff options
author | Sughosh Ganu <sughosh.ganu@linaro.org> | 2019-12-29 15:30:14 +0530 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-01-07 18:08:21 +0100 |
commit | 03018ea8fd09b3dffb63830e5c0e445de42f572a (patch) | |
tree | e07ef31da77f8003503d416b344494198d7990ab /include/virtio.h | |
parent | 4ee08eb115c3d22cfda415a8f6bc9e975595d204 (diff) | |
download | u-boot-03018ea8fd09b3dffb63830e5c0e445de42f572a.zip u-boot-03018ea8fd09b3dffb63830e5c0e445de42f572a.tar.gz u-boot-03018ea8fd09b3dffb63830e5c0e445de42f572a.tar.bz2 |
virtio: rng: Add a random number generator(rng) driver
Add a driver for the virtio-rng device on the qemu platform. The
device uses pci as a transport medium. The driver can be enabled with
the following configs
CONFIG_VIRTIO
CONFIG_DM_RNG
CONFIG_VIRTIO_PCI
CONFIG_VIRTIO_RNG
Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Diffstat (limited to 'include/virtio.h')
-rw-r--r-- | include/virtio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/virtio.h b/include/virtio.h index 654fdf1..561dcc3 100644 --- a/include/virtio.h +++ b/include/virtio.h @@ -22,10 +22,12 @@ #define VIRTIO_ID_NET 1 /* virtio net */ #define VIRTIO_ID_BLOCK 2 /* virtio block */ -#define VIRTIO_ID_MAX_NUM 3 +#define VIRTIO_ID_RNG 4 /* virtio rng */ +#define VIRTIO_ID_MAX_NUM 5 #define VIRTIO_NET_DRV_NAME "virtio-net" #define VIRTIO_BLK_DRV_NAME "virtio-blk" +#define VIRTIO_RNG_DRV_NAME "virtio-rng" /* Status byte for guest to report progress, and synchronize features */ |