bcm2835_property: add bcm2835 property channel
[qemu/ar7.git] / include / hw / misc / bcm2835_property.h
blobd7a9856e83cf347ff43903fbfd4833d1187d6e86
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"
12 #define TYPE_BCM2835_PROPERTY "bcm2835-property"
13 #define BCM2835_PROPERTY(obj) \
14 OBJECT_CHECK(BCM2835PropertyState, (obj), TYPE_BCM2835_PROPERTY)
16 typedef struct {
17 /*< private >*/
18 SysBusDevice busdev;
19 /*< public >*/
20 MemoryRegion *dma_mr;
21 AddressSpace dma_as;
22 MemoryRegion iomem;
23 qemu_irq mbox_irq;
24 uint32_t ram_size;
25 uint32_t addr;
26 bool pending;
27 } BCM2835PropertyState;
29 #endif