xref: /qemu/include/hw/arm/allwinner-a10.h (revision edf5ca5dbe8031e7814ea34eb109b8f7d4024ae5)
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"
7*edf5ca5dSMarkus Armbruster #include "hw/pci/pci_device.h"
89158fa54Sliguang #include "hw/timer/allwinner-a10-pit.h"
99158fa54Sliguang #include "hw/intc/allwinner-a10-pic.h"
10db7dfd4cSBeniamino Galvani #include "hw/net/allwinner_emac.h"
1182e48382SNiek Linnenbank #include "hw/sd/allwinner-sdhost.h"
12dca62576SPeter Crosthwaite #include "hw/ide/ahci.h"
137abc8cabSGuenter Roeck #include "hw/usb/hcd-ohci.h"
147abc8cabSGuenter Roeck #include "hw/usb/hcd-ehci.h"
15a9ad9e73SNiek Linnenbank #include "hw/rtc/allwinner-rtc.h"
169158fa54Sliguang 
17ec150c7eSMarkus Armbruster #include "target/arm/cpu.h"
18db1015e9SEduardo Habkost #include "qom/object.h"
199158fa54Sliguang 
209158fa54Sliguang 
219158fa54Sliguang #define AW_A10_SDRAM_BASE       0x40000000
229158fa54Sliguang 
237abc8cabSGuenter Roeck #define AW_A10_NUM_USB          2
247abc8cabSGuenter Roeck 
259158fa54Sliguang #define TYPE_AW_A10 "allwinner-a10"
268063396bSEduardo Habkost OBJECT_DECLARE_SIMPLE_TYPE(AwA10State, AW_A10)
279158fa54Sliguang 
28db1015e9SEduardo Habkost struct AwA10State {
299158fa54Sliguang     /*< private >*/
309158fa54Sliguang     DeviceState parent_obj;
319158fa54Sliguang     /*< public >*/
329158fa54Sliguang 
339158fa54Sliguang     ARMCPU cpu;
349158fa54Sliguang     AwA10PITState timer;
359158fa54Sliguang     AwA10PICState intc;
36db7dfd4cSBeniamino Galvani     AwEmacState emac;
37dca62576SPeter Crosthwaite     AllwinnerAHCIState sata;
3882e48382SNiek Linnenbank     AwSdHostState mmc0;
39a9ad9e73SNiek Linnenbank     AwRtcState rtc;
40ead07aa4SPhilippe Mathieu-Daudé     MemoryRegion sram_a;
417abc8cabSGuenter Roeck     EHCISysBusState ehci[AW_A10_NUM_USB];
427abc8cabSGuenter Roeck     OHCISysBusState ohci[AW_A10_NUM_USB];
43db1015e9SEduardo Habkost };
449158fa54Sliguang 
459158fa54Sliguang #endif
46