bcm2835_fb: s/Bcm2835FbState/BCM2835FbState/ for consistency
[qemu/ar7.git] / include / hw / arm / bcm2835_peripherals.h
blobfc78f7a260f076b8134618007fe30c133bc2df89
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"
21 #define TYPE_BCM2835_PERIPHERALS "bcm2835_peripherals"
22 #define BCM2835_PERIPHERALS(obj) \
23 OBJECT_CHECK(BCM2835PeripheralState, (obj), TYPE_BCM2835_PERIPHERALS)
25 typedef struct BCM2835PeripheralState {
26 /*< private >*/
27 SysBusDevice parent_obj;
28 /*< public >*/
30 MemoryRegion peri_mr, peri_mr_alias, gpu_bus_mr, mbox_mr;
31 MemoryRegion ram_alias[4];
32 qemu_irq irq, fiq;
34 Bcm2835AuxState aux;
35 BCM2835FbState fb;
36 BCM2835DmaState dma;
37 SysBusDevice *ic, *uart0, *systimer, *armtimer, *usb, *mphi, *sbm,
38 *power, *property, *vchiq, *emmc;
39 } BCM2835PeripheralState;
41 #endif /* BCM2835_PERIPHERALS_H */