block: Update BlockDriverState.inherits_from on bdrv_set_backing_hd()
[qemu/ar7.git] / include / hw / arm / nrf51_soc.h
blob73fc92e9a8d266a43f48da55d2ec5e021f0073d0
1 /*
2 * Nordic Semiconductor nRF51 SoC
4 * Copyright 2018 Joel Stanley <joel@jms.id.au>
6 * This code is licensed under the GPL version 2 or later. See
7 * the COPYING file in the top-level directory.
8 */
10 #ifndef NRF51_SOC_H
11 #define NRF51_SOC_H
13 #include "hw/sysbus.h"
14 #include "hw/arm/armv7m.h"
15 #include "hw/char/nrf51_uart.h"
17 #define TYPE_NRF51_SOC "nrf51-soc"
18 #define NRF51_SOC(obj) \
19 OBJECT_CHECK(NRF51State, (obj), TYPE_NRF51_SOC)
21 typedef struct NRF51State {
22 /*< private >*/
23 SysBusDevice parent_obj;
25 /*< public >*/
26 ARMv7MState cpu;
28 NRF51UARTState uart;
30 MemoryRegion iomem;
31 MemoryRegion sram;
32 MemoryRegion flash;
34 uint32_t sram_size;
35 uint32_t flash_size;
37 MemoryRegion *board_memory;
39 MemoryRegion container;
41 } NRF51State;
43 #endif