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