1 #ifndef ALLWINNER_H_ 2 3 #include "qemu-common.h" 4 #include "qemu/error-report.h" 5 #include "hw/char/serial.h" 6 #include "hw/arm/arm.h" 7 #include "hw/timer/allwinner-a10-pit.h" 8 #include "hw/intc/allwinner-a10-pic.h" 9 10 #include "sysemu/sysemu.h" 11 #include "exec/address-spaces.h" 12 13 14 #define AW_A10_PIC_REG_BASE 0x01c20400 15 #define AW_A10_PIT_REG_BASE 0x01c20c00 16 #define AW_A10_UART0_REG_BASE 0x01c28000 17 18 #define AW_A10_SDRAM_BASE 0x40000000 19 20 #define TYPE_AW_A10 "allwinner-a10" 21 #define AW_A10(obj) OBJECT_CHECK(AwA10State, (obj), TYPE_AW_A10) 22 23 typedef struct AwA10State { 24 /*< private >*/ 25 DeviceState parent_obj; 26 /*< public >*/ 27 28 ARMCPU cpu; 29 qemu_irq irq[AW_A10_PIC_INT_NR]; 30 AwA10PITState timer; 31 AwA10PICState intc; 32 } AwA10State; 33 34 #define ALLWINNER_H_ 35 #endif 36