pi: cross-port refactoring/cleanup from private branch used for ongoing upstreaming
[qemu/ar7.git] / include / hw / arm / bcm2835_peripherals.h
blob037cc5266752a28ee2a8e3555391974d47345472
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_mphi.h"
22 #include "hw/misc/bcm2835_power.h"
23 #include "hw/misc/bcm2835_property.h"
24 #include "hw/misc/bcm2835_mbox.h"
25 #include "hw/misc/bcm2835_vchiq.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"
32 #define BCM2835_PERIPHERALS(obj) \
33 OBJECT_CHECK(BCM2835PeripheralState, (obj), TYPE_BCM2835_PERIPHERALS)
35 typedef struct BCM2835PeripheralState {
36 /*< private >*/
37 SysBusDevice parent_obj;
38 /*< public >*/
40 MemoryRegion peri_mr, peri_mr_alias, gpu_bus_mr, mbox_mr;
41 MemoryRegion ram_alias[4];
42 qemu_irq irq, fiq;
44 SysBusDevice *uart0;
45 BCM2835AuxState aux;
46 BCM2835FbState fb;
47 BCM2835DmaState dma;
48 BCM2835ICState ic;
49 BCM2835MphiState mphi;
50 BCM2835PowerState power;
51 BCM2835PropertyState property;
52 BCM2835MboxState mboxes;
53 BCM2835VchiqState vchiq;
54 SDHCIState sdhci;
55 BCM2835StState st;
56 BCM2835TimerState timer;
57 BCM2835UsbState usb;
58 } BCM2835PeripheralState;
60 #endif /* BCM2835_PERIPHERALS_H */