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 "hw/nvram/bcm2835_otp.h" 15 #include "qom/object.h" 16 17 #define TYPE_BCM2835_PROPERTY "bcm2835-property" 18 OBJECT_DECLARE_SIMPLE_TYPE(BCM2835PropertyState, BCM2835_PROPERTY) 19 20 struct BCM2835PropertyState { 21 /*< private >*/ 22 SysBusDevice busdev; 23 /*< public >*/ 24 25 MemoryRegion *dma_mr; 26 AddressSpace dma_as; 27 MemoryRegion iomem; 28 qemu_irq mbox_irq; 29 BCM2835FBState *fbdev; 30 BCM2835OTPState *otp; 31 32 MACAddr macaddr; 33 uint32_t board_rev; 34 uint32_t addr; 35 char *command_line; 36 bool pending; 37 }; 38 39 #endif 40