 |
NMSIS-Core
Version 1.6.0
NMSIS-Core support for Nuclei processor-based devices
|
18 #ifndef __CORE_FEATURE_SMPCC_H__
19 #define __CORE_FEATURE_SMPCC_H__
40 #include "core_feature_base.h"
41 #include "core_feature_iinfo.h"
43 #if defined(__SMPCC_PRESENT) && (__SMPCC_PRESENT == 1)
144 #define SMPCC_CTRL_CC_EN_Pos 0U
145 #define SMPCC_CTRL_CC_EN_Msk (0x1UL << SMPCC_CTRL_CC_EN_Pos)
146 #define SMPCC_CTRL_CC_EN_ENABLE 1U
147 #define SMPCC_CTRL_CC_EN_DISABLE 0U
149 #define SMPCC_CTRL_CC_ECC_EN_Pos 1U
150 #define SMPCC_CTRL_CC_ECC_EN_Msk (0x1UL << SMPCC_CTRL_CC_ECC_EN_Pos)
151 #define SMPCC_CTRL_CC_ECC_EN_ENABLE 1U
152 #define SMPCC_CTRL_CC_ECC_EN_DISABLE 0U
154 #define SMPCC_CTRL_CC_ECC_EXCP_EN_Pos 2U
155 #define SMPCC_CTRL_CC_ECC_EXCP_EN_Msk (0x1UL << SMPCC_CTRL_CC_ECC_EXCP_EN_Pos)
156 #define SMPCC_CTRL_CC_ECC_EXCP_EN_ENABLE 1U
157 #define SMPCC_CTRL_CC_ECC_EXCP_EN_DISABLE 0U
159 #define SMPCC_CTRL_LOCK_ECC_CFG_Pos 3U
160 #define SMPCC_CTRL_LOCK_ECC_CFG_Msk (0x1UL << SMPCC_CTRL_LOCK_ECC_CFG_Pos)
161 #define SMPCC_CTRL_LOCK_ECC_CFG_LOCK 1U
163 #define SMPCC_CTRL_LOCK_ECC_ERR_INJ_Pos 4U
164 #define SMPCC_CTRL_LOCK_ECC_ERR_INJ_Msk (0x1UL << SMPCC_CTRL_LOCK_ECC_ERR_INJ_Pos)
165 #define SMPCC_CTRL_LOCK_ECC_ERR_INJ_LOCK 1U
167 #define SMPCC_CTRL_RECV_ERR_IRQ_EN_Pos 5U
168 #define SMPCC_CTRL_RECV_ERR_IRQ_EN_Msk (0x1UL << SMPCC_CTRL_RECV_ERR_IRQ_EN_Pos)
169 #define SMPCC_CTRL_RECV_ERR_IRQ_EN_ENABLE 1U
170 #define SMPCC_CTRL_RECV_ERR_IRQ_EN_DISABLE 0U
172 #define SMPCC_CTRL_FATAL_ERR_IRQ_EN_Pos 6U
173 #define SMPCC_CTRL_FATAL_ERR_IRQ_EN_Msk (0x1UL << SMPCC_CTRL_FATAL_ERR_IRQ_EN_Pos)
174 #define SMPCC_CTRL_FATAL_ERR_IRQ_EN_ENABLE 1U
175 #define SMPCC_CTRL_FATAL_ERR_IRQ_EN_DISABLE 0U
177 #define SMPCC_CTRL_BUS_ERR_PEND_Pos 7U
178 #define SMPCC_CTRL_BUS_ERR_PEND_Msk (0x1UL << SMPCC_CTRL_BUS_ERR_PEND_Pos)
180 #define SMPCC_CTRL_BUS_ERR_IRQ_EN_Pos 8U
181 #define SMPCC_CTRL_BUS_ERR_IRQ_EN_Msk (0x1UL << SMPCC_CTRL_BUS_ERR_IRQ_EN_Pos)
182 #define SMPCC_CTRL_BUS_ERR_IRQ_EN_ENABLE 1U
183 #define SMPCC_CTRL_BUS_ERR_IRQ_EN_DISABLE 0U
185 #define SMPCC_CTRL_SUP_CMD_EN_Pos 9U
186 #define SMPCC_CTRL_SUP_CMD_EN_Msk (0x1UL << SMPCC_CTRL_SUP_CMD_EN_Pos)
187 #define SMPCC_CTRL_SUP_CMD_EN_ENABLE 1U
188 #define SMPCC_CTRL_SUP_CMD_EN_DISABLE 0U
190 #define SMPCC_CTRL_USE_CMD_EN_Pos 10U
191 #define SMPCC_CTRL_USE_CMD_EN_Msk (0x1UL << SMPCC_CTRL_USE_CMD_EN_Pos)
192 #define SMPCC_CTRL_USE_CMD_EN_ENABLE 1U
193 #define SMPCC_CTRL_USE_CMD_EN_DISABLE 0U
195 #define SMPCC_CTRL_ECC_CHK_EN_Pos 11U
196 #define SMPCC_CTRL_ECC_CHK_EN_Msk (0x1UL << SMPCC_CTRL_ECC_CHK_EN_Pos)
197 #define SMPCC_CTRL_ECC_CHK_EN_ENABLE 1U
198 #define SMPCC_CTRL_ECC_CHK_EN_DISABLE 0U
200 #define SMPCC_CTRL_CLM_ECC_EN_Pos 12U
201 #define SMPCC_CTRL_CLM_ECC_EN_Msk (0x1UL << SMPCC_CTRL_CLM_ECC_EN_Pos)
202 #define SMPCC_CTRL_CLM_ECC_EN_ENABLE 1U
203 #define SMPCC_CTRL_CLM_ECC_EN_DISABLE 0U
205 #define SMPCC_CTRL_CLM_EXCP_EN_Pos 13U
206 #define SMPCC_CTRL_CLM_EXCP_EN_Msk (0x1UL << SMPCC_CTRL_CLM_EXCP_EN_Pos)
207 #define SMPCC_CTRL_CLM_EXCP_EN_ENABLE 1U
208 #define SMPCC_CTRL_CLM_EXCP_EN_DISABLE 0U
210 #define SMPCC_CTRL_CLM_ECC_CHK_EN_Pos 14U
211 #define SMPCC_CTRL_CLM_ECC_CHK_EN_Msk (0x1UL << SMPCC_CTRL_CLM_ECC_CHK_EN_Pos)
212 #define SMPCC_CTRL_CLM_ECC_CHK_EN_ENABLE 1U
213 #define SMPCC_CTRL_CLM_ECC_CHK_EN_DISABLE 0U
215 #define SMPCC_CTRL_PF_SH_CL_EN_Pos 15U
216 #define SMPCC_CTRL_PF_SH_CL_EN_Msk (0x1UL << SMPCC_CTRL_PF_SH_CL_EN_Pos)
217 #define SMPCC_CTRL_PF_SH_CL_EN_ENABLE 1U
218 #define SMPCC_CTRL_PF_SH_CL_EN_DISABLE 0U
220 #define SMPCC_CTRL_PF_L2_EARLY_EN_Pos 16U
221 #define SMPCC_CTRL_PF_L2_EARLY_EN_Msk (0x1UL << SMPCC_CTRL_PF_L2_EARLY_EN_Pos)
222 #define SMPCC_CTRL_PF_L2_EARLY_EN_ENABLE 1U
223 #define SMPCC_CTRL_PF_L2_EARLY_EN_DISABLE 0U
225 #define SMPCC_CTRL_PF_BIU_OUTS_EN_Pos 17U
226 #define SMPCC_CTRL_PF_BIU_OUTS_EN_Msk (0x1UL << SMPCC_CTRL_PF_BIU_OUTS_EN_Pos)
227 #define SMPCC_CTRL_PF_BIU_OUTS_EN_ENABLE 1U
228 #define SMPCC_CTRL_PF_BIU_OUTS_EN_DISABLE 0U
230 #define SMPCC_CTRL_I_SNOOP_D_EN_Pos 18U
231 #define SMPCC_CTRL_I_SNOOP_D_EN_Msk (0x1UL << SMPCC_CTRL_I_SNOOP_D_EN_Pos)
232 #define SMPCC_CTRL_I_SNOOP_D_EN_ENABLE 1U
233 #define SMPCC_CTRL_I_SNOOP_D_EN_DISABLE 0U
235 #define SMPCC_CTRL_IOCC_ERR_Pos 19U
236 #define SMPCC_CTRL_IOCC_ERR_Msk (0x1UL << SMPCC_CTRL_IOCC_ERR_Pos)
238 #define SMPCC_CTRL_EARLY_WR_ERR_Pos 20U
239 #define SMPCC_CTRL_EARLY_WR_ERR_Msk (0x1UL << SMPCC_CTRL_EARLY_WR_ERR_Pos)
241 #define SMPCC_CTRL_PF_NO_WB_Pos 21U
242 #define SMPCC_CTRL_PF_NO_WB_Msk (0x1UL << SMPCC_CTRL_PF_NO_WB_Pos)
243 #define SMPCC_CTRL_PF_NO_WB_ENABLE 1U
244 #define SMPCC_CTRL_PF_NO_WB_DISABLE 0U
285 #define SMPCC_ERR_INJ_INJDATA_Pos 0U
286 #define SMPCC_ERR_INJ_INJDATA_Msk (0x1UL << SMPCC_ERR_INJ_INJDATA_Pos)
287 #define SMPCC_ERR_INJ_INJDATA_ENABLE 1U
288 #define SMPCC_ERR_INJ_INJDATA_DISABLE 0U
290 #define SMPCC_ERR_INJ_INJTAG_Pos 1U
291 #define SMPCC_ERR_INJ_INJTAG_Msk (0x1UL << SMPCC_ERR_INJ_INJTAG_Pos)
292 #define SMPCC_ERR_INJ_INJTAG_ENABLE 1U
293 #define SMPCC_ERR_INJ_INJTAG_DISABLE 0U
295 #define SMPCC_ERR_INJ_INJCLM_Pos 2U
296 #define SMPCC_ERR_INJ_INJCLM_Msk (0x1UL << SMPCC_ERR_INJ_INJCLM_Pos)
297 #define SMPCC_ERR_INJ_INJCLM_ENABLE 1U
298 #define SMPCC_ERR_INJ_INJCLM_DISABLE 0U
300 #define SMPCC_ERR_INJ_INJMODE_Pos 3U
301 #define SMPCC_ERR_INJ_INJMODE_Msk (0x1UL << SMPCC_ERR_INJ_INJMODE_Pos)
302 #define SMPCC_ERR_INJ_INJMODE_DIRECT 0U
303 #define SMPCC_ERR_INJ_INJMODE_XOR 1U
305 #define SMPCC_ERR_INJ_CS_Pos 4U
306 #define SMPCC_ERR_INJ_CS_Msk (0x1UL << SMPCC_ERR_INJ_CS_Pos)
307 #define SMPCC_ERR_INJ_CS_START 1U
309 #define SMPCC_ERR_INJ_INJECCCODE_Pos 24U
310 #define SMPCC_ERR_INJ_INJECCCODE_Msk (0xFFUL << SMPCC_ERR_INJ_INJECCCODE_Pos)
380 #define SMPCC_CLIERRSTS_READ_BUS_ERR_Pos 0U
381 #define SMPCC_CLIERRSTS_READ_BUS_ERR_Msk (0x1UL << SMPCC_CLIERRSTS_READ_BUS_ERR_Pos)
383 #define SMPCC_CLIERRSTS_WRITE_BUS_ERR_Pos 1U
384 #define SMPCC_CLIERRSTS_WRITE_BUS_ERR_Msk (0x1UL << SMPCC_CLIERRSTS_WRITE_BUS_ERR_Pos)
386 #define SMPCC_CLIERRSTS_CC_SCU_ECC_ERR_Pos 2U
387 #define SMPCC_CLIERRSTS_CC_SCU_ECC_ERR_Msk (0x1UL << SMPCC_CLIERRSTS_CC_SCU_ECC_ERR_Pos)
389 #define SMPCC_CLIERRSTS_IOCP_BUS_ERR_Pos 3U
390 #define SMPCC_CLIERRSTS_IOCP_BUS_ERR_Msk (0x1UL << SMPCC_CLIERRSTS_IOCP_BUS_ERR_Pos)
469 #define SMPCC_STMCTRL_RD_STM_EN_Pos 0U
470 #define SMPCC_STMCTRL_RD_STM_EN_Msk (0x1UL << SMPCC_STMCTRL_RD_STM_EN_Pos)
471 #define SMPCC_STMCTRL_RD_STM_EN_ENABLE 1U
472 #define SMPCC_STMCTRL_RD_STM_EN_DISABLE 0U
474 #define SMPCC_STMCTRL_WR_STM_EN_Pos 1U
475 #define SMPCC_STMCTRL_WR_STM_EN_Msk (0x1UL << SMPCC_STMCTRL_WR_STM_EN_Pos)
476 #define SMPCC_STMCTRL_WR_STM_EN_ENABLE 1U
477 #define SMPCC_STMCTRL_WR_STM_EN_DISABLE 0U
479 #define SMPCC_STMCTRL_TRANS_ALLOC_Pos 2U
480 #define SMPCC_STMCTRL_TRANS_ALLOC_Msk (0x1UL << SMPCC_STMCTRL_TRANS_ALLOC_Pos)
481 #define SMPCC_STMCTRL_TRANS_ALLOC_ENABLE 1U
482 #define SMPCC_STMCTRL_TRANS_ALLOC_DISABLE 0U
484 #define SMPCC_STMCTRL_RD_MERGE_EN_Pos 3U
485 #define SMPCC_STMCTRL_RD_MERGE_EN_Msk (0x1UL << SMPCC_STMCTRL_RD_MERGE_EN_Pos)
486 #define SMPCC_STMCTRL_RD_MERGE_EN_ENABLE 1U
487 #define SMPCC_STMCTRL_RD_MERGE_EN_DISABLE 0U
489 #define SMPCC_STMCTRL_CROSS_EN_Pos 4U
490 #define SMPCC_STMCTRL_CROSS_EN_Msk (0x1UL << SMPCC_STMCTRL_CROSS_EN_Pos)
491 #define SMPCC_STMCTRL_CROSS_EN_ENABLE 1U
492 #define SMPCC_STMCTRL_CROSS_EN_DISABLE 0U
512 #define SMPCC_STMCFG_RD_BYTE_THRE_Pos 0U
513 #define SMPCC_STMCFG_RD_BYTE_THRE_Msk (0x3FFUL << SMPCC_STMCFG_RD_BYTE_THRE_Pos)
515 #define SMPCC_STMCFG_RD_DEGREE_Pos 12U
516 #define SMPCC_STMCFG_RD_DEGREE_Msk (0x7UL << SMPCC_STMCFG_RD_DEGREE_Pos)
518 #define SMPCC_STMCFG_RD_DISTANCE_Pos 16U
519 #define SMPCC_STMCFG_RD_DISTANCE_Msk (0x7UL << SMPCC_STMCFG_RD_DISTANCE_Pos)
521 #define SMPCC_STMCFG_WR_BYTE_THRE_Pos 20U
522 #define SMPCC_STMCFG_WR_BYTE_THRE_Msk (0x7FFUL << SMPCC_STMCFG_WR_BYTE_THRE_Pos)
548 #define SMPCC_DFF_PROT_CHK_EN_Pos 0U
549 #define SMPCC_DFF_PROT_CHK_EN_Msk (0x3UL << SMPCC_DFF_PROT_CHK_EN_Pos)
550 #define SMPCC_DFF_PROT_CHK_EN_ENABLE 2U
551 #define SMPCC_DFF_PROT_CHK_EN_DISABLE 1U
578 #define SMPCC_NS_RG_CFG_Pos 0U
579 #define SMPCC_NS_RG_CFG_Msk (0x3UL << SMPCC_NS_RG_CFG_Pos)
580 #define SMPCC_NS_RG_CFG_DISABLE 0x00U
581 #define SMPCC_NS_RG_CFG_NACL 0x10U
582 #define SMPCC_NS_RG_CFG_NAPOT 0x11U
597 #define SMPCC_PMON_EVENT_SEL_Pos 0U
598 #define SMPCC_PMON_EVENT_SEL_Msk (0xFFFFUL << SMPCC_PMON_EVENT_SEL_Pos)
599 #define SMPCC_PMON_EVENT_DISABLE 0U
600 #define SMPCC_PMON_EVENT_DATA_READ_COUNT 1U
601 #define SMPCC_PMON_EVENT_DATA_WRITE_COUNT 2U
602 #define SMPCC_PMON_EVENT_INSTR_READ_COUNT 3U
603 #define SMPCC_PMON_EVENT_DATA_READ_HIT_COUNT 4U
604 #define SMPCC_PMON_EVENT_DATA_WRITE_REPLACE_COUNT 5U
605 #define SMPCC_PMON_EVENT_DATA_READ_REPLACE_COUNT 6U
606 #define SMPCC_PMON_EVENT_DATA_READ_MISS_COUNT 7U
607 #define SMPCC_PMON_EVENT_INSTR_READ_HIT_COUNT 8U
608 #define SMPCC_PMON_EVENT_INSTR_READ_MISS_COUNT 9U
609 #define SMPCC_PMON_EVENT_INSTR_READ_REPLACE_COUNT 10U
611 #define SMPCC_PMON_CLIENT_SEL_Pos 16U
612 #define SMPCC_PMON_CLIENT_SEL_Msk (0x1FUL << SMPCC_PMON_CLIENT_SEL_Pos)
614 #define SMPCC_PMON_EVENT(event, client) \
615 (_VAL2FLD(SMPCC_PMON_EVENT_SEL, event) | \
616 _VAL2FLD(SMPCC_PMON_CLIENT_SEL, client))
751 #ifndef __SMPCC_BASEADDR
753 #error "__SMPCC_BASEADDR is not defined, please check!"
757 #define SMPCC_BASE __SMPCC_BASEADDR
758 #define SMPCC ((SMPCC_Type *)SMPCC_BASE)
778 return SMPCC->SMP_VER;
789 return SMPCC->SMP_CFG.b.cc_present;
800 return SMPCC->SMP_CFG.b.smp_core_num + 1;
811 return SMPCC->SMP_CFG.b.iocp_num;
822 return SMPCC->SMP_CFG.b.pmon_num;
833 return 1U <<
SMPCC->CC_CFG.b.cc_set;
844 return SMPCC->CC_CFG.b.cc_way + 1;
855 return 1 << (
SMPCC->CC_CFG.b.cc_lsize + 2);
866 return SMPCC->CC_CFG.b.cc_ecc;
879 SMPCC->SMP_ENB.b.smp_enable |= client_msk;
892 SMPCC->SMP_ENB.b.smp_enable &= ~client_msk;
929 return SMPCC->CC_CTRL.b.cc_en;
941 return (
SMPCC->SNOOP_PENDING.b.snoop_pending & client_msk) != 0;
953 return (
SMPCC->TRANS_PENDING.b.trans_pending & client_msk) != 0;
981 #if (__CPU_PA_SIZE > 32)
982 SMPCC->CLM_ADDR_BASE.clm_base64 = addr;
984 SMPCC->CLM_ADDR_BASE.clm32.clm_base32 = (uint32_t)addr;
986 SMPCC->CLM_WAY_EN = 0xFFFFU;
1016 #if (__CPU_PA_SIZE > 32)
1017 SMPCC->CLM_ADDR_BASE.clm_base64 = addr;
1019 SMPCC->CLM_ADDR_BASE.clm32.clm_base32 = (uint32_t)addr;
1021 SMPCC->CLM_WAY_EN = way_msk;
1034 SMPCC->CLM_WAY_EN = 0x0000U;
1047 SMPCC->CC_CTRL.w = val;
1060 return SMPCC->CC_CTRL.w;
1181 SMPCC->CC_CTRL.b.bus_err_pend = 0;
1494 return SMPCC->CC_RECV_CNT.b.cnt;
1506 SMPCC->CC_RECV_CNT.w = 0;
1519 return SMPCC->CC_FATAL_CNT.b.cnt;
1531 SMPCC->CC_FATAL_CNT.w = 0;
1544 SMPCC->CC_RECV_THV.b.cnt = threshold;
1557 return SMPCC->CC_RECV_THV.b.cnt;
1570 SMPCC->CC_FATAL_THV.b.cnt = threshold;
1583 return SMPCC->CC_FATAL_THV.b.cnt;
1595 return SMPCC->CLIENT_ERR_STATUS[client_id].w;
1608 SMPCC->STM_CTRL.w = val;
1621 return SMPCC->STM_CTRL.w;
1820 return SMPCC->SMP_PMON_SEL[idx].w;
1836 return SMPCC->SMP_PMON_CNT[idx];
1851 SMPCC->SMP_PMON_CNT[idx] = 0;
1863 return SMPCC->CLIENT_ERR_ADDR[client_id];
1875 SMPCC->CLIENT_WAY_MASK[client_id].w = way_msk;
1886 return SMPCC->CC_ERR_INJ.b.inj_mode;
1898 _VAL2FLD(SMPCC_ERR_INJ_INJECCCODE, ecc_code);
1901 #if defined(__CCM_PRESENT) && (__CCM_PRESENT == 1)
1915 if (IINFO_IsPreciseECCInjSupported()) {
1916 SMPCC->CC_ECC_INJ_ADDR = (
unsigned long)addr;
1917 SMPCC->CC_ECC_INJ_WAY.b.num = way;
1918 SMPCC->CC_ECC_INJ_DATA = *addr;
1927 if (IINFO_IsPreciseECCInjSupported()) {
1954 if (IINFO_IsPreciseECCInjSupported()) {
1955 SMPCC->CC_ECC_INJ_ADDR = (
unsigned long)addr;
1956 SMPCC->CC_ECC_INJ_WAY.b.num = way;
1957 SMPCC->CC_ECC_INJ_DATA = *addr;
1966 if (IINFO_IsPreciseECCInjSupported()) {
1990 if (IINFO_IsPreciseECCInjSupported()) {
1991 SMPCC->CC_ECC_INJ_ADDR = (
unsigned long)addr;
1993 SMPCC->CC_ECC_INJ_WAY.b.num = 1;
1994 SMPCC->CC_ECC_INJ_DATA = *addr;
2002 if (IINFO_IsPreciseECCInjSupported()) {
Access to the structure of SMPCC Memory Map.
Union type to access ECC_ERR_MSK register.
#define SMPCC_ERR_INJ_INJDATA_DISABLE
SMPCC CC_ERR_INJ INJDATA Disable.
#define __IM
Defines 'read only' structure member permissions.
#define SMPCC_CTRL_PF_NO_WB_DISABLE
SMPCC CC_CTRL PF_NO_WB Disable.
__IM uint32_t mic_ver
bit: 0..7 micro version number
__IM uint32_t _reserved
bit: 4..31 reserved
__STATIC_FORCEINLINE void SMPCC_CCacheErrRestore(void *addr)
Restore cluster cache after error injection.
__IM uint32_t cc_present
bit: 0 cluster cache present or not
__IOM uint32_t clm_ecc_en
bit: 12 clm ecc enable bit
__STATIC_FORCEINLINE void SMPCC_DisableCCacheECCExcp(void)
Disable Cluster Cache ECC Exception.
__IOM uint32_t clm_ecc_chk_en
bit: 14 clm ecc check enable bit
__IOM uint32_t cmd
bit: 0..4 cluster cache maintain command code
__IOM CC_INV_RANGE_START_Type CC_INV_RANGE_START
Offset: 0x724 (R/W) Cluster Cache invalid range start address register.
uint32_t w
Type used for word access.
__IOM CC_CMD_Type CC_mCMD
Offset: 0x014 (R/W) machine mode CC command and status register.
#define SMPCC_STMCTRL_TRANS_ALLOC_ENABLE
SMPCC TRANSLATE ALLOC ATTRIBUTE Enable.
__IOM CLM_ADDR_BASE_Type CLM_ADDR_BASE
Offset: 0x0D0 (R/W) Cluster Local Memory base address.
__STATIC_FORCEINLINE void SMPCC_EnableSModeCmd(void)
Enable Supervisor Mode Commands.
__STATIC_FORCEINLINE void SMPCC_SetCCacheControl(uint32_t val)
Set Cluster Cache Control register.
__IOM uint32_t chk_en
bit: 0..1 register protect check enable.
#define SMPCC_PMON_EVENT(event, client)
__STATIC_FORCEINLINE void SMPCC_EnableICacheSnoopDCache(void)
Enable ICache to Snoop DCache.
__IOM uint32_t rd_attri
bit: 3 Remap allocate and non-alloc.
__IOM uint32_t pf_l2_early_en
bit: 16 enable L2 prefetch to initialize external bus read access while lookup the cluster cache
__STATIC_FORCEINLINE void SMPCC_EnableFatalErrIrq(void)
Enable Fatal Error Interrupt.
Union type to access CC_FATAL_CNT register.
Union type to access STM_TIMEOUT register.
__IOM uint32_t cc_ecc_en
bit: 1 cluster cache ECC enable bit
#define SMPCC_CTRL_SUP_CMD_EN_DISABLE
SMPCC CC_CTRL SUP_CMD_EN Disable.
__IOM uint32_t cs
bit: 4 Precise injection error control and status.
#define SMPCC_CTRL_CC_EN_DISABLE
SMPCC CC_CTRL CC_EN Disable.
__IOM uint32_t sup_cmd_en
bit: 9 enable S mode can operate register CC_sCMD and SMP_PMON_SEL
__IOM CC_ECC_INJ_ADDR_Type CC_ECC_INJ_ADDR
Offset: 0x744 (R/W) Cluster Cache ECC inject address regsiter.
__STATIC_FORCEINLINE void SMPCC_ClearBusErrPending(void)
Clear Bus Error Pending Status.
__IOM uint32_t use_cmd_en
bit: 10 enable U mode can operate register CC_uCMD and SMP_PMON_SEL
__STATIC_FORCEINLINE void SMPCC_DisableCCachePrefetchNoWb(void)
Disable Cluster Cache Prefetch to Avoid Write Back.
uint32_t w
Type used for word access.
uint32_t w
Type used for word access.
__STATIC_FORCEINLINE uint8_t SMPCC_GetCoreNum(void)
Get the number of cores in the cluster.
__STATIC_FORCEINLINE uint32_t SMPCC_GetPMONEventSelect(uint8_t idx)
Get Performance Monitor Event Selection.
#define SMPCC_NS_RG_CFG_NACL
SMPCC Non-Shareable Region CFG NACL.
#define SMPCC_CTRL_ECC_CHK_EN_ENABLE
SMPCC CC_CTRL ECC_CHK_EN Enable.
#define SMPCC_CTRL_PF_L2_EARLY_EN_DISABLE
SMPCC CC_CTRL PF_L2_EARLY_EN Disable.
__IOM CC_RECV_CNT_Type CC_RECV_CNT
Offset: 0x01C (R/W) CC ECC recoverable error count register.
__STATIC_FORCEINLINE void SMPCC_LockECCConfig(void)
Lock ECC Configuration.
#define SMPCC_CTRL_CC_ECC_EN_ENABLE
SMPCC CC_CTRL CC_ECC_EN Enable.
#define SMPCC_STMCTRL_CROSS_EN_ENABLE
SMPCC READ STREAM CROSS 4K Enable.
__STATIC_FORCEINLINE void SMPCC_EnableL1PrefetchShareCacheline(void)
Enable L1 Prefetch to Snoop and Share Cacheline.
__IM uint32_t _reserved
bit: 4..31 reserved
__STATIC_INLINE void MInvalICacheLine(unsigned long addr)
Invalidate one I-Cache line specified by address in M-Mode.
__IOM uint32_t rd_stm_en
bit: 0 read stream enable
__STATIC_FORCEINLINE void SMPCC_DisableSnoop(uint16_t client_msk)
Disable snoop for specific clients.
__IM uint32_t ext_trans
bit: 31 external memory bus transaction pending
#define SMPCC_STMCTRL_RD_MERGE_EN_DISABLE
SMPCC READ Merge Enable Disable.
__STATIC_FORCEINLINE void SMPCC_DisableBusErrIrq(void)
Disable Bus Error Interrupt.
__IOM uint32_t pf_biu_outs_en
bit: 17 enable the limit of outstanding L2 prefetch to the number of L2 prefetch line-buffer
__STATIC_FORCEINLINE void SMPCC_ClearPMONCount(uint8_t idx)
Clear Performance Monitor Count.
__IOM uint32_t inj_clm
bit: 2 ECC error injection to clm ram
__IOM uint32_t inj_tag
bit: 1 ECC error injection to tag ram
Union type to access CC_RECV_CNT register.
__IOM uint32_t fatal_err_irq_en
bit: 6 enable the interrupt when fatal error count exceeds the threshold
__IOM uint32_t pf_sh_cl_en
bit: 15 enable L1 prefetch to snoop and share cacheline from other cores
__IOM uint32_t cnt
bit: 0..15 count of the recoverable error
#define SMPCC_ERR_INJ_INJECCCODE_Msk
SMPCC CC_ERR_INJ INJECCCODE Mask.
__IM uint32_t iocp_num
bit: 7..12 IO coherency port number in the cluster
__IOM uint32_t wr_byte_threshold
bit: 20..29 the line buffer timeout free time when no same cacheline transactions
__STATIC_FORCEINLINE uint64_t SMPCC_GetPMONCount(uint8_t idx)
Get Performance Monitor Count.
#define SMPCC_CTRL_BUS_ERR_IRQ_EN_ENABLE
SMPCC CC_CTRL BUS_ERR_IRQ_EN Enable.
__IOM DFF_PROT_Type DFF_PROT
Offset: 0x0EC (R/W) Hardware Register protect Enable register.
__IOM CC_ERR_INJ_Type CC_ERR_INJ
Offset: 0x018 (R/W) CC ECC error injection control register.
uint32_t w
Type used for word access.
__IM SNOOP_PENDING_Type SNOOP_PENDING
Offset: 0x0C8 (R) indicate the core is being snooped or not in SCU.
Union type to access CLM_WAY_EN register.
#define SMPCC_CTRL_CLM_EXCP_EN_ENABLE
SMPCC CC_CTRL CLM_EXCP_EN Enable.
__IOM uint32_t event_sel
bit: 0..15 select the event for this performance monitor counter
#define SMPCC_CTRL_CC_ECC_EXCP_EN_ENABLE
SMPCC CC_CTRL ECC_EXCP_EN Enable.
__IM uint32_t _reserved2
bit: 19 reserved
__IOM uint32_t ecc_chk_en
bit: 11 cc ecc check enable bit
__IO uint64_t CC_INV_RANGE_START_Type
Type to access CC_INV_RANGE_START register.
__IM uint32_t _reserved0
bit: 10..11 reserved
__IM uint32_t _reserved
bit: 16..31 reserved
__IOM uint32_t recv_err_irq_en
bit: 5 enable the interrupt when recoverable error count exceeds the threshold
#define SMPCC_STMCTRL_RD_MERGE_EN_ENABLE
SMPCC READ Merge Enable Enable.
__IM uint32_t _reserved
bit: 16..31 reserved
#define __IOM
Defines 'read/write' structure member permissions.
__IM uint32_t cc_tcycle
bit: 12..14 L2 tag ram access cycle = cc_tcycle + 1
Union type to access CC_CMD register.
__IOM uint32_t cc_l2_err_msk
bit: 0 mask L2 double bit error output
#define SMPCC_CTRL_ECC_CHK_EN_DISABLE
SMPCC CC_CTRL ECC_CHK_EN Disable.
__STATIC_FORCEINLINE void SMPCC_EnableCCacheEarlyPrefetch(void)
Enable Cluster Cache Early Prefetch.
__IM uint32_t cc_dcycle
bit: 15..17 L2 Data sram access cycle = cc_dcycle + 1
#define SMPCC_CTRL_USE_CMD_EN_ENABLE
SMPCC CC_CTRL USE_CMD_EN Enable.
#define SMPCC_CTRL_PF_SH_CL_EN_DISABLE
SMPCC CC_CTRL PF_SH_CL_EN Disable.
__IOM CC_INV_RANGE_Type CC_INV_RANGE
Offset: 0x720 (R/W) Cluster Cache invalid rage register.
uint32_t w
Type used for word access.
__IOM SMP_ENB_Type SMP_ENB
Offset: 0x00C (R/W) SMP enable register.
#define SMPCC_CTRL_CC_EN_ENABLE
SMPCC CC_CTRL CC_EN Enable.
__IOM uint32_t iocc_err
bit: 19 iocc has error
__STATIC_FORCEINLINE void SMPCC_EnableBusErrIrq(void)
Enable Bus Error Interrupt.
__STATIC_FORCEINLINE uint32_t SMPCC_GetCCacheSetNum(void)
Get the number of cache sets.
__IO uint64_t CC_BUS_ERR_ADDR_Type
Type to access CC_BUS_ERR_ADDR register.
__IM uint32_t _reserved
bit: 18..31 reserved
#define SMPCC_CTRL_I_SNOOP_D_EN_ENABLE
SMPCC CC_CTRL I_SNOOP_D_EN Enable.
#define SMPCC_CTRL_PF_NO_WB_ENABLE
SMPCC CC_CTRL PF_NO_WB Enable.
#define SMPCC_STMCTRL_RD_STM_EN_DISABLE
SMPCC READ Stream Enable Disable.
__IM uint32_t cc_way
bit: 4..7 cluster cache way number = cc_way + 1
__STATIC_FORCEINLINE void SMPCC_EnableRecvErrIrq(void)
Enable Recoverable Error Interrupt.
Union type to access CC_INVALID_ALL register.
__STATIC_FORCEINLINE void SMPCC_LockECCErrInjection(void)
Lock ECC Error Injection Register.
uint32_t w
Type used for word access.
__STATIC_FORCEINLINE uint32_t SMPCC_GetClientErrStatus(uint8_t client_id)
Get Client Error Status.
__IOM uint32_t cs
bit: 0 write 1 to invalid all cluster cache, and hardware auto clean when operation is done
__IOM uint64_t cfg
bit: 0..1 0x00: disable region; 0x10:NACL; 0x11: NAPOT
#define SMPCC_STMCTRL_WR_STM_EN_DISABLE
SMPCC WRITE Stream Enable Disable.
__IM uint32_t _reserved
bit: 2..31 reserved
__STATIC_FORCEINLINE void SMPCC_MaskClientCCacheWays(uint8_t client_id, uint32_t way_msk)
Mask Client Cluster Cache Ways.
__IM uint32_t min_ver
bit: 8..15 minor version number
__IOM CC_FATAL_CNT_Type CC_FATAL_CNT
Offset: 0x020 (R/W) CC ECC fatal error count register.
__STATIC_FORCEINLINE void SMPCC_SetFatalErrCntThreshold(uint16_t threshold)
Set Fatal Error Count Threshold.
#define SMPCC_CTRL_USE_CMD_EN_DISABLE
SMPCC CC_CTRL USE_CMD_EN Disable.
__IOM uint32_t besc
bit: 25 bus error status, write 1 to clean
__IOM uint32_t inj_data
bit: 0 ECC error injection to data ram
__IM uint32_t _reserved
bit: 19..31 reserved
Union type to access CLM_ADDR_BASE register.
__IM uint32_t snoop_pending
bit: 0..15 snoop pending bit for each client
__STATIC_FORCEINLINE void SMPCC_EnableCCacheECCCheck(void)
Enable Cluster Cache ECC Check.
#define SMPCC
SMPCC configuration struct.
__IM uint32_t _reserved
bit: 22..31 reserved
__STATIC_FORCEINLINE uint8_t SMPCC_GetPMONNum(void)
Get the number of performance monitors.
__STATIC_FORCEINLINE void SMPCC_DisableFatalErrIrq(void)
Disable Fatal Error Interrupt.
Union type to access CLIENT_ERR_STATUS register.
__STATIC_FORCEINLINE void SMPCC_DisableRecvErrIrq(void)
Disable Recoverable Error Interrupt.
__STATIC_FORCEINLINE void SMPCC_DisableCCacheEarlyPrefetch(void)
Disable Cluster Cache Early Prefetch.
#define __IO
Defines 'read / write' permissions.
uint32_t w
Type used for word access.
#define SMPCC_CTRL_CC_ECC_EN_DISABLE
SMPCC CC_CTRL CC_ECC_EN Disable.
#define SMPCC_CTRL_LOCK_ECC_ERR_INJ_LOCK
SMPCC CC_CTRL LOCK_ECC_ERR_INJ Lock.
__IOM uint64_t dw
Type used for double word access.
__IOM uint32_t rd_merge_en
bit: 3 non-cacheable attribute read merge enable
__IOM CC_CTRL_Type CC_CTRL
Offset: 0x010 (R/W) CC control register.
Union type to access NS_RG register.
__STATIC_FORCEINLINE void SMPCC_EnableStreamWrite(void)
Enable Stream Write.
uint32_t w
Type used for word access.
__IOM uint32_t cs
bit: 0 Set cs can enable inv range, it clear by hardware
__IM uint32_t _reserved
bit: 5..22 reserved
__STATIC_FORCEINLINE void SMPCC_SetECCCode(uint32_t ecc_code)
Set ECC code for error injection.
__IM uint32_t inj_ecc_code
24..32 ECC code for injection
#define SMPCC_CTRL_RECV_ERR_IRQ_EN_DISABLE
SMPCC CC_CTRL RECV_ERR_IRQ_EN Disable.
__IOM uint32_t cross_en
bit: 4 read stream cross 4k enable
__STATIC_INLINE unsigned long MLockCCacheLine(unsigned long addr)
Lock one Cluster Cache line specified by address in M-Mode.
__IOM uint32_t pf_no_wb
bit: 21 enable L2 prefetch to abort and avoid dirty cacheline write back when filling the cluster cac...
__IOM uint32_t wr_stm_en
bit: 1 write stream enable
#define SMPCC_ERR_INJ_INJTAG_ENABLE
SMPCC CC_ERR_INJ INJTAG Enable.
__IM uint32_t cc_lsize
bit: 8..10 cluster cache line size = 2^(cc_lsize + 2)
__IM uint32_t _reserved
bit: 16..31 reserved
__IM uint32_t _reserved1
bit: 15 reserved
__STATIC_FORCEINLINE void SMPCC_DisableStreamReadCross4K(void)
Disable Stream Read Cross 4K Boundary.
#define SMPCC_ERR_INJ_INJDATA_ENABLE
SMPCC CC_ERR_INJ INJDATA Enable.
#define SMPCC_CTRL_LOCK_ECC_CFG_LOCK
SMPCC CC_CTRL LOCK_ECC_CFG Lock.
uint32_t w
Type used for word access.
__STATIC_FORCEINLINE void SMPCC_SetPMONEventSelect(uint8_t idx, uint8_t client_id, uint8_t event)
Set Performance Monitor Event Selection.
__IM uint32_t w
Type used for word access.
const SMP_VER_Type SMP_VER
Offset: 0x000 (R) SMP version register.
__IM uint32_t result_code
bit: 26..30 result code
__IOM uint32_t rd_rmp_en
bit: 2 Set read trans attribute remap enable
__STATIC_FORCEINLINE void SMPCC_EnableCLMECCCheck(void)
Enable Cluster Local Memory ECC Check.
#define MFlushInvalDCacheCCacheLine(addr)
Flush and invalidate one D-Cache and Cluster Cache line specified by address in M-Mode.
Union type to access CLIENT_WAY_MASK register.
__IOM uint32_t ena
bit: 0..15 This way is used as CLM or not
__STATIC_FORCEINLINE void SMPCC_EnableStreamMergeNCRead(void)
Enable Stream Merge Non-Cacheable Read.
__STATIC_FORCEINLINE uint8_t SMPCC_IsAnySnoopPending(uint32_t client_msk)
Check if any client is being snooped.
__IM uint32_t _reserved
bit: 16..31 reserved
uint32_t w
Type used for word access.
__IO uint64_t CC_ECC_INJ_ADDR_Type
Type to access CC_ECC_INJ_ADDR register.
__STATIC_FORCEINLINE void SMPCC_DisableStreamMergeNCRead(void)
Disable Stream Merge Non-Cacheable Read.
__STATIC_FORCEINLINE void SMPCC_EnableCLMECCExcp(void)
Enable Cluster Local Memory ECC Exception.
Union type to access CC_ERR_INJ register.
__IOM uint32_t wr_rmp_en
bit: 0 Set write trans attribute remap enable
__IM uint32_t pmon_num
bit: 13..18 performance monitor number in the cluster
__STATIC_FORCEINLINE uint16_t SMPCC_GetFatalErrCntThreshold(void)
Get Fatal Error Count Threshold.
__IOM CC_ECC_INJ_DATA_Type CC_ECC_INJ_DATA
Offset: 0x74C (R/W) Cluster Cache ECC inject data register, repeate to fill a cache line.
#define SMPCC_ERR_INJ_CS_START
SMPCC CC_ERR_INJ CS Start.
Union type to access SMP_ENB configure register.
#define SMPCC_STMCTRL_WR_STM_EN_ENABLE
SMPCC WRITE Stream Enable Enable.
__IOM uint32_t mask
bit: 0..15 mask this way for the client
__STATIC_FORCEINLINE void SMPCC_DisableCCacheECCCheck(void)
Disable Cluster Cache ECC Check.
#define SMPCC_STMCTRL_CROSS_EN_DISABLE
SMPCC READ STREAM CROSS 4K Disable.
__IM uint32_t _reserved
bit: 1..31 reserved
__STATIC_FORCEINLINE void SMPCC_DisableCLMECC(void)
Disable Cluster Local Memory ECC.
__IOM uint32_t client_sel
bit: 16..20 specify the core in the cluster or external master number hooked to I/O coherency port
__IM uint32_t _reserved
bit: 11..31 reserved
#define SMPCC_CTRL_CLM_EXCP_EN_DISABLE
SMPCC CC_CTRL CLM_EXCP_EN Disable.
__STATIC_FORCEINLINE void SMPCC_DisableCCache(void)
Disable cluster cache.
uint32_t w
Type used for word access.
__IOM uint32_t reisc
bit: 23 recoverable error interrupt status, write 1 to clean
#define SMPCC_NS_RG_CFG_NAPOT
SMPCC Non-Shareable Region CFG NAPOT.
__IOM uint32_t cnt
bit: 0..15 count of the fatal error threshold value
__STATIC_FORCEINLINE void SMPCC_DisableStreamTransAlloc(void)
Disable Stream Translate Allocate.
__IOM CC_INV_RANGE_END_Type CC_INV_RANGE_END
Offset: 0x72C (R/W) Cluster Cache invalid range end address register.
__IOM CC_FATAL_THV_Type CC_FATAL_THV
Offset: 0x028 (R/W) CC ECC fatal error threshold register.
__IM uint32_t complete
bit: 31 completion status
__STATIC_FORCEINLINE uint8_t SMPCC_IsCCachePresent(void)
Check if cluster cache is present.
__IOM CC_RECV_THV_Type CC_RECV_THV
Offset: 0x024 (R/W) CC ECC recoverable error threshold register.
uint32_t w
Type used for word access.
__STATIC_FORCEINLINE void SMPCC_EnableCCacheECCExcp(void)
Enable Cluster Cache ECC Exception.
__STATIC_FORCEINLINE void SMPCC_EnableSnoop(uint16_t client_msk)
Enable snoop for specific clients.
__IOM uint32_t wr_attri
bit: 1 Remap allocate and non-alloc.
__IOM uint32_t feisc
bit: 24 fatal error interrupt status, write 1 to clean
__STATIC_FORCEINLINE void SMPCC_CLMErrInject(uint32_t ecc_code, uint32_t *addr)
Inject ECC error to CLM (Cluster Local Memory)
__STATIC_FORCEINLINE void SMPCC_EnableCCachePrefetchNoWb(void)
Enable Cluster Cache Prefetch to Avoid Write Back.
__IOM CC_CMD_Type CC_uCMD
Offset: 0x0C4 (R/W) user mode CC command and status register.
__IOM uint32_t timeout
bit: 0..10 write streaming wait clk num
__STATIC_FORCEINLINE void SMPCC_EnableCCache(void)
Enable cluster cache.
__STATIC_FORCEINLINE void SMPCC_EnableUModeCmd(void)
Enable User Mode Commands.
Union type to access IOCP_ATTR_RMP register.
__IOM ECC_ERR_MSK_Type ECC_ERR_MSK
Offset: 0x0F0 (R/W) Mask L2M ECC Error register.
#define SMPCC_CTRL_FATAL_ERR_IRQ_EN_ENABLE
SMPCC CC_CTRL FATAL_ERR_IRQ_EN Enable.
__IM uint32_t _reserved
bit: 1..31 reserved
__IOM uint32_t lock_ecc_err_inj
bit: 4 lock cc ecc error injection register
#define __STATIC_FORCEINLINE
Define a static function that should be always inlined by the compiler.
__IM uint32_t _reserved3
bit: 30..31 reserved
__IOM IOCP_ATTR_RMP_Type IOCP_ATTR_RMP
Offset: 0x750 (R/W) IOCP attribute remap register.
Union type to access CC_RECV_THV register.
Union type to access SMP_PMON_SEL register.
#define SMPCC_STMCTRL_RD_STM_EN_ENABLE
SMPCC READ Stream Enable Enable.
__STATIC_FORCEINLINE void SMPCC_DisableCCacheECC(void)
Disable Cluster Cache ECC.
#define SMPCC_NS_RG_CFG_DISABLE
SMPCC Non-Shareable Region CFG DISABLE.
__STATIC_FORCEINLINE void SMPCC_EnableCCacheECC(void)
Enable Cluster Cache ECC.
__IM SMP_CFG_Type SMP_CFG
Offset: 0x004 (R) SMP Configuration register.
__IOM uint32_t cnt
bit: 0..15 count of the fatal error
__IO uint64_t CLIENT_ERR_ADDR_Type
Type to access CLIENT_ERR_ADDR register.
__IOM uint32_t rd_degree
bit: 12..14 the delta between prefetch address and current bus address
Union type to access STM_CFG register.
#define SMPCC_CTRL_PF_BIU_OUTS_EN_DISABLE
SMPCC CC_CTRL PF_BIU_OUTS_EN Disable.
__STATIC_FORCEINLINE void SMPCC_DisableUModeCmd(void)
Disable User Mode Commands.
__STATIC_FORCEINLINE uint32_t SMPCC_GetFatalErrCount(void)
Get Fatal Error Count.
__STATIC_FORCEINLINE uint8_t SMPCC_GetCCacheLineSize(void)
Get the cache line size.
uint32_t w
Type used for word access.
__IO uint32_t CC_ECC_INJ_DATA_Type
Type to access CC_ECC_INJ_DATA register.
#define SMPCC_CTRL_RECV_ERR_IRQ_EN_ENABLE
SMPCC CC_CTRL RECV_ERR_IRQ_EN Enable.
__STATIC_FORCEINLINE uint32_t SMPCC_GetCCacheWayNum(void)
Get the number of cache ways.
__STATIC_FORCEINLINE uint32_t SMPCC_GetRecvErrCount(void)
Get Recoverable Error Count.
uint32_t w
Type used for word access.
__IOM uint32_t i_snoop_d_en
bit: 18 snoop to dcache for icache refill reads enable
__IOM STM_TIMEOUT_Type STM_TIMEOUT
Offset: 0x0E8 (R/W) Stream read/write timeout register.
uint32_t w
Type used for word access.
__IM uint32_t _reserved
bit: 21..31 reserved
__IOM uint32_t lock_ecc_cfg
bit: 3 lock the cc ecc configuration bit
#define SMPCC_CTRL_PF_BIU_OUTS_EN_ENABLE
SMPCC CC_CTRL PF_BIU_OUTS_EN Enable.
#define SMPCC_CTRL_CC_ECC_EXCP_EN_DISABLE
SMPCC CC_CTRL ECC_EXCP_EN Disable.
uint32_t w
Type used for word access.
__IM uint32_t _reserved
bit: 16..31 reserved
__IM uint32_t _reserved
bit: 16..30 reserved
__IOM uint32_t cc_scu_ecc_err
bit: 2 cc scu ecc error
__IOM CC_ECC_INJ_WAY_Type CC_ECC_INJ_WAY
Offset: 0x740 (R/W) Cluster Cache ECC inject way register.
__IOM uint32_t clm_excp_en
bit: 13 clm ecc exception enable bit
__IOM uint32_t early_wr_err
bit: 20 early write response has error
__IM uint32_t _reserved0
bit: 5..23 reserved
#define SMPCC_CTRL_FATAL_ERR_IRQ_EN_DISABLE
SMPCC CC_CTRL FATAL_ERR_IRQ_EN Disable.
__STATIC_FORCEINLINE void SMPCC_CCacheDramErrInject(uint32_t ecc_code, uint32_t *addr, uint16_t way)
Inject ECC error to cluster cache data RAM.
__IOM uint32_t cnt
bit: 0..15 count of the recoverable error threshold value
__STATIC_FORCEINLINE void SMPCC_SetCLMNoWay(void)
Configure Cluster Local Memory to use no ways.
__STATIC_FORCEINLINE void SMPCC_SetCLMAllWays(uint64_t addr)
Set Cluster Local Memory to use all ways.
uint32_t w
Type used for word access.
Union type to access SNOOP_PENDING register.
__IM uint32_t _reserved
bit: 16..31 reserved
__STATIC_FORCEINLINE void SMPCC_SetCLMNWays(uint64_t addr, uint32_t way_msk)
Set Cluster Local Memory to use specific ways.
__STATIC_FORCEINLINE void SMPCC_LimitCCachePrefetchOutsNum(void)
Limit Cluster Cache Prefetch Outstanding Number.
__IOM uint32_t CLM_WAY_EN
Offset: 0x0D8 (R/W) CC way enable register.
__IOM uint32_t rd_byte_threshold
bit: 0..9 the prefetch number for read stream
#define SMPCC_CTRL_CLM_ECC_EN_ENABLE
SMPCC CC_CTRL CLM_ECC_EN Enable.
__STATIC_FORCEINLINE void SMPCC_EnableStreamTransAlloc(void)
Enable Stream Translate Allocate.
__IOM uint32_t inj_mode
bit: 3 ECC error injection mode: 0-direct write mode, 1-xor write mode
#define SMPCC_ERR_INJ_INJCLM_DISABLE
SMPCC CC_ERR_INJ INJCLM Disable.
__IOM CC_CMD_Type CC_sCMD
Offset: 0x0C0 (R/W) supervisor mode CC command and status register.
__IOM CC_BUS_ERR_ADDR_Type CC_BUS_ERR_ADDR
Offset: 0x02C (R/W) CC bus error address register.
__STATIC_FORCEINLINE void SMPCC_EnableStreamRead(void)
Enable Stream Read.
__STATIC_FORCEINLINE uint8_t SMPCC_IsCCacheSupportECC(void)
Check if cluster cache supports ECC.
__IOM uint32_t cc_en
bit: 0 cluster cache enable bit
Union type to access DFF_PROT register.
__IM TRANS_PENDING_Type TRANS_PENDING
Offset: 0x0CC (R) indicate the core's transaction is finished or not in the SCU.
__STATIC_FORCEINLINE uint8_t SMPCC_IsAnyTransactionPending(uint32_t client_msk)
Check if any transaction is pending for clients.
__IM uint32_t _reserved
bit: 16..31 reserved
__STATIC_FORCEINLINE void SMPCC_ClearRecvErrCount(void)
Clear Recoverable Error Count.
#define SMPCC_CTRL_CLM_ECC_CHK_EN_ENABLE
SMPCC CC_CTRL CLM_ECC_CHK_EN Enable.
uint32_t w
Type used for word access.
#define SMPCC_CTRL_BUS_ERR_IRQ_EN_DISABLE
SMPCC CC_CTRL BUS_ERR_IRQ_EN Disable.
__STATIC_FORCEINLINE void SMPCC_DisableICacheSnoopDCache(void)
Disable ICache to Snoop DCache.
__STATIC_FORCEINLINE void SMPCC_SetNSRegionNAPOT(uint8_t region_id, uint64_t addr)
Set Non-Shareable Region to NAPOT.
Union type to access CC_CFG information register.
__IOM STM_CFG_Type STM_CFG
Offset: 0x0E4 (R/W) Stream read/write configuration register.
#define SMPCC_CTRL_CLM_ECC_EN_DISABLE
SMPCC CC_CTRL CLM_ECC_EN Disable.
Union type to access CC_INV_RANGE register.
uint32_t w
Type used for word access.
Union type to access SMP_VER information register.
__STATIC_FORCEINLINE void SMPCC_SetRecvErrCntThreshold(uint16_t threshold)
Set Recoverable Error Count Threshold.
__STATIC_FORCEINLINE uint64_t SMPCC_GetClientErrAddr(uint8_t client_id)
Get Client Error Address.
__STATIC_FORCEINLINE int32_t SMPCC_IsCCacheEnabled(void)
Get status of cluster cache.
__STATIC_FORCEINLINE void SMPCC_UnlimitCCachePrefetchOutsNum(void)
Unlimit Cluster Cache Prefetch Outstanding Number.
__IM uint32_t cc_ecc
bit: 11 cluster cache ECC supports ECC or not
__STATIC_FORCEINLINE uint16_t SMPCC_GetRecvErrCntThreshold(void)
Get Recoverable Error Count Threshold.
__STATIC_FORCEINLINE void SMPCC_SetSTMControl(uint32_t val)
Set Stream Control Register.
__IOM uint32_t clm_base32
__IM uint32_t w
Type used for word access.
__STATIC_FORCEINLINE void SMPCC_DisableCLMECCCheck(void)
Disable Cluster Local Memory ECC Check.
__IM uint32_t w
Type used for word access.
#define SMPCC_CTRL_I_SNOOP_D_EN_DISABLE
SMPCC CC_CTRL I_SNOOP_D_EN Disable.
Union type to access CC_ECC_INJ_WAY register.
__STATIC_FORCEINLINE void SMPCC_DisableStreamRead(void)
Disable Stream Read.
__IOM uint32_t trans_alloc
bit: 2 translate allocate attribute to non-alloc attribute enable
#define _VAL2FLD(field, value)
Mask and shift a bit field value for use in a register bit range.
__STATIC_FORCEINLINE int32_t SMPCC_IsXorErrorInjectMode(void)
Check if ECC error injection mode is XOR mode.
Union type to access STM_CTRL register.
__IM uint32_t _reserved
bit: 5..31 reserved
__STATIC_FORCEINLINE uint32_t SMPCC_GetSTMControl(void)
Get Stream Control Register Value.
__IOM STM_CTRL_Type STM_CTRL
Offset: 0x0E0 (R/W) Stream read/write control register.
__IOM uint32_t write_bus_err
bit: 1 write bus error
__STATIC_FORCEINLINE void SMPCC_SetNSRegionNACL(uint8_t region_id, uint64_t addr)
Set Non-Shareable Region to NACL.
#define SMPCC_CTRL_PF_SH_CL_EN_ENABLE
SMPCC CC_CTRL PF_SH_CL_EN Enable.
__IOM CC_INVALID_ALL_Type CC_INVALID_ALL
Offset: 0x0DC (R/W) CC invalidate all register.
__IM uint32_t w
Type used for word access.
__STATIC_FORCEINLINE void SMPCC_CCacheTramErrInject(uint32_t ecc_code, uint32_t *addr, uint16_t way)
Inject ECC error to cluster cache tag RAM.
__IOM uint32_t iocp_bus_err
bit: 3 iocp bus error
#define SMPCC_CTRL_CLM_ECC_CHK_EN_DISABLE
SMPCC CC_CTRL CLM_ECC_CHK_EN Disable.
Union type to access CC_CTRL configure register.
__IOM uint32_t bus_err_irq_en
bit: 8 enable the buss error interrupt of cc maintain operation
__IM uint32_t maj_ver
bit: 16..23 major version number
uint32_t w
Type used for word access.
#define SMPCC_CTRL_PF_L2_EARLY_EN_ENABLE
SMPCC CC_CTRL PF_L2_EARLY_EN Enable.
__STATIC_FORCEINLINE void SMPCC_EnableStreamReadCross4K(void)
Enable Stream Read Cross 4K Boundary.
__STATIC_FORCEINLINE void SMPCC_DisableL1PrefetchShareCacheline(void)
Disable L1 Prefetch to Snoop and Share Cacheline.
#define SMPCC_ERR_INJ_INJCLM_ENABLE
SMPCC CC_ERR_INJ INJCLM Enable.
__IM CC_CFG_Type CC_CFG
Offset: 0x008 (R) CC config register.
__STATIC_FORCEINLINE void SMPCC_DisableCLMECCExcp(void)
Disable Cluster Local Memory ECC Exception.
__IOM uint32_t bus_err_pend
bit: 7 indicate if there is bus error pending
__IM uint32_t trans_pending
bit: 0..15 transaction pending bit for each client
__IOM uint32_t smp_enable
bit: 0..15 SMP enable bits for clients in cluster
#define SMPCC_CTRL_SUP_CMD_EN_ENABLE
SMPCC CC_CTRL SUP_CMD_EN Enable.
__STATIC_FORCEINLINE void SMPCC_DisableStreamWrite(void)
Disable Stream Write.
__IOM uint64_t addr_hi
bit: 2..63 address of the region
__IOM uint32_t num
bit: 0..15 Set precise ecc inject way number, one-hot
__IOM uint32_t read_bus_err
bit: 0 read bus error
__IOM uint32_t rd_distance
bit: 16..18 the threshold bytes matching write stream training successfully
Union type to access TRANS_PENDING register.
__IM uint32_t _reserved
bit: 16..31 reserved
__IM uint32_t cc_set
bit: 0..3 cluster cache set number = 2^(cc_set)
__IOM uint32_t ecc_excp_en
bit: 2 cluster cache ECC exception enable bit
#define __RWMB()
Read & Write Memory barrier.
__IOM uint32_t cc_core_err_mask
bit: 1 mask core double bit error output
__IM uint32_t _reserved
bit: 2..31 reserved
uint32_t w
Type used for word access.
__STATIC_FORCEINLINE SMP_VER_Type SMPCC_GetVersion(void)
Get the SMP version number.
__STATIC_FORCEINLINE uint8_t SMPCC_GetIOCPNum(void)
Get the number of IO coherency ports.
__IM uint32_t _reserved
bit: 24..31 reserved
__STATIC_FORCEINLINE void SMPCC_EnableCLMECC(void)
Enable Cluster Local Memory ECC.
#define SMPCC_STMCTRL_TRANS_ALLOC_DISABLE
SMPCC TRANSLATE ALLOC ATTRIBUTE Disable.
Union type to access SMP_CFG information register.
__IM uint32_t smp_core_num
bit: 1..6 core number in cluster
__STATIC_FORCEINLINE uint32_t SMPCC_GetCCacheControl(void)
Get Cluster Cache Control register value.
__IO uint64_t CC_INV_RANGE_END_Type
Type to access CC_INV_RANGE_END register.
Union type to access CC_FATAL_THV register.
__STATIC_FORCEINLINE void SMPCC_DisableNSRegion(uint8_t region_id)
Disable Non-Shareable Region.
__IM uint32_t _reserved
bit: 16..31 reserved
__IO uint64_t SMP_PMON_CNT_Type
Type to access SMP_PMON_CNT register.
uint32_t w
Type used for word access.
uint64_t clm_base64
Type used access whole 64-bits.
__STATIC_FORCEINLINE void SMPCC_DisableSModeCmd(void)
Disable Supervisor Mode Commands.
#define SMPCC_ERR_INJ_INJTAG_DISABLE
SMPCC CC_ERR_INJ INJTAG Disable.
__STATIC_FORCEINLINE void SMPCC_ClearFatalErrCount(void)
Clear Fatal Error Count.