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 work is licensed under the terms of the GNU GPL, version 2 or later.
9 * See the COPYING file in the top-level directory.
12 #ifndef BCM2835_PERIPHERALS_H
13 #define BCM2835_PERIPHERALS_H
15 #include "hw/sysbus.h"
16 #include "hw/char/pl011.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/misc/bcm2835_mphi.h"
25 #include "hw/misc/bcm2835_thermal.h"
26 #include "hw/misc/bcm2835_cprman.h"
27 #include "hw/misc/bcm2835_powermgt.h"
28 #include "hw/sd/sdhci.h"
29 #include "hw/sd/bcm2835_sdhost.h"
30 #include "hw/gpio/bcm2835_gpio.h"
31 #include "hw/timer/bcm2835_systmr.h"
32 #include "hw/usb/hcd-dwc2.h"
33 #include "hw/misc/unimp.h"
34 #include "qom/object.h"
36 #define TYPE_BCM2835_PERIPHERALS "bcm2835-peripherals"
37 OBJECT_DECLARE_SIMPLE_TYPE(BCM2835PeripheralState
, BCM2835_PERIPHERALS
)
39 struct BCM2835PeripheralState
{
41 SysBusDevice parent_obj
;
44 MemoryRegion peri_mr
, peri_mr_alias
, gpu_bus_mr
, mbox_mr
;
45 MemoryRegion ram_alias
[4];
48 BCM2835SystemTimerState systmr
;
49 BCM2835MphiState mphi
;
50 UnimplementedDeviceState txp
;
51 UnimplementedDeviceState armtmr
;
52 BCM2835PowerMgtState powermgt
;
53 BCM2835CprmanState cprman
;
59 BCM2835PropertyState property
;
61 BCM2835MboxState mboxes
;
63 BCM2835SDHostState sdhost
;
64 BCM2835GpioState gpio
;
65 Bcm2835ThermalState thermal
;
66 UnimplementedDeviceState i2s
;
67 UnimplementedDeviceState spi
[1];
68 UnimplementedDeviceState i2c
[3];
69 UnimplementedDeviceState otp
;
70 UnimplementedDeviceState dbus
;
71 UnimplementedDeviceState ave0
;
72 UnimplementedDeviceState v3d
;
73 UnimplementedDeviceState bscsl
;
74 UnimplementedDeviceState smi
;
76 UnimplementedDeviceState sdramc
;
79 #endif /* BCM2835_PERIPHERALS_H */