xref: /qemu/include/hw/cpu/arm11mpcore.h (revision 8110fa1d)
1 /*
2  * ARM11MPCore internal peripheral emulation.
3  *
4  * Copyright (c) 2006-2007 CodeSourcery.
5  * Written by Paul Brook
6  *
7  * This code is licensed under the GPL.
8  */
9 
10 #ifndef HW_CPU_ARM11MPCORE_H
11 #define HW_CPU_ARM11MPCORE_H
12 
13 #include "hw/sysbus.h"
14 #include "hw/misc/arm11scu.h"
15 #include "hw/intc/arm_gic.h"
16 #include "hw/timer/arm_mptimer.h"
17 #include "qom/object.h"
18 
19 #define TYPE_ARM11MPCORE_PRIV "arm11mpcore_priv"
20 typedef struct ARM11MPCorePriveState ARM11MPCorePriveState;
21 DECLARE_INSTANCE_CHECKER(ARM11MPCorePriveState, ARM11MPCORE_PRIV,
22                          TYPE_ARM11MPCORE_PRIV)
23 
24 struct ARM11MPCorePriveState {
25     SysBusDevice parent_obj;
26 
27     uint32_t num_cpu;
28     MemoryRegion container;
29     uint32_t num_irq;
30 
31     ARM11SCUState scu;
32     GICState gic;
33     ARMMPTimerState mptimer;
34     ARMMPTimerState wdtimer;
35 };
36 
37 #endif
38