allwinner-a10.h (423ec28bb8c20d9dfa68faef50699772899ab64d) allwinner-a10.h (edd3a59d5b98964ed72265346cb4dc7e9ffccd27)
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#include "hw/misc/allwinner-a10-ccm.h"
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#include "hw/misc/allwinner-a10-ccm.h"
17#include "hw/misc/allwinner-a10-dramc.h"
17
18#include "target/arm/cpu.h"
19#include "qom/object.h"
20
21
22#define AW_A10_SDRAM_BASE 0x40000000
23
24#define AW_A10_NUM_USB 2
25
26#define TYPE_AW_A10 "allwinner-a10"
27OBJECT_DECLARE_SIMPLE_TYPE(AwA10State, AW_A10)
28
29struct AwA10State {
30 /*< private >*/
31 DeviceState parent_obj;
32 /*< public >*/
33
34 ARMCPU cpu;
35 AwA10ClockCtlState ccm;
18
19#include "target/arm/cpu.h"
20#include "qom/object.h"
21
22
23#define AW_A10_SDRAM_BASE 0x40000000
24
25#define AW_A10_NUM_USB 2
26
27#define TYPE_AW_A10 "allwinner-a10"
28OBJECT_DECLARE_SIMPLE_TYPE(AwA10State, AW_A10)
29
30struct AwA10State {
31 /*< private >*/
32 DeviceState parent_obj;
33 /*< public >*/
34
35 ARMCPU cpu;
36 AwA10ClockCtlState ccm;
37 AwA10DramControllerState dramc;
36 AwA10PITState timer;
37 AwA10PICState intc;
38 AwEmacState emac;
39 AllwinnerAHCIState sata;
40 AwSdHostState mmc0;
41 AwRtcState rtc;
42 MemoryRegion sram_a;
43 EHCISysBusState ehci[AW_A10_NUM_USB];
44 OHCISysBusState ohci[AW_A10_NUM_USB];
45};
46
47#endif
38 AwA10PITState timer;
39 AwA10PICState intc;
40 AwEmacState emac;
41 AllwinnerAHCIState sata;
42 AwSdHostState mmc0;
43 AwRtcState rtc;
44 MemoryRegion sram_a;
45 EHCISysBusState ehci[AW_A10_NUM_USB];
46 OHCISysBusState ohci[AW_A10_NUM_USB];
47};
48
49#endif