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 "net/net.h"
11 #include "hw/display/bcm2835_fb.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 
22     MemoryRegion *dma_mr;
23     AddressSpace dma_as;
24     MemoryRegion iomem;
25     qemu_irq mbox_irq;
26     BCM2835FBState *fbdev;
27 
28     MACAddr macaddr;
29     uint32_t board_rev;
30     uint32_t addr;
31     bool pending;
32 } BCM2835PropertyState;
33 
34 #endif
35