hw/arm/xlnx-zynqmp: Remove obsolete 'has_rpu' property
[qemu/ar7.git] / include / hw / misc / npcm7xx_rng.h
blob5e85fd439d8ac0ea1966001c2b4b9e03c4e69b35
1 /*
2 * Nuvoton NPCM7xx Random Number Generator.
4 * Copyright 2020 Google LLC
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
16 #ifndef NPCM7XX_RNG_H
17 #define NPCM7XX_RNG_H
19 #include "hw/sysbus.h"
21 typedef struct NPCM7xxRNGState {
22 SysBusDevice parent;
24 MemoryRegion iomem;
26 uint8_t rngcs;
27 uint8_t rngd;
28 uint8_t rngmode;
29 } NPCM7xxRNGState;
31 #define TYPE_NPCM7XX_RNG "npcm7xx-rng"
32 #define NPCM7XX_RNG(obj) OBJECT_CHECK(NPCM7xxRNGState, (obj), TYPE_NPCM7XX_RNG)
34 #endif /* NPCM7XX_RNG_H */