1 /*
2  * Raspberry Pi emulation (c) 2012 Gregory Estrade
3  *
4  * This work is licensed under the terms of the GNU GPL, version 2 or later.
5  * See the COPYING file in the top-level directory.
6  */
7 
8 #ifndef BCM2835_PROPERTY_H
9 #define BCM2835_PROPERTY_H
10 
11 #include "hw/sysbus.h"
12 #include "net/net.h"
13 #include "hw/display/bcm2835_fb.h"
14 #include "qom/object.h"
15 
16 #define TYPE_BCM2835_PROPERTY "bcm2835-property"
17 typedef struct BCM2835PropertyState BCM2835PropertyState;
18 DECLARE_INSTANCE_CHECKER(BCM2835PropertyState, BCM2835_PROPERTY,
19                          TYPE_BCM2835_PROPERTY)
20 
21 struct BCM2835PropertyState {
22     /*< private >*/
23     SysBusDevice busdev;
24     /*< public >*/
25 
26     MemoryRegion *dma_mr;
27     AddressSpace dma_as;
28     MemoryRegion iomem;
29     qemu_irq mbox_irq;
30     BCM2835FBState *fbdev;
31 
32     MACAddr macaddr;
33     uint32_t board_rev;
34     uint32_t addr;
35     bool pending;
36 };
37 
38 #endif
39