minor style cleanups
[qemu/ar7.git] / include / hw / arm / bcm2835_peripherals.h
blob29e80f8258f35cf5fc3b11c58515cfc038f60301
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 "hw/sysbus.h"
17 #define TYPE_BCM2835_PERIPHERALS "bcm2835_peripherals"
18 #define BCM2835_PERIPHERALS(obj) \
19 OBJECT_CHECK(BCM2835PeripheralState, (obj), TYPE_BCM2835_PERIPHERALS)
21 typedef struct BCM2835PeripheralState {
22 /*< private >*/
23 SysBusDevice parent_obj;
24 /*< public >*/
26 MemoryRegion peri_mr, peri_mr_alias, gpu_bus_mr, mbox_mr;
27 MemoryRegion ram_alias[4];
28 qemu_irq irq, fiq;
29 uint32_t vcram_size;
31 SysBusDevice *ic, *uart0, *uart1, *systimer, *armtimer, *usb, *mphi, *sbm,
32 *power, *fb, *property, *vchiq, *emmc, *dma;
33 } BCM2835PeripheralState;
35 #endif /* BCM2835_PERIPHERALS_H */