bcm2835_aux: add emulation of BCM2835 AUX (aka UART1) block
[qemu/rayw.git] / include / hw / arm / bcm2835_peripherals.h
blob889adf56b3ca981c399d5a38590864819b0cf18b
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/intc/bcm2835_ic.h"
19 #include "hw/misc/bcm2835_property.h"
20 #include "hw/misc/bcm2835_mbox.h"
21 #include "hw/sd/sdhci.h"
23 #define TYPE_BCM2835_PERIPHERALS "bcm2835-peripherals"
24 #define BCM2835_PERIPHERALS(obj) \
25 OBJECT_CHECK(BCM2835PeripheralState, (obj), TYPE_BCM2835_PERIPHERALS)
27 typedef struct BCM2835PeripheralState {
28 /*< private >*/
29 SysBusDevice parent_obj;
30 /*< public >*/
32 MemoryRegion peri_mr, peri_mr_alias, gpu_bus_mr, mbox_mr;
33 MemoryRegion ram_alias[4];
34 qemu_irq irq, fiq;
36 SysBusDevice *uart0;
37 BCM2835AuxState aux;
38 BCM2835ICState ic;
39 BCM2835PropertyState property;
40 BCM2835MboxState mboxes;
41 SDHCIState sdhci;
42 } BCM2835PeripheralState;
44 #endif /* BCM2835_PERIPHERALS_H */