1 /*
2  * Raspberry Pi emulation (c) 2012 Gregory Estrade
3  * This code is licensed under the GNU GPLv2 and later.
4  */
5 
6 #ifndef BCM2835_PROPERTY_H
7 #define BCM2835_PROPERTY_H
8 
9 #include "hw/sysbus.h"
10 #include "exec/address-spaces.h"
11 #include "net/net.h"
12 
13 #define TYPE_BCM2835_PROPERTY "bcm2835-property"
14 #define BCM2835_PROPERTY(obj) \
15         OBJECT_CHECK(BCM2835PropertyState, (obj), TYPE_BCM2835_PROPERTY)
16 
17 typedef struct {
18     /*< private >*/
19     SysBusDevice busdev;
20     /*< public >*/
21     MemoryRegion *dma_mr;
22     AddressSpace dma_as;
23     MemoryRegion iomem;
24     qemu_irq mbox_irq;
25     MACAddr macaddr;
26     uint32_t board_rev;
27     uint32_t ram_size;
28     uint32_t addr;
29     bool pending;
30 } BCM2835PropertyState;
31 
32 #endif
33