1 /* 2 * Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved. 3 * 4 * UniProton is licensed under Mulan PSL v2. 5 * You can use this software according to the terms and conditions of the Mulan PSL v2. 6 * You may obtain a copy of Mulan PSL v2 at: 7 * http://license.coscl.org.cn/MulanPSL2 8 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, 9 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 10 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 11 * See the Mulan PSL v2 for more details. 12 * Create: 2022-11-18 13 * Description: shared data declaration 14 */ 15 16 #ifndef PRT_GIC_COMMON_INTERNAL_H 17 #define PRT_GIC_COMMON_INTERNAL_H 18 19 #include "prt_gic_external.h" 20 21 /* 22 * 模块间宏定义 23 */ 24 /* 各个平台公共的宏 */ 25 #define GIC_GICD_BASE (GIC_REG_BASE + 0x0) 26 #define GICD_CTLR_S_ADDR (GIC_GICD_BASE + 0x0000) 27 #define GICD_ISENABLER0_ADDR (GIC_GICD_BASE + 0x0100) 28 #define GICD_ICENABLER0_ADDR (GIC_GICD_BASE + 0x0180) 29 #define GICD_SGI_IPRIORITY_S_ADDR (GIC_GICD_BASE + 0x0400) 30 #define GICD_SGI_ICFGR_ADDR (GIC_GICD_BASE + 0x0C00) 31 32 #define GIC_GICR_BASE0 (GIC_REG_BASE + g_gicrOffset) 33 #define GIC_GICR_BASE1 (GIC_GICR_BASE0 + 0x10000) 34 #define GICR_CTRL_ADDR (GIC_GICR_BASE0 + 0x0000) 35 #define GICR_ISENABLER0_ADDR (GIC_GICR_BASE1 + 0x0100) 36 #define GICR_ICENABLER0_ADDR (GIC_GICR_BASE1 + 0x0180) 37 #define GICR_IPRIORITY_SGI_S_ADDR (GIC_GICR_BASE1 + 0x0400) 38 #define GICR_ADDR_OFFSET_PER_CORE g_gicrStride 39 40 #endif /* PRT_GIC_COMMON_INTERNAL_H */ 41