pi: cross-port refactoring/cleanup from private branch used for ongoing upstreaming
[qemu/ar7.git] / include / hw / misc / bcm2835_property.h
blobd452209a048f0efdd04d7e517cdf771b9fbb8167
1 /*
2 * Raspberry Pi emulation (c) 2012 Gregory Estrade
3 * This code is licensed under the GNU GPLv2 and later.
4 */
6 #ifndef BCM2835_PROPERTY_H
7 #define BCM2835_PROPERTY_H
9 #include "hw/sysbus.h"
10 #include "exec/address-spaces.h"
11 #include "hw/display/bcm2835_fb.h"
13 #define TYPE_BCM2835_PROPERTY "bcm2835_property"
14 #define BCM2835_PROPERTY(obj) \
15 OBJECT_CHECK(BCM2835PropertyState, (obj), TYPE_BCM2835_PROPERTY)
17 typedef struct {
18 /*< private >*/
19 SysBusDevice busdev;
20 /*< public >*/
21 MemoryRegion *dma_mr;
22 AddressSpace dma_as;
23 BCM2835FbState *fbdev;
24 MemoryRegion iomem;
25 uint32_t addr;
26 bool pending;
27 qemu_irq mbox_irq;
28 } BCM2835PropertyState;
30 #endif