xref: /openbmc/qemu/include/hw/cpu/a15mpcore.h (revision f6476697)
1 /*
2  * Cortex-A15MPCore internal peripheral emulation.
3  *
4  * Copyright (c) 2012 Linaro Limited.
5  * Written by Peter Maydell.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, see <http://www.gnu.org/licenses/>.
19  */
20 #ifndef HW_CPU_A15MPCORE_H
21 #define HW_CPU_A15MPCORE_H
22 
23 #include "hw/sysbus.h"
24 #include "hw/intc/arm_gic.h"
25 #include "qom/object.h"
26 
27 /* A15MP private memory region.  */
28 
29 #define TYPE_A15MPCORE_PRIV "a15mpcore_priv"
30 OBJECT_DECLARE_SIMPLE_TYPE(A15MPPrivState, A15MPCORE_PRIV)
31 
32 struct A15MPPrivState {
33     /*< private >*/
34     SysBusDevice parent_obj;
35     /*< public >*/
36 
37     uint32_t num_cpu;
38     uint32_t num_irq;
39     MemoryRegion container;
40 
41     GICState gic;
42 };
43 
44 #endif
45