xref: /qemu/include/hw/cpu/a15mpcore.h (revision 8063396b)
143482f72SAndreas Färber /*
243482f72SAndreas Färber  * Cortex-A15MPCore internal peripheral emulation.
343482f72SAndreas Färber  *
443482f72SAndreas Färber  * Copyright (c) 2012 Linaro Limited.
543482f72SAndreas Färber  * Written by Peter Maydell.
643482f72SAndreas Färber  *
743482f72SAndreas Färber  * This program is free software; you can redistribute it and/or modify
843482f72SAndreas Färber  * it under the terms of the GNU General Public License as published by
943482f72SAndreas Färber  * the Free Software Foundation; either version 2 of the License, or
1043482f72SAndreas Färber  * (at your option) any later version.
1143482f72SAndreas Färber  *
1243482f72SAndreas Färber  * This program is distributed in the hope that it will be useful,
1343482f72SAndreas Färber  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1443482f72SAndreas Färber  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1543482f72SAndreas Färber  * GNU General Public License for more details.
1643482f72SAndreas Färber  *
1743482f72SAndreas Färber  * You should have received a copy of the GNU General Public License along
1843482f72SAndreas Färber  * with this program; if not, see <http://www.gnu.org/licenses/>.
1943482f72SAndreas Färber  */
2043482f72SAndreas Färber #ifndef HW_CPU_A15MPCORE_H
2143482f72SAndreas Färber #define HW_CPU_A15MPCORE_H
2243482f72SAndreas Färber 
2343482f72SAndreas Färber #include "hw/sysbus.h"
2443482f72SAndreas Färber #include "hw/intc/arm_gic.h"
25db1015e9SEduardo Habkost #include "qom/object.h"
2643482f72SAndreas Färber 
2743482f72SAndreas Färber /* A15MP private memory region.  */
2843482f72SAndreas Färber 
2943482f72SAndreas Färber #define TYPE_A15MPCORE_PRIV "a15mpcore_priv"
30*8063396bSEduardo Habkost OBJECT_DECLARE_SIMPLE_TYPE(A15MPPrivState, A15MPCORE_PRIV)
3143482f72SAndreas Färber 
32db1015e9SEduardo Habkost struct A15MPPrivState {
3343482f72SAndreas Färber     /*< private >*/
3443482f72SAndreas Färber     SysBusDevice parent_obj;
3543482f72SAndreas Färber     /*< public >*/
3643482f72SAndreas Färber 
3743482f72SAndreas Färber     uint32_t num_cpu;
3843482f72SAndreas Färber     uint32_t num_irq;
3943482f72SAndreas Färber     MemoryRegion container;
4043482f72SAndreas Färber 
4143482f72SAndreas Färber     GICState gic;
42db1015e9SEduardo Habkost };
4343482f72SAndreas Färber 
4443482f72SAndreas Färber #endif
45