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 typedef struct A15MPPrivState A15MPPrivState; 31 DECLARE_INSTANCE_CHECKER(A15MPPrivState, A15MPCORE_PRIV, 32 TYPE_A15MPCORE_PRIV) 33 34 struct A15MPPrivState { 35 /*< private >*/ 36 SysBusDevice parent_obj; 37 /*< public >*/ 38 39 uint32_t num_cpu; 40 uint32_t num_irq; 41 MemoryRegion container; 42 43 GICState gic; 44 }; 45 46 #endif 47