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" 14a9ad9e73SNiek Linnenbank #include "hw/rtc/allwinner-rtc.h" 159158fa54Sliguang 16ec150c7eSMarkus Armbruster #include "target/arm/cpu.h" 17db1015e9SEduardo Habkost #include "qom/object.h" 189158fa54Sliguang 199158fa54Sliguang 209158fa54Sliguang #define AW_A10_SDRAM_BASE 0x40000000 219158fa54Sliguang 227abc8cabSGuenter Roeck #define AW_A10_NUM_USB 2 237abc8cabSGuenter Roeck 249158fa54Sliguang #define TYPE_AW_A10 "allwinner-a10" 25*8063396bSEduardo Habkost OBJECT_DECLARE_SIMPLE_TYPE(AwA10State, AW_A10) 269158fa54Sliguang 27db1015e9SEduardo Habkost struct AwA10State { 289158fa54Sliguang /*< private >*/ 299158fa54Sliguang DeviceState parent_obj; 309158fa54Sliguang /*< public >*/ 319158fa54Sliguang 329158fa54Sliguang ARMCPU cpu; 339158fa54Sliguang AwA10PITState timer; 349158fa54Sliguang AwA10PICState intc; 35db7dfd4cSBeniamino Galvani AwEmacState emac; 36dca62576SPeter Crosthwaite AllwinnerAHCIState sata; 3782e48382SNiek Linnenbank AwSdHostState mmc0; 38a9ad9e73SNiek Linnenbank AwRtcState rtc; 39ead07aa4SPhilippe Mathieu-Daudé MemoryRegion sram_a; 407abc8cabSGuenter Roeck EHCISysBusState ehci[AW_A10_NUM_USB]; 417abc8cabSGuenter Roeck OHCISysBusState ohci[AW_A10_NUM_USB]; 42db1015e9SEduardo Habkost }; 439158fa54Sliguang 449158fa54Sliguang #endif 45