linux-user: Validate mmap/mprotect prot value
[qemu/ar7.git] / include / hw / misc / imx_rngc.h
blobf0d2b44d4f63b438ff522f7c75aef988b0b0e2fa
1 /*
2 * Freescale i.MX RNGC emulation
4 * Copyright (C) 2020 Martin Kaiser <martin@kaiser.cx>
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 IMX_RNGC_H
11 #define IMX_RNGC_H
13 #include "hw/sysbus.h"
15 #define TYPE_IMX_RNGC "imx.rngc"
16 #define IMX_RNGC(obj) OBJECT_CHECK(IMXRNGCState, (obj), TYPE_IMX_RNGC)
18 typedef struct IMXRNGCState {
19 /*< private >*/
20 SysBusDevice parent_obj;
22 /*< public >*/
23 MemoryRegion iomem;
25 uint8_t op_self_test;
26 uint8_t op_seed;
27 uint8_t mask;
28 bool auto_seed;
30 QEMUBH *self_test_bh;
31 QEMUBH *seed_bh;
32 qemu_irq irq;
33 } IMXRNGCState;
35 #endif /* IMX_RNGC_H */