xref: /qemu/include/hw/arm/allwinner-a10.h (revision 82e4838249b23c3fe20cee295f9c1b3e6abd68d1)
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"
10*82e48382SNiek 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"
149158fa54Sliguang 
15ec150c7eSMarkus Armbruster #include "target/arm/cpu.h"
169158fa54Sliguang 
179158fa54Sliguang 
189158fa54Sliguang #define AW_A10_SDRAM_BASE       0x40000000
199158fa54Sliguang 
207abc8cabSGuenter Roeck #define AW_A10_NUM_USB          2
217abc8cabSGuenter Roeck 
229158fa54Sliguang #define TYPE_AW_A10 "allwinner-a10"
239158fa54Sliguang #define AW_A10(obj) OBJECT_CHECK(AwA10State, (obj), TYPE_AW_A10)
249158fa54Sliguang 
259158fa54Sliguang typedef struct AwA10State {
269158fa54Sliguang     /*< private >*/
279158fa54Sliguang     DeviceState parent_obj;
289158fa54Sliguang     /*< public >*/
299158fa54Sliguang 
309158fa54Sliguang     ARMCPU cpu;
319158fa54Sliguang     AwA10PITState timer;
329158fa54Sliguang     AwA10PICState intc;
33db7dfd4cSBeniamino Galvani     AwEmacState emac;
34dca62576SPeter Crosthwaite     AllwinnerAHCIState sata;
35*82e48382SNiek Linnenbank     AwSdHostState mmc0;
36ead07aa4SPhilippe Mathieu-Daudé     MemoryRegion sram_a;
377abc8cabSGuenter Roeck     EHCISysBusState ehci[AW_A10_NUM_USB];
387abc8cabSGuenter Roeck     OHCISysBusState ohci[AW_A10_NUM_USB];
399158fa54Sliguang } AwA10State;
409158fa54Sliguang 
419158fa54Sliguang #endif
42