xref: /qemu/include/hw/arm/allwinner-a10.h (revision e4418354)
1 #ifndef HW_ARM_ALLWINNER_A10_H
2 #define HW_ARM_ALLWINNER_A10_H
3 
4 #include "qemu/error-report.h"
5 #include "hw/char/serial.h"
6 #include "hw/arm/boot.h"
7 #include "hw/pci/pci_device.h"
8 #include "hw/timer/allwinner-a10-pit.h"
9 #include "hw/intc/allwinner-a10-pic.h"
10 #include "hw/net/allwinner_emac.h"
11 #include "hw/sd/allwinner-sdhost.h"
12 #include "hw/ide/ahci.h"
13 #include "hw/usb/hcd-ohci.h"
14 #include "hw/usb/hcd-ehci.h"
15 #include "hw/rtc/allwinner-rtc.h"
16 
17 #include "target/arm/cpu.h"
18 #include "qom/object.h"
19 
20 
21 #define AW_A10_SDRAM_BASE       0x40000000
22 
23 #define AW_A10_NUM_USB          2
24 
25 #define TYPE_AW_A10 "allwinner-a10"
26 OBJECT_DECLARE_SIMPLE_TYPE(AwA10State, AW_A10)
27 
28 struct AwA10State {
29     /*< private >*/
30     DeviceState parent_obj;
31     /*< public >*/
32 
33     ARMCPU cpu;
34     AwA10PITState timer;
35     AwA10PICState intc;
36     AwEmacState emac;
37     AllwinnerAHCIState sata;
38     AwSdHostState mmc0;
39     AwRtcState rtc;
40     MemoryRegion sram_a;
41     EHCISysBusState ehci[AW_A10_NUM_USB];
42     OHCISysBusState ohci[AW_A10_NUM_USB];
43 };
44 
45 #endif
46