xref: /openbmc/qemu/include/hw/arm/allwinner-a10.h (revision 6ab425d8)
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/ide/ahci.h"
11 #include "hw/usb/hcd-ohci.h"
12 #include "hw/usb/hcd-ehci.h"
13 
14 #include "target/arm/cpu.h"
15 
16 
17 #define AW_A10_SDRAM_BASE       0x40000000
18 
19 #define AW_A10_NUM_USB          2
20 
21 #define TYPE_AW_A10 "allwinner-a10"
22 #define AW_A10(obj) OBJECT_CHECK(AwA10State, (obj), TYPE_AW_A10)
23 
24 typedef struct AwA10State {
25     /*< private >*/
26     DeviceState parent_obj;
27     /*< public >*/
28 
29     ARMCPU cpu;
30     AwA10PITState timer;
31     AwA10PICState intc;
32     AwEmacState emac;
33     AllwinnerAHCIState sata;
34     MemoryRegion sram_a;
35     EHCISysBusState ehci[AW_A10_NUM_USB];
36     OHCISysBusState ohci[AW_A10_NUM_USB];
37 } AwA10State;
38 
39 #endif
40