xref: /qemu/include/hw/arm/allwinner-a10.h (revision 7abc8cab)
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"
10dca62576SPeter Crosthwaite #include "hw/ide/ahci.h"
11*7abc8cabSGuenter Roeck #include "hw/usb/hcd-ohci.h"
12*7abc8cabSGuenter Roeck #include "hw/usb/hcd-ehci.h"
139158fa54Sliguang 
14ec150c7eSMarkus Armbruster #include "target/arm/cpu.h"
159158fa54Sliguang 
169158fa54Sliguang 
179158fa54Sliguang #define AW_A10_SDRAM_BASE       0x40000000
189158fa54Sliguang 
19*7abc8cabSGuenter Roeck #define AW_A10_NUM_USB          2
20*7abc8cabSGuenter Roeck 
219158fa54Sliguang #define TYPE_AW_A10 "allwinner-a10"
229158fa54Sliguang #define AW_A10(obj) OBJECT_CHECK(AwA10State, (obj), TYPE_AW_A10)
239158fa54Sliguang 
249158fa54Sliguang typedef struct AwA10State {
259158fa54Sliguang     /*< private >*/
269158fa54Sliguang     DeviceState parent_obj;
279158fa54Sliguang     /*< public >*/
289158fa54Sliguang 
299158fa54Sliguang     ARMCPU cpu;
309158fa54Sliguang     AwA10PITState timer;
319158fa54Sliguang     AwA10PICState intc;
32db7dfd4cSBeniamino Galvani     AwEmacState emac;
33dca62576SPeter Crosthwaite     AllwinnerAHCIState sata;
34ead07aa4SPhilippe Mathieu-Daudé     MemoryRegion sram_a;
35*7abc8cabSGuenter Roeck     EHCISysBusState ehci[AW_A10_NUM_USB];
36*7abc8cabSGuenter Roeck     OHCISysBusState ohci[AW_A10_NUM_USB];
379158fa54Sliguang } AwA10State;
389158fa54Sliguang 
399158fa54Sliguang #endif
40