Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-4.1-sf1-v3' into...
[qemu/ar7.git] / include / hw / misc / bcm2835_property.h
blob11be0dbeac7bd0cdf91b44b9109cb5c300076921
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 "net/net.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 >*/
22 MemoryRegion *dma_mr;
23 AddressSpace dma_as;
24 MemoryRegion iomem;
25 qemu_irq mbox_irq;
26 BCM2835FBState *fbdev;
28 MACAddr macaddr;
29 uint32_t board_rev;
30 uint32_t addr;
31 bool pending;
32 } BCM2835PropertyState;
34 #endif