]> git.proxmox.com Git - mirror_qemu.git/blame - include/hw/arm/allwinner-a10.h
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
[mirror_qemu.git] / include / hw / arm / allwinner-a10.h
CommitLineData
0553d895
MA
1#ifndef HW_ARM_ALLWINNER_A10_H
2#define HW_ARM_ALLWINNER_A10_H
9158fa54 3
9158fa54
LG
4#include "qemu/error-report.h"
5#include "hw/char/serial.h"
12ec8bd5 6#include "hw/arm/boot.h"
9158fa54
LG
7#include "hw/timer/allwinner-a10-pit.h"
8#include "hw/intc/allwinner-a10-pic.h"
db7dfd4c 9#include "hw/net/allwinner_emac.h"
82e48382 10#include "hw/sd/allwinner-sdhost.h"
dca62576 11#include "hw/ide/ahci.h"
7abc8cab
GR
12#include "hw/usb/hcd-ohci.h"
13#include "hw/usb/hcd-ehci.h"
a9ad9e73 14#include "hw/rtc/allwinner-rtc.h"
9158fa54 15
ec150c7e 16#include "target/arm/cpu.h"
db1015e9 17#include "qom/object.h"
9158fa54
LG
18
19
9158fa54
LG
20#define AW_A10_SDRAM_BASE 0x40000000
21
7abc8cab
GR
22#define AW_A10_NUM_USB 2
23
9158fa54 24#define TYPE_AW_A10 "allwinner-a10"
8063396b 25OBJECT_DECLARE_SIMPLE_TYPE(AwA10State, AW_A10)
9158fa54 26
db1015e9 27struct AwA10State {
9158fa54
LG
28 /*< private >*/
29 DeviceState parent_obj;
30 /*< public >*/
31
32 ARMCPU cpu;
9158fa54
LG
33 AwA10PITState timer;
34 AwA10PICState intc;
db7dfd4c 35 AwEmacState emac;
dca62576 36 AllwinnerAHCIState sata;
82e48382 37 AwSdHostState mmc0;
a9ad9e73 38 AwRtcState rtc;
ead07aa4 39 MemoryRegion sram_a;
7abc8cab
GR
40 EHCISysBusState ehci[AW_A10_NUM_USB];
41 OHCISysBusState ohci[AW_A10_NUM_USB];
db1015e9 42};
9158fa54 43
9158fa54 44#endif