hw/arm/virt: fdt: generate distance-map when needed
[qemu/ar7.git] / include / hw / arm / bcm2835_peripherals.h
blob122b286de75a95a503854eca738f8a7901602784
1 /*
2 * Raspberry Pi emulation (c) 2012 Gregory Estrade
3 * Upstreaming code cleanup [including bcm2835_*] (c) 2013 Jan Petrous
5 * Rasperry Pi 2 emulation and refactoring Copyright (c) 2015, Microsoft
6 * Written by Andrew Baumann
8 * This code is licensed under the GNU GPLv2 and later.
9 */
11 #ifndef BCM2835_PERIPHERALS_H
12 #define BCM2835_PERIPHERALS_H
14 #include "qemu-common.h"
15 #include "exec/address-spaces.h"
16 #include "hw/sysbus.h"
17 #include "hw/char/bcm2835_aux.h"
18 #include "hw/display/bcm2835_fb.h"
19 #include "hw/dma/bcm2835_dma.h"
20 #include "hw/intc/bcm2835_ic.h"
21 #include "hw/misc/bcm2835_property.h"
22 #include "hw/misc/bcm2835_rng.h"
23 #include "hw/misc/bcm2835_mbox.h"
24 #include "hw/sd/sdhci.h"
25 #include "hw/sd/bcm2835_sdhost.h"
26 #include "hw/gpio/bcm2835_gpio.h"
28 #define TYPE_BCM2835_PERIPHERALS "bcm2835-peripherals"
29 #define BCM2835_PERIPHERALS(obj) \
30 OBJECT_CHECK(BCM2835PeripheralState, (obj), TYPE_BCM2835_PERIPHERALS)
32 typedef struct BCM2835PeripheralState {
33 /*< private >*/
34 SysBusDevice parent_obj;
35 /*< public >*/
37 MemoryRegion peri_mr, peri_mr_alias, gpu_bus_mr, mbox_mr;
38 MemoryRegion ram_alias[4];
39 qemu_irq irq, fiq;
41 SysBusDevice *uart0;
42 BCM2835AuxState aux;
43 BCM2835FBState fb;
44 BCM2835DMAState dma;
45 BCM2835ICState ic;
46 BCM2835PropertyState property;
47 BCM2835RngState rng;
48 BCM2835MboxState mboxes;
49 SDHCIState sdhci;
50 BCM2835SDHostState sdhost;
51 BCM2835GpioState gpio;
52 } BCM2835PeripheralState;
54 #endif /* BCM2835_PERIPHERALS_H */