10553d895SMarkus Armbruster #ifndef HW_ARM_ALLWINNER_A10_H 20553d895SMarkus Armbruster #define HW_ARM_ALLWINNER_A10_H 39158fa54Sliguang 49158fa54Sliguang #include "qemu/error-report.h" 59158fa54Sliguang #include "hw/char/serial.h" 612ec8bd5SPeter Maydell #include "hw/arm/boot.h" 79158fa54Sliguang #include "hw/timer/allwinner-a10-pit.h" 89158fa54Sliguang #include "hw/intc/allwinner-a10-pic.h" 9db7dfd4cSBeniamino Galvani #include "hw/net/allwinner_emac.h" 1082e48382SNiek Linnenbank #include "hw/sd/allwinner-sdhost.h" 11dca62576SPeter Crosthwaite #include "hw/ide/ahci.h" 127abc8cabSGuenter Roeck #include "hw/usb/hcd-ohci.h" 137abc8cabSGuenter Roeck #include "hw/usb/hcd-ehci.h" 14*a9ad9e73SNiek Linnenbank #include "hw/rtc/allwinner-rtc.h" 159158fa54Sliguang 16ec150c7eSMarkus Armbruster #include "target/arm/cpu.h" 179158fa54Sliguang 189158fa54Sliguang 199158fa54Sliguang #define AW_A10_SDRAM_BASE 0x40000000 209158fa54Sliguang 217abc8cabSGuenter Roeck #define AW_A10_NUM_USB 2 227abc8cabSGuenter Roeck 239158fa54Sliguang #define TYPE_AW_A10 "allwinner-a10" 249158fa54Sliguang #define AW_A10(obj) OBJECT_CHECK(AwA10State, (obj), TYPE_AW_A10) 259158fa54Sliguang 269158fa54Sliguang typedef struct AwA10State { 279158fa54Sliguang /*< private >*/ 289158fa54Sliguang DeviceState parent_obj; 299158fa54Sliguang /*< public >*/ 309158fa54Sliguang 319158fa54Sliguang ARMCPU cpu; 329158fa54Sliguang AwA10PITState timer; 339158fa54Sliguang AwA10PICState intc; 34db7dfd4cSBeniamino Galvani AwEmacState emac; 35dca62576SPeter Crosthwaite AllwinnerAHCIState sata; 3682e48382SNiek Linnenbank AwSdHostState mmc0; 37*a9ad9e73SNiek Linnenbank AwRtcState rtc; 38ead07aa4SPhilippe Mathieu-Daudé MemoryRegion sram_a; 397abc8cabSGuenter Roeck EHCISysBusState ehci[AW_A10_NUM_USB]; 407abc8cabSGuenter Roeck OHCISysBusState ohci[AW_A10_NUM_USB]; 419158fa54Sliguang } AwA10State; 429158fa54Sliguang 439158fa54Sliguang #endif 44