2013-08-19 03:27:19 +04:00
|
|
|
/*
|
|
|
|
* ARM11MPCore internal peripheral emulation.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2006-2007 CodeSourcery.
|
|
|
|
* Written by Paul Brook
|
|
|
|
*
|
|
|
|
* This code is licensed under the GPL.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HW_CPU_ARM11MPCORE_H
|
|
|
|
#define HW_CPU_ARM11MPCORE_H
|
|
|
|
|
|
|
|
#include "hw/sysbus.h"
|
|
|
|
#include "hw/misc/arm11scu.h"
|
|
|
|
#include "hw/intc/arm_gic.h"
|
|
|
|
#include "hw/timer/arm_mptimer.h"
|
2020-09-03 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2013-08-19 03:27:19 +04:00
|
|
|
|
|
|
|
#define TYPE_ARM11MPCORE_PRIV "arm11mpcore_priv"
|
2020-09-16 21:25:19 +03:00
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(ARM11MPCorePriveState, ARM11MPCORE_PRIV)
|
2013-08-19 03:27:19 +04:00
|
|
|
|
2020-09-03 23:43:22 +03:00
|
|
|
struct ARM11MPCorePriveState {
|
2013-08-19 03:27:19 +04:00
|
|
|
SysBusDevice parent_obj;
|
|
|
|
|
|
|
|
uint32_t num_cpu;
|
|
|
|
MemoryRegion container;
|
|
|
|
uint32_t num_irq;
|
|
|
|
|
|
|
|
ARM11SCUState scu;
|
|
|
|
GICState gic;
|
|
|
|
ARMMPTimerState mptimer;
|
|
|
|
ARMMPTimerState wdtimer;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2013-08-19 03:27:19 +04:00
|
|
|
|
|
|
|
#endif
|