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.
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"
18 #include "hw/char/bcm2835_aux.h"
19 #include "hw/display/bcm2835_fb.h"
20 #include "hw/dma/bcm2835_dma.h"
21 #include "hw/intc/bcm2835_ic.h"
22 #include "hw/misc/bcm2835_mphi.h"
23 #include "hw/misc/bcm2835_power.h"
24 #include "hw/misc/bcm2835_property.h"
25 #include "hw/misc/bcm2835_mbox.h"
26 #include "hw/sd/sdhci.h"
27 #include "hw/timer/bcm2835_st.h"
28 #include "hw/timer/bcm2835_timer.h"
29 #include "hw/usb/bcm2835_usb.h"
31 #define TYPE_BCM2835_PERIPHERALS "bcm2835_peripherals"
33 #include "hw/intc/bcm2835_ic.h"
34 #include "hw/misc/bcm2835_property.h"
35 #include "hw/misc/bcm2835_mbox.h"
36 #include "hw/sd/sdhci.h"
38 #define TYPE_BCM2835_PERIPHERALS "bcm2835-peripherals"
39 >>>>>>> upstreaming-raspi
40 #define BCM2835_PERIPHERALS(obj) \
41 OBJECT_CHECK(BCM2835PeripheralState, (obj), TYPE_BCM2835_PERIPHERALS)
43 typedef struct BCM2835PeripheralState {
45 SysBusDevice parent_obj;
48 MemoryRegion peri_mr, peri_mr_alias, gpu_bus_mr, mbox_mr;
49 MemoryRegion ram_alias[4];
58 BCM2835MphiState mphi;
59 BCM2835PowerState power;
60 BCM2835PropertyState property;
61 BCM2835MboxState mboxes;
64 BCM2835TimerState timer;
68 BCM2835PropertyState property;
69 BCM2835MboxState mboxes;
71 >>>>>>> upstreaming-raspi
72 } BCM2835PeripheralState;
74 #endif /* BCM2835_PERIPHERALS_H */