1 /* SPDX-License-Identifier: GPL-2.0 2 * 3 * Copyright 2016-2020 HabanaLabs, Ltd. 4 * All Rights Reserved. 5 * 6 */ 7 8 #ifndef ASIC_REG_GAUDI_REGS_H_ 9 #define ASIC_REG_GAUDI_REGS_H_ 10 11 #include "gaudi_blocks.h" 12 #include "psoc_global_conf_regs.h" 13 #include "psoc_timestamp_regs.h" 14 #include "cpu_if_regs.h" 15 #include "mmu_up_regs.h" 16 #include "stlb_regs.h" 17 #include "dma0_qm_regs.h" 18 #include "dma1_qm_regs.h" 19 #include "dma2_qm_regs.h" 20 #include "dma3_qm_regs.h" 21 #include "dma4_qm_regs.h" 22 #include "dma5_qm_regs.h" 23 #include "dma6_qm_regs.h" 24 #include "dma7_qm_regs.h" 25 #include "dma0_core_regs.h" 26 #include "dma1_core_regs.h" 27 #include "dma2_core_regs.h" 28 #include "dma3_core_regs.h" 29 #include "dma4_core_regs.h" 30 #include "dma5_core_regs.h" 31 #include "dma6_core_regs.h" 32 #include "dma7_core_regs.h" 33 #include "mme0_ctrl_regs.h" 34 #include "mme1_ctrl_regs.h" 35 #include "mme2_ctrl_regs.h" 36 #include "mme3_ctrl_regs.h" 37 #include "mme0_qm_regs.h" 38 #include "mme2_qm_regs.h" 39 #include "tpc0_cfg_regs.h" 40 #include "tpc1_cfg_regs.h" 41 #include "tpc2_cfg_regs.h" 42 #include "tpc3_cfg_regs.h" 43 #include "tpc4_cfg_regs.h" 44 #include "tpc5_cfg_regs.h" 45 #include "tpc6_cfg_regs.h" 46 #include "tpc7_cfg_regs.h" 47 #include "tpc0_qm_regs.h" 48 #include "tpc1_qm_regs.h" 49 #include "tpc2_qm_regs.h" 50 #include "tpc3_qm_regs.h" 51 #include "tpc4_qm_regs.h" 52 #include "tpc5_qm_regs.h" 53 #include "tpc6_qm_regs.h" 54 #include "tpc7_qm_regs.h" 55 #include "dma_if_e_n_down_ch0_regs.h" 56 #include "dma_if_e_n_down_ch1_regs.h" 57 #include "dma_if_e_s_down_ch0_regs.h" 58 #include "dma_if_e_s_down_ch1_regs.h" 59 #include "dma_if_w_n_down_ch0_regs.h" 60 #include "dma_if_w_n_down_ch1_regs.h" 61 #include "dma_if_w_s_down_ch0_regs.h" 62 #include "dma_if_w_s_down_ch1_regs.h" 63 #include "dma_if_e_n_regs.h" 64 #include "dma_if_e_s_regs.h" 65 #include "dma_if_w_n_regs.h" 66 #include "dma_if_w_s_regs.h" 67 #include "nif_rtr_ctrl_0_regs.h" 68 #include "nif_rtr_ctrl_1_regs.h" 69 #include "nif_rtr_ctrl_2_regs.h" 70 #include "nif_rtr_ctrl_3_regs.h" 71 #include "nif_rtr_ctrl_4_regs.h" 72 #include "nif_rtr_ctrl_5_regs.h" 73 #include "nif_rtr_ctrl_6_regs.h" 74 #include "nif_rtr_ctrl_7_regs.h" 75 #include "sif_rtr_ctrl_0_regs.h" 76 #include "sif_rtr_ctrl_1_regs.h" 77 #include "sif_rtr_ctrl_2_regs.h" 78 #include "sif_rtr_ctrl_3_regs.h" 79 #include "sif_rtr_ctrl_4_regs.h" 80 #include "sif_rtr_ctrl_5_regs.h" 81 #include "sif_rtr_ctrl_6_regs.h" 82 #include "sif_rtr_ctrl_7_regs.h" 83 #include "psoc_etr_regs.h" 84 85 #include "dma0_qm_masks.h" 86 #include "mme0_qm_masks.h" 87 #include "tpc0_qm_masks.h" 88 #include "dma0_core_masks.h" 89 #include "tpc0_cfg_masks.h" 90 #include "psoc_global_conf_masks.h" 91 92 #include "psoc_pci_pll_regs.h" 93 #include "psoc_hbm_pll_regs.h" 94 #include "psoc_cpu_pll_regs.h" 95 96 #define GAUDI_ECC_MEM_SEL_OFFSET 0xF18 97 #define GAUDI_ECC_ADDRESS_OFFSET 0xF1C 98 #define GAUDI_ECC_SYNDROME_OFFSET 0xF20 99 #define GAUDI_ECC_MEM_INFO_CLR_OFFSET 0xF28 100 #define GAUDI_ECC_MEM_INFO_CLR_SERR_MASK BIT(8) 101 #define GAUDI_ECC_MEM_INFO_CLR_DERR_MASK BIT(9) 102 #define GAUDI_ECC_SERR0_OFFSET 0xF30 103 #define GAUDI_ECC_DERR0_OFFSET 0xF40 104 105 #define mmSYNC_MNGR_W_S_SYNC_MNGR_OBJS_SOB_OBJ_0 0x492000 106 #define mmSYNC_MNGR_W_S_SYNC_MNGR_OBJS_MON_PAY_ADDRL_0 0x494000 107 #define mmSYNC_MNGR_W_S_SYNC_MNGR_OBJS_MON_PAY_ADDRH_0 0x494800 108 #define mmSYNC_MNGR_W_S_SYNC_MNGR_OBJS_MON_PAY_DATA_0 0x495000 109 #define mmSYNC_MNGR_W_S_SYNC_MNGR_OBJS_MON_ARM_0 0x495800 110 #define mmSYNC_MNGR_W_S_SYNC_MNGR_OBJS_MON_STATUS_0 0x496000 111 #define mmSYNC_MNGR_E_S_SYNC_MNGR_OBJS_SOB_OBJ_0 0x4B2000 112 #define mmSYNC_MNGR_E_S_SYNC_MNGR_OBJS_MON_STATUS_0 0x4B6000 113 #define mmSYNC_MNGR_W_N_SYNC_MNGR_OBJS_SOB_OBJ_0 0x4D2000 114 #define mmSYNC_MNGR_W_N_SYNC_MNGR_OBJS_MON_STATUS_0 0x4D6000 115 #define mmSYNC_MNGR_E_N_SYNC_MNGR_OBJS_SOB_OBJ_0 0x4F2000 116 #define mmSYNC_MNGR_E_N_SYNC_MNGR_OBJS_SOB_OBJ_1 0x4F2004 117 #define mmSYNC_MNGR_E_N_SYNC_MNGR_OBJS_SOB_OBJ_2047 0x4F3FFC 118 #define mmSYNC_MNGR_E_N_SYNC_MNGR_OBJS_MON_PAY_ADDRL_0 0x4F4000 119 #define mmSYNC_MNGR_E_N_SYNC_MNGR_OBJS_MON_STATUS_0 0x4F6000 120 #define mmSYNC_MNGR_E_N_SYNC_MNGR_OBJS_MON_STATUS_511 0x4F67FC 121 122 #define mmSIF_RTR_0_LBW_RANGE_PROT_HIT_AW 0x300400 123 #define mmSIF_RTR_1_LBW_RANGE_PROT_HIT_AW 0x310400 124 #define mmSIF_RTR_2_LBW_RANGE_PROT_HIT_AW 0x320400 125 #define mmSIF_RTR_3_LBW_RANGE_PROT_HIT_AW 0x330400 126 #define mmSIF_RTR_4_LBW_RANGE_PROT_HIT_AW 0x340400 127 #define mmSIF_RTR_5_LBW_RANGE_PROT_HIT_AW 0x350400 128 #define mmSIF_RTR_6_LBW_RANGE_PROT_HIT_AW 0x360400 129 #define mmSIF_RTR_7_LBW_RANGE_PROT_HIT_AW 0x370400 130 131 #define mmSIF_RTR_0_LBW_RANGE_PROT_HIT_AR 0x300490 132 #define mmSIF_RTR_1_LBW_RANGE_PROT_HIT_AR 0x310490 133 #define mmSIF_RTR_2_LBW_RANGE_PROT_HIT_AR 0x320490 134 #define mmSIF_RTR_3_LBW_RANGE_PROT_HIT_AR 0x330490 135 #define mmSIF_RTR_4_LBW_RANGE_PROT_HIT_AR 0x340490 136 #define mmSIF_RTR_5_LBW_RANGE_PROT_HIT_AR 0x350490 137 #define mmSIF_RTR_6_LBW_RANGE_PROT_HIT_AR 0x360490 138 #define mmSIF_RTR_7_LBW_RANGE_PROT_HIT_AR 0x370490 139 140 #define mmSIF_RTR_0_LBW_RANGE_PROT_MIN_AW_0 0x300410 141 #define mmSIF_RTR_1_LBW_RANGE_PROT_MIN_AW_0 0x310410 142 #define mmSIF_RTR_2_LBW_RANGE_PROT_MIN_AW_0 0x320410 143 #define mmSIF_RTR_3_LBW_RANGE_PROT_MIN_AW_0 0x330410 144 #define mmSIF_RTR_4_LBW_RANGE_PROT_MIN_AW_0 0x340410 145 #define mmSIF_RTR_5_LBW_RANGE_PROT_MIN_AW_0 0x350410 146 #define mmSIF_RTR_6_LBW_RANGE_PROT_MIN_AW_0 0x360410 147 #define mmSIF_RTR_7_LBW_RANGE_PROT_MIN_AW_0 0x370410 148 149 #define mmSIF_RTR_0_LBW_RANGE_PROT_MAX_AW_0 0x300450 150 #define mmSIF_RTR_1_LBW_RANGE_PROT_MAX_AW_0 0x310450 151 #define mmSIF_RTR_2_LBW_RANGE_PROT_MAX_AW_0 0x320450 152 #define mmSIF_RTR_3_LBW_RANGE_PROT_MAX_AW_0 0x330450 153 #define mmSIF_RTR_4_LBW_RANGE_PROT_MAX_AW_0 0x340450 154 #define mmSIF_RTR_5_LBW_RANGE_PROT_MAX_AW_0 0x350450 155 #define mmSIF_RTR_6_LBW_RANGE_PROT_MAX_AW_0 0x360450 156 #define mmSIF_RTR_7_LBW_RANGE_PROT_MAX_AW_0 0x370450 157 158 #define mmSIF_RTR_0_LBW_RANGE_PROT_MIN_AR_0 0x3004A0 159 #define mmSIF_RTR_1_LBW_RANGE_PROT_MIN_AR_0 0x3104A0 160 #define mmSIF_RTR_2_LBW_RANGE_PROT_MIN_AR_0 0x3204A0 161 #define mmSIF_RTR_3_LBW_RANGE_PROT_MIN_AR_0 0x3304A0 162 #define mmSIF_RTR_4_LBW_RANGE_PROT_MIN_AR_0 0x3404A0 163 #define mmSIF_RTR_5_LBW_RANGE_PROT_MIN_AR_0 0x3504A0 164 #define mmSIF_RTR_6_LBW_RANGE_PROT_MIN_AR_0 0x3604A0 165 #define mmSIF_RTR_7_LBW_RANGE_PROT_MIN_AR_0 0x3704A0 166 167 #define mmSIF_RTR_0_LBW_RANGE_PROT_MAX_AR_0 0x3004E0 168 #define mmSIF_RTR_1_LBW_RANGE_PROT_MAX_AR_0 0x3104E0 169 #define mmSIF_RTR_2_LBW_RANGE_PROT_MAX_AR_0 0x3204E0 170 #define mmSIF_RTR_3_LBW_RANGE_PROT_MAX_AR_0 0x3304E0 171 #define mmSIF_RTR_4_LBW_RANGE_PROT_MAX_AR_0 0x3404E0 172 #define mmSIF_RTR_5_LBW_RANGE_PROT_MAX_AR_0 0x3504E0 173 #define mmSIF_RTR_6_LBW_RANGE_PROT_MAX_AR_0 0x3604E0 174 #define mmSIF_RTR_7_LBW_RANGE_PROT_MAX_AR_0 0x3704E0 175 176 #define mmNIF_RTR_0_LBW_RANGE_PROT_HIT_AW 0x380400 177 #define mmNIF_RTR_1_LBW_RANGE_PROT_HIT_AW 0x390400 178 #define mmNIF_RTR_2_LBW_RANGE_PROT_HIT_AW 0x3A0400 179 #define mmNIF_RTR_3_LBW_RANGE_PROT_HIT_AW 0x3B0400 180 #define mmNIF_RTR_4_LBW_RANGE_PROT_HIT_AW 0x3C0400 181 #define mmNIF_RTR_5_LBW_RANGE_PROT_HIT_AW 0x3D0400 182 #define mmNIF_RTR_6_LBW_RANGE_PROT_HIT_AW 0x3E0400 183 #define mmNIF_RTR_7_LBW_RANGE_PROT_HIT_AW 0x3F0400 184 185 #define mmNIF_RTR_0_LBW_RANGE_PROT_HIT_AR 0x380490 186 #define mmNIF_RTR_1_LBW_RANGE_PROT_HIT_AR 0x390490 187 #define mmNIF_RTR_2_LBW_RANGE_PROT_HIT_AR 0x3A0490 188 #define mmNIF_RTR_3_LBW_RANGE_PROT_HIT_AR 0x3B0490 189 #define mmNIF_RTR_4_LBW_RANGE_PROT_HIT_AR 0x3C0490 190 #define mmNIF_RTR_5_LBW_RANGE_PROT_HIT_AR 0x3D0490 191 #define mmNIF_RTR_6_LBW_RANGE_PROT_HIT_AR 0x3E0490 192 #define mmNIF_RTR_7_LBW_RANGE_PROT_HIT_AR 0x3F0490 193 194 #define mmNIF_RTR_0_LBW_RANGE_PROT_MIN_AW_0 0x380410 195 #define mmNIF_RTR_1_LBW_RANGE_PROT_MIN_AW_0 0x390410 196 #define mmNIF_RTR_2_LBW_RANGE_PROT_MIN_AW_0 0x3A0410 197 #define mmNIF_RTR_3_LBW_RANGE_PROT_MIN_AW_0 0x3B0410 198 #define mmNIF_RTR_4_LBW_RANGE_PROT_MIN_AW_0 0x3C0410 199 #define mmNIF_RTR_5_LBW_RANGE_PROT_MIN_AW_0 0x3D0410 200 #define mmNIF_RTR_6_LBW_RANGE_PROT_MIN_AW_0 0x3E0410 201 #define mmNIF_RTR_7_LBW_RANGE_PROT_MIN_AW_0 0x3F0410 202 203 #define mmNIF_RTR_0_LBW_RANGE_PROT_MAX_AW_0 0x380450 204 #define mmNIF_RTR_1_LBW_RANGE_PROT_MAX_AW_0 0x390450 205 #define mmNIF_RTR_2_LBW_RANGE_PROT_MAX_AW_0 0x3A0450 206 #define mmNIF_RTR_3_LBW_RANGE_PROT_MAX_AW_0 0x3B0450 207 #define mmNIF_RTR_4_LBW_RANGE_PROT_MAX_AW_0 0x3C0450 208 #define mmNIF_RTR_5_LBW_RANGE_PROT_MAX_AW_0 0x3D0450 209 #define mmNIF_RTR_6_LBW_RANGE_PROT_MAX_AW_0 0x3E0450 210 #define mmNIF_RTR_7_LBW_RANGE_PROT_MAX_AW_0 0x3F0450 211 212 #define mmNIF_RTR_0_LBW_RANGE_PROT_MIN_AR_0 0x3804A0 213 #define mmNIF_RTR_1_LBW_RANGE_PROT_MIN_AR_0 0x3904A0 214 #define mmNIF_RTR_2_LBW_RANGE_PROT_MIN_AR_0 0x3A04A0 215 #define mmNIF_RTR_3_LBW_RANGE_PROT_MIN_AR_0 0x3B04A0 216 #define mmNIF_RTR_4_LBW_RANGE_PROT_MIN_AR_0 0x3C04A0 217 #define mmNIF_RTR_5_LBW_RANGE_PROT_MIN_AR_0 0x3D04A0 218 #define mmNIF_RTR_6_LBW_RANGE_PROT_MIN_AR_0 0x3E04A0 219 #define mmNIF_RTR_7_LBW_RANGE_PROT_MIN_AR_0 0x3F04A0 220 221 #define mmNIF_RTR_0_LBW_RANGE_PROT_MAX_AR_0 0x3804E0 222 #define mmNIF_RTR_1_LBW_RANGE_PROT_MAX_AR_0 0x3904E0 223 #define mmNIF_RTR_2_LBW_RANGE_PROT_MAX_AR_0 0x3A04E0 224 #define mmNIF_RTR_3_LBW_RANGE_PROT_MAX_AR_0 0x3B04E0 225 #define mmNIF_RTR_4_LBW_RANGE_PROT_MAX_AR_0 0x3C04E0 226 #define mmNIF_RTR_5_LBW_RANGE_PROT_MAX_AR_0 0x3D04E0 227 #define mmNIF_RTR_6_LBW_RANGE_PROT_MAX_AR_0 0x3E04E0 228 #define mmNIF_RTR_7_LBW_RANGE_PROT_MAX_AR_0 0x3F04E0 229 230 #define mmDMA_IF_W_S_DOWN_RSP_MID_WGHT_0 0x489030 231 #define mmDMA_IF_W_S_DOWN_RSP_MID_WGHT_1 0x489034 232 233 #define mmDMA_IF_E_S_DOWN_RSP_MID_WGHT_0 0x4A9030 234 #define mmDMA_IF_E_S_DOWN_RSP_MID_WGHT_1 0x4A9034 235 236 #define mmDMA_IF_W_N_DOWN_RSP_MID_WGHT_0 0x4C9030 237 #define mmDMA_IF_W_N_DOWN_RSP_MID_WGHT_1 0x4C9034 238 239 #define mmDMA_IF_E_N_DOWN_RSP_MID_WGHT_0 0x4E9030 240 #define mmDMA_IF_E_N_DOWN_RSP_MID_WGHT_1 0x4E9034 241 242 #define mmMME1_QM_GLBL_CFG0 0xE8000 243 #define mmMME1_QM_GLBL_STS0 0xE8038 244 245 #define mmMME0_SBAB_SB_STALL 0x4002C 246 #define mmMME0_SBAB_ARUSER0 0x40034 247 #define mmMME0_SBAB_ARUSER1 0x40038 248 #define mmMME0_SBAB_PROT 0x40050 249 250 #define mmMME1_SBAB_SB_STALL 0xC002C 251 #define mmMME1_SBAB_ARUSER0 0xC0034 252 #define mmMME1_SBAB_ARUSER1 0xC0038 253 #define mmMME1_SBAB_PROT 0xC0050 254 255 #define mmMME2_SBAB_SB_STALL 0x14002C 256 #define mmMME2_SBAB_ARUSER0 0x140034 257 #define mmMME2_SBAB_ARUSER1 0x140038 258 #define mmMME2_SBAB_PROT 0x140050 259 260 #define mmMME3_SBAB_SB_STALL 0x1C002C 261 #define mmMME3_SBAB_ARUSER0 0x1C0034 262 #define mmMME3_SBAB_ARUSER1 0x1C0038 263 #define mmMME3_SBAB_PROT 0x1C0050 264 265 #define mmMME0_ACC_ACC_STALL 0x20028 266 #define mmMME0_ACC_WBC 0x20038 267 #define mmMME0_ACC_PROT 0x20050 268 269 #define mmMME1_ACC_ACC_STALL 0xA0028 270 #define mmMME1_ACC_WBC 0xA0038 271 #define mmMME1_ACC_PROT 0xA0050 272 273 #define mmMME2_ACC_ACC_STALL 0x120028 274 #define mmMME2_ACC_WBC 0x120038 275 #define mmMME2_ACC_PROT 0x120050 276 277 #define mmMME3_ACC_ACC_STALL 0x1A0028 278 #define mmMME3_ACC_WBC 0x1A0038 279 #define mmMME3_ACC_PROT 0x1A0050 280 281 #define mmGIC_DISTRIBUTOR__5_GICD_SETSPI_NSR 0x800040 282 283 #define mmPSOC_EFUSE_READ 0xC4A000 284 #define mmPSOC_EFUSE_DATA_0 0xC4A080 285 286 #define mmPCIE_WRAP_MAX_OUTSTAND 0xC01B20 287 #define mmPCIE_WRAP_LBW_PROT_OVR 0xC01B48 288 #define mmPCIE_WRAP_HBW_DRAIN_CFG 0xC01D54 289 #define mmPCIE_WRAP_LBW_DRAIN_CFG 0xC01D5C 290 291 #define mmPCIE_MSI_INTR_0 0xC13000 292 293 #define mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG 0xC02000 294 295 #define mmPCIE_AUX_FLR_CTRL 0xC07394 296 #define mmPCIE_AUX_DBI 0xC07490 297 298 #endif /* ASIC_REG_GAUDI_REGS_H_ */ 299