Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20210618.0' into...
[qemu/ar7.git] / include / hw / misc / bcm2835_rng.h
blob7c1fb3ef405df7c830ca2c05191157e69edc4493
1 /*
2 * BCM2835 Random Number Generator emulation
4 * Copyright (C) 2017 Marcin Chojnacki <marcinch7@gmail.com>
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */
10 #ifndef BCM2835_RNG_H
11 #define BCM2835_RNG_H
13 #include "hw/sysbus.h"
14 #include "qom/object.h"
16 #define TYPE_BCM2835_RNG "bcm2835-rng"
17 OBJECT_DECLARE_SIMPLE_TYPE(BCM2835RngState, BCM2835_RNG)
19 struct BCM2835RngState {
20 SysBusDevice busdev;
21 MemoryRegion iomem;
23 uint32_t rng_ctrl;
24 uint32_t rng_status;
27 #endif