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 #include "hw/display/bcm2835_fb.h" 13 14 #define TYPE_BCM2835_PROPERTY "bcm2835-property" 15 #define BCM2835_PROPERTY(obj) \ 16 OBJECT_CHECK(BCM2835PropertyState, (obj), TYPE_BCM2835_PROPERTY) 17 18 typedef struct { 19 /*< private >*/ 20 SysBusDevice busdev; 21 /*< public >*/ 22 23 MemoryRegion *dma_mr; 24 AddressSpace dma_as; 25 MemoryRegion iomem; 26 qemu_irq mbox_irq; 27 BCM2835FBState *fbdev; 28 29 MACAddr macaddr; 30 uint32_t board_rev; 31 uint32_t addr; 32 bool pending; 33 } BCM2835PropertyState; 34 35 #endif 36