18 #ifndef __CORE_FEATURE_SMPCC_H__
19 #define __CORE_FEATURE_SMPCC_H__
40 #include "core_feature_base.h"
42 #if defined(__SMPCC_PRESENT) && (__SMPCC_PRESENT == 1)
143 #define SMPCC_CTRL_CC_EN_Pos 0U
144 #define SMPCC_CTRL_CC_EN_Msk (0x1UL << SMPCC_CTRL_CC_EN_Pos)
145 #define SMPCC_CTRL_CC_EN_ENABLE 1U
146 #define SMPCC_CTRL_CC_EN_DISABLE 0U
148 #define SMPCC_CTRL_CC_ECC_EN_Pos 1U
149 #define SMPCC_CTRL_CC_ECC_EN_Msk (0x1UL << SMPCC_CTRL_CC_ECC_EN_Pos)
150 #define SMPCC_CTRL_CC_ECC_EN_ENABLE 1U
151 #define SMPCC_CTRL_CC_ECC_EN_DISABLE 0U
153 #define SMPCC_CTRL_CC_ECC_EXCP_EN_Pos 2U
154 #define SMPCC_CTRL_CC_ECC_EXCP_EN_Msk (0x1UL << SMPCC_CTRL_CC_ECC_EXCP_EN_Pos)
155 #define SMPCC_CTRL_CC_ECC_EXCP_EN_ENABLE 1U
156 #define SMPCC_CTRL_CC_ECC_EXCP_EN_DISABLE 0U
158 #define SMPCC_CTRL_LOCK_ECC_CFG_Pos 3U
159 #define SMPCC_CTRL_LOCK_ECC_CFG_Msk (0x1UL << SMPCC_CTRL_LOCK_ECC_CFG_Pos)
160 #define SMPCC_CTRL_LOCK_ECC_CFG_LOCK 1U
162 #define SMPCC_CTRL_LOCK_ECC_ERR_INJ_Pos 4U
163 #define SMPCC_CTRL_LOCK_ECC_ERR_INJ_Msk (0x1UL << SMPCC_CTRL_LOCK_ECC_ERR_INJ_Pos)
164 #define SMPCC_CTRL_LOCK_ECC_ERR_INJ_LOCK 1U
166 #define SMPCC_CTRL_RECV_ERR_IRQ_EN_Pos 5U
167 #define SMPCC_CTRL_RECV_ERR_IRQ_EN_Msk (0x1UL << SMPCC_CTRL_RECV_ERR_IRQ_EN_Pos)
168 #define SMPCC_CTRL_RECV_ERR_IRQ_EN_ENABLE 1U
169 #define SMPCC_CTRL_RECV_ERR_IRQ_EN_DISABLE 0U
171 #define SMPCC_CTRL_FATAL_ERR_IRQ_EN_Pos 6U
172 #define SMPCC_CTRL_FATAL_ERR_IRQ_EN_Msk (0x1UL << SMPCC_CTRL_FATAL_ERR_IRQ_EN_Pos)
173 #define SMPCC_CTRL_FATAL_ERR_IRQ_EN_ENABLE 1U
174 #define SMPCC_CTRL_FATAL_ERR_IRQ_EN_DISABLE 0U
176 #define SMPCC_CTRL_BUS_ERR_PEND_Pos 7U
177 #define SMPCC_CTRL_BUS_ERR_PEND_Msk (0x1UL << SMPCC_CTRL_BUS_ERR_PEND_Pos)
179 #define SMPCC_CTRL_BUS_ERR_IRQ_EN_Pos 8U
180 #define SMPCC_CTRL_BUS_ERR_IRQ_EN_Msk (0x1UL << SMPCC_CTRL_BUS_ERR_IRQ_EN_Pos)
181 #define SMPCC_CTRL_BUS_ERR_IRQ_EN_ENABLE 1U
182 #define SMPCC_CTRL_BUS_ERR_IRQ_EN_DISABLE 0U
184 #define SMPCC_CTRL_SUP_CMD_EN_Pos 9U
185 #define SMPCC_CTRL_SUP_CMD_EN_Msk (0x1UL << SMPCC_CTRL_SUP_CMD_EN_Pos)
186 #define SMPCC_CTRL_SUP_CMD_EN_ENABLE 1U
187 #define SMPCC_CTRL_SUP_CMD_EN_DISABLE 0U
189 #define SMPCC_CTRL_USE_CMD_EN_Pos 10U
190 #define SMPCC_CTRL_USE_CMD_EN_Msk (0x1UL << SMPCC_CTRL_USE_CMD_EN_Pos)
191 #define SMPCC_CTRL_USE_CMD_EN_ENABLE 1U
192 #define SMPCC_CTRL_USE_CMD_EN_DISABLE 0U
194 #define SMPCC_CTRL_ECC_CHK_EN_Pos 11U
195 #define SMPCC_CTRL_ECC_CHK_EN_Msk (0x1UL << SMPCC_CTRL_ECC_CHK_EN_Pos)
196 #define SMPCC_CTRL_ECC_CHK_EN_ENABLE 1U
197 #define SMPCC_CTRL_ECC_CHK_EN_DISABLE 0U
199 #define SMPCC_CTRL_CLM_ECC_EN_Pos 12U
200 #define SMPCC_CTRL_CLM_ECC_EN_Msk (0x1UL << SMPCC_CTRL_CLM_ECC_EN_Pos)
201 #define SMPCC_CTRL_CLM_ECC_EN_ENABLE 1U
202 #define SMPCC_CTRL_CLM_ECC_EN_DISABLE 0U
204 #define SMPCC_CTRL_CLM_EXCP_EN_Pos 13U
205 #define SMPCC_CTRL_CLM_EXCP_EN_Msk (0x1UL << SMPCC_CTRL_CLM_EXCP_EN_Pos)
206 #define SMPCC_CTRL_CLM_EXCP_EN_ENABLE 1U
207 #define SMPCC_CTRL_CLM_EXCP_EN_DISABLE 0U
209 #define SMPCC_CTRL_CLM_ECC_CHK_EN_Pos 14U
210 #define SMPCC_CTRL_CLM_ECC_CHK_EN_Msk (0x1UL << SMPCC_CTRL_CLM_ECC_CHK_EN_Pos)
211 #define SMPCC_CTRL_CLM_ECC_CHK_EN_ENABLE 1U
212 #define SMPCC_CTRL_CLM_ECC_CHK_EN_DISABLE 0U
214 #define SMPCC_CTRL_PF_SH_CL_EN_Pos 15U
215 #define SMPCC_CTRL_PF_SH_CL_EN_Msk (0x1UL << SMPCC_CTRL_PF_SH_CL_EN_Pos)
216 #define SMPCC_CTRL_PF_SH_CL_EN_ENABLE 1U
217 #define SMPCC_CTRL_PF_SH_CL_EN_DISABLE 0U
219 #define SMPCC_CTRL_PF_L2_EARLY_EN_Pos 16U
220 #define SMPCC_CTRL_PF_L2_EARLY_EN_Msk (0x1UL << SMPCC_CTRL_PF_L2_EARLY_EN_Pos)
221 #define SMPCC_CTRL_PF_L2_EARLY_EN_ENABLE 1U
222 #define SMPCC_CTRL_PF_L2_EARLY_EN_DISABLE 0U
224 #define SMPCC_CTRL_PF_BIU_OUTS_EN_Pos 17U
225 #define SMPCC_CTRL_PF_BIU_OUTS_EN_Msk (0x1UL << SMPCC_CTRL_PF_BIU_OUTS_EN_Pos)
226 #define SMPCC_CTRL_PF_BIU_OUTS_EN_ENABLE 1U
227 #define SMPCC_CTRL_PF_BIU_OUTS_EN_DISABLE 0U
229 #define SMPCC_CTRL_I_SNOOP_D_EN_Pos 18U
230 #define SMPCC_CTRL_I_SNOOP_D_EN_Msk (0x1UL << SMPCC_CTRL_I_SNOOP_D_EN_Pos)
231 #define SMPCC_CTRL_I_SNOOP_D_EN_ENABLE 1U
232 #define SMPCC_CTRL_I_SNOOP_D_EN_DISABLE 0U
234 #define SMPCC_CTRL_IOCC_ERR_Pos 19U
235 #define SMPCC_CTRL_IOCC_ERR_Msk (0x1UL << SMPCC_CTRL_IOCC_ERR_Pos)
237 #define SMPCC_CTRL_EARLY_WR_ERR_Pos 20U
238 #define SMPCC_CTRL_EARLY_WR_ERR_Msk (0x1UL << SMPCC_CTRL_EARLY_WR_ERR_Pos)
240 #define SMPCC_CTRL_PF_NO_WB_Pos 21U
241 #define SMPCC_CTRL_PF_NO_WB_Msk (0x1UL << SMPCC_CTRL_PF_NO_WB_Pos)
242 #define SMPCC_CTRL_PF_NO_WB_ENABLE 1U
243 #define SMPCC_CTRL_PF_NO_WB_DISABLE 0U
283 #define SMPCC_ERR_INJ_INJDATA_Pos 0U
284 #define SMPCC_ERR_INJ_INJDATA_Msk (0x1UL << SMPCC_ERR_INJ_INJDATA_Pos)
285 #define SMPCC_ERR_INJ_INJDATA_ENABLE 1U
286 #define SMPCC_ERR_INJ_INJDATA_DISABLE 0U
288 #define SMPCC_ERR_INJ_INJTAG_Pos 1U
289 #define SMPCC_ERR_INJ_INJTAG_Msk (0x1UL << SMPCC_ERR_INJ_INJTAG_Pos)
290 #define SMPCC_ERR_INJ_INJTAG_ENABLE 1U
291 #define SMPCC_ERR_INJ_INJTAG_DISABLE 0U
293 #define SMPCC_ERR_INJ_INJCLM_Pos 2U
294 #define SMPCC_ERR_INJ_INJCLM_Msk (0x1UL << SMPCC_ERR_INJ_INJCLM_Pos)
295 #define SMPCC_ERR_INJ_INJCLM_ENABLE 1U
296 #define SMPCC_ERR_INJ_INJCLM_DISABLE 0U
298 #define SMPCC_ERR_INJ_INJMODE_Pos 3U
299 #define SMPCC_ERR_INJ_INJMODE_Msk (0x1UL << SMPCC_ERR_INJ_INJMODE_Pos)
300 #define SMPCC_ERR_INJ_INJMODE_DIRECT 0U
301 #define SMPCC_ERR_INJ_INJMODE_XOR 1U
303 #define SMPCC_ERR_INJ_INJECCCODE_Pos 24U
304 #define SMPCC_ERR_INJ_INJECCCODE_Msk (0xFFUL << SMPCC_ERR_INJ_INJECCCODE_Pos)
374 #define SMPCC_CLIERRSTS_READ_BUS_ERR_Pos 0U
375 #define SMPCC_CLIERRSTS_READ_BUS_ERR_Msk (0x1UL << SMPCC_CLIERRSTS_READ_BUS_ERR_Pos)
377 #define SMPCC_CLIERRSTS_WRITE_BUS_ERR_Pos 1U
378 #define SMPCC_CLIERRSTS_WRITE_BUS_ERR_Msk (0x1UL << SMPCC_CLIERRSTS_WRITE_BUS_ERR_Pos)
380 #define SMPCC_CLIERRSTS_CC_SCU_ECC_ERR_Pos 2U
381 #define SMPCC_CLIERRSTS_CC_SCU_ECC_ERR_Msk (0x1UL << SMPCC_CLIERRSTS_CC_SCU_ECC_ERR_Pos)
383 #define SMPCC_CLIERRSTS_IOCP_BUS_ERR_Pos 3U
384 #define SMPCC_CLIERRSTS_IOCP_BUS_ERR_Msk (0x1UL << SMPCC_CLIERRSTS_IOCP_BUS_ERR_Pos)
463 #define SMPCC_STMCTRL_RD_STM_EN_Pos 0U
464 #define SMPCC_STMCTRL_RD_STM_EN_Msk (0x1UL << SMPCC_STMCTRL_RD_STM_EN_Pos)
465 #define SMPCC_STMCTRL_RD_STM_EN_ENABLE 1U
466 #define SMPCC_STMCTRL_RD_STM_EN_DISABLE 0U
468 #define SMPCC_STMCTRL_WR_STM_EN_Pos 1U
469 #define SMPCC_STMCTRL_WR_STM_EN_Msk (0x1UL << SMPCC_STMCTRL_WR_STM_EN_Pos)
470 #define SMPCC_STMCTRL_WR_STM_EN_ENABLE 1U
471 #define SMPCC_STMCTRL_WR_STM_EN_DISABLE 0U
473 #define SMPCC_STMCTRL_TRANS_ALLOC_Pos 2U
474 #define SMPCC_STMCTRL_TRANS_ALLOC_Msk (0x1UL << SMPCC_STMCTRL_TRANS_ALLOC_Pos)
475 #define SMPCC_STMCTRL_TRANS_ALLOC_ENABLE 1U
476 #define SMPCC_STMCTRL_TRANS_ALLOC_DISABLE 0U
478 #define SMPCC_STMCTRL_RD_MERGE_EN_Pos 3U
479 #define SMPCC_STMCTRL_RD_MERGE_EN_Msk (0x1UL << SMPCC_STMCTRL_RD_MERGE_EN_Pos)
480 #define SMPCC_STMCTRL_RD_MERGE_EN_ENABLE 1U
481 #define SMPCC_STMCTRL_RD_MERGE_EN_DISABLE 0U
483 #define SMPCC_STMCTRL_CROSS_EN_Pos 4U
484 #define SMPCC_STMCTRL_CROSS_EN_Msk (0x1UL << SMPCC_STMCTRL_CROSS_EN_Pos)
485 #define SMPCC_STMCTRL_CROSS_EN_ENABLE 1U
486 #define SMPCC_STMCTRL_CROSS_EN_DISABLE 0U
506 #define SMPCC_STMCFG_RD_BYTE_THRE_Pos 0U
507 #define SMPCC_STMCFG_RD_BYTE_THRE_Msk (0x3FFUL << SMPCC_STMCFG_RD_BYTE_THRE_Pos)
509 #define SMPCC_STMCFG_RD_DEGREE_Pos 12U
510 #define SMPCC_STMCFG_RD_DEGREE_Msk (0x7UL << SMPCC_STMCFG_RD_DEGREE_Pos)
512 #define SMPCC_STMCFG_RD_DISTANCE_Pos 16U
513 #define SMPCC_STMCFG_RD_DISTANCE_Msk (0x7UL << SMPCC_STMCFG_RD_DISTANCE_Pos)
515 #define SMPCC_STMCFG_WR_BYTE_THRE_Pos 20U
516 #define SMPCC_STMCFG_WR_BYTE_THRE_Msk (0x7FFUL << SMPCC_STMCFG_WR_BYTE_THRE_Pos)
542 #define SMPCC_DFF_PROT_CHK_EN_Pos 0U
543 #define SMPCC_DFF_PROT_CHK_EN_Msk (0x3UL << SMPCC_DFF_PROT_CHK_EN_Pos)
544 #define SMPCC_DFF_PROT_CHK_EN_ENABLE 2U
545 #define SMPCC_DFF_PROT_CHK_EN_DISABLE 1U
572 #define SMPCC_NS_RG_CFG_Pos 0U
573 #define SMPCC_NS_RG_CFG_Msk (0x3UL << SMPCC_NS_RG_CFG_Pos)
574 #define SMPCC_NS_RG_CFG_DISABLE 0x00U
575 #define SMPCC_NS_RG_CFG_NACL 0x10U
576 #define SMPCC_NS_RG_CFG_NAPOT 0x11U
591 #define SMPCC_PMON_EVENT_SEL_Pos 0U
592 #define SMPCC_PMON_EVENT_SEL_Msk (0xFFFFUL << SMPCC_PMON_EVENT_SEL_Pos)
593 #define SMPCC_PMON_EVENT_DISABLE 0U
594 #define SMPCC_PMON_EVENT_DATA_READ_COUNT 1U
595 #define SMPCC_PMON_EVENT_DATA_WRITE_COUNT 2U
596 #define SMPCC_PMON_EVENT_INSTR_READ_COUNT 3U
597 #define SMPCC_PMON_EVENT_DATA_READ_HIT_COUNT 4U
598 #define SMPCC_PMON_EVENT_DATA_WRITE_REPLACE_COUNT 5U
599 #define SMPCC_PMON_EVENT_DATA_READ_REPLACE_COUNT 6U
600 #define SMPCC_PMON_EVENT_DATA_READ_MISS_COUNT 7U
601 #define SMPCC_PMON_EVENT_INSTR_READ_HIT_COUNT 8U
602 #define SMPCC_PMON_EVENT_INSTR_READ_MISS_COUNT 9U
603 #define SMPCC_PMON_EVENT_INSTR_READ_REPLACE_COUNT 10U
605 #define SMPCC_PMON_CLIENT_SEL_Pos 16U
606 #define SMPCC_PMON_CLIENT_SEL_Msk (0x1FUL << SMPCC_PMON_CLIENT_SEL_Pos)
608 #define SMPCC_PMON_EVENT(event, client) \
609 (_VAL2FLD(SMPCC_PMON_EVENT_SEL, event) | \
610 _VAL2FLD(SMPCC_PMON_CLIENT_SEL, client))
676 #ifndef __SMPCC_BASEADDR
678 #error "__SMPCC_BASEADDR is not defined, please check!"
682 #define SMPCC_BASE __SMPCC_BASEADDR
683 #define SMPCC ((SMPCC_Type *)SMPCC_BASE)
703 return SMPCC->SMP_VER;
714 return SMPCC->SMP_CFG.b.cc_present;
725 return SMPCC->SMP_CFG.b.smp_core_num + 1;
736 return SMPCC->SMP_CFG.b.iocp_num;
747 return SMPCC->SMP_CFG.b.pmon_num;
758 return 1U <<
SMPCC->CC_CFG.b.cc_set;
769 return SMPCC->CC_CFG.b.cc_way + 1;
780 return 1 << (
SMPCC->CC_CFG.b.cc_lsize + 2);
791 return SMPCC->CC_CFG.b.cc_ecc;
804 SMPCC->SMP_ENB.b.smp_enable |= client_msk;
817 SMPCC->SMP_ENB.b.smp_enable &= ~client_msk;
854 return SMPCC->CC_CTRL.b.cc_en;
866 return (
SMPCC->SNOOP_PENDING.b.snoop_pending & client_msk) != 0;
878 return (
SMPCC->TRANS_PENDING.b.trans_pending & client_msk) != 0;
906 #if (__CPU_PA_SIZE > 32)
907 SMPCC->CLM_ADDR_BASE.clm_base64 = addr;
909 SMPCC->CLM_ADDR_BASE.clm32.clm_base32 = (uint32_t)addr;
911 SMPCC->CLM_WAY_EN = 0xFFFFU;
941 #if (__CPU_PA_SIZE > 32)
942 SMPCC->CLM_ADDR_BASE.clm_base64 = addr;
944 SMPCC->CLM_ADDR_BASE.clm32.clm_base32 = (uint32_t)addr;
946 SMPCC->CLM_WAY_EN = way_msk;
959 SMPCC->CLM_WAY_EN = 0x0000U;
972 SMPCC->CC_CTRL.w = val;
985 return SMPCC->CC_CTRL.w;
1406 return SMPCC->CC_RECV_CNT.b.cnt;
1418 SMPCC->CC_RECV_CNT.w = 0;
1431 return SMPCC->CC_FATAL_CNT.b.cnt;
1443 SMPCC->CC_FATAL_CNT.w = 0;
1456 SMPCC->CC_RECV_THV.b.cnt = threshold;
1469 return SMPCC->CC_RECV_THV.b.cnt;
1482 SMPCC->CC_FATAL_THV.b.cnt = threshold;
1495 return SMPCC->CC_FATAL_THV.b.cnt;
1507 return SMPCC->CLIENT_ERR_STATUS[client_id].w;
1520 SMPCC->STM_CTRL.w = val;
1533 return SMPCC->STM_CTRL.w;
1732 return SMPCC->SMP_PMON_SEL[idx].w;
1748 return SMPCC->SMP_PMON_CNT[idx];
1763 SMPCC->SMP_PMON_CNT[idx] = 0;
1775 return SMPCC->CLIENT_ERR_ADDR[client_id];
1787 SMPCC->CLIENT_WAY_MASK[client_id].w = way_msk;
1798 return SMPCC->CC_ERR_INJ.b.inj_mode;
1810 _VAL2FLD(SMPCC_ERR_INJ_INJECCCODE, ecc_code);
1813 #if defined(__CCM_PRESENT) && (__CCM_PRESENT == 1)
1868 uint32_t val =
__LW(addr);
__STATIC_INLINE unsigned long MLockCCacheLine(unsigned long addr)
Lock one Cluster Cache line specified by address in M-Mode.
__STATIC_FORCEINLINE void __SW(volatile void *addr, uint32_t val)
Write 32bit value to address (32 bit)
__STATIC_FORCEINLINE uint32_t __LW(volatile void *addr)
Load 32bit value from address (32 bit)
#define __RWMB()
Read & Write Memory barrier.
#define __STATIC_FORCEINLINE
Define a static function that should be always inlined by the compiler.
#define MFlushInvalDCacheCCacheLine(addr)
Flush and invalidate one D-Cache and Cluster Cache line specified by address in M-Mode.
__STATIC_INLINE void MInvalICacheLine(unsigned long addr)
Invalidate one I-Cache line specified by address in M-Mode.
#define _VAL2FLD(field, value)
Mask and shift a bit field value for use in a register bit range.
#define __IM
Defines 'read only' structure member permissions.
#define __IOM
Defines 'read/write' structure member permissions.
#define __IO
Defines 'read / write' permissions.
__STATIC_FORCEINLINE void SMPCC_DisableStreamReadCross4K(void)
Disable Stream Read Cross 4K Boundary.
__STATIC_FORCEINLINE void SMPCC_DisableStreamMergeNCRead(void)
Disable Stream Merge Non-Cacheable Read.
__STATIC_FORCEINLINE void SMPCC_LimitCCachePrefetchOutsNum(void)
Limit Cluster Cache Prefetch Outstanding Number.
__STATIC_FORCEINLINE void SMPCC_DisableCLMECCCheck(void)
Disable Cluster Local Memory ECC Check.
__STATIC_FORCEINLINE int32_t SMPCC_IsCCacheEnabled(void)
Get status of cluster cache.
__STATIC_FORCEINLINE void SMPCC_EnableCLMECC(void)
Enable Cluster Local Memory ECC.
__STATIC_FORCEINLINE uint32_t SMPCC_GetCCacheSetNum(void)
Get the number of cache sets.
__STATIC_FORCEINLINE void SMPCC_SetECCCode(uint32_t ecc_code)
Set ECC code for error injection.
__STATIC_FORCEINLINE uint8_t SMPCC_GetCoreNum(void)
Get the number of cores in the cluster.
__STATIC_FORCEINLINE void SMPCC_EnableStreamMergeNCRead(void)
Enable Stream Merge Non-Cacheable Read.
__STATIC_FORCEINLINE void SMPCC_SetSTMControl(uint32_t val)
Set Stream Control Register.
__STATIC_FORCEINLINE void SMPCC_EnableStreamRead(void)
Enable Stream Read.
__STATIC_FORCEINLINE void SMPCC_MaskClientCCacheWays(uint8_t client_id, uint32_t way_msk)
Mask Client Cluster Cache Ways.
__STATIC_FORCEINLINE void SMPCC_EnableCLMECCExcp(void)
Enable Cluster Local Memory ECC Exception.
__STATIC_FORCEINLINE uint8_t SMPCC_GetIOCPNum(void)
Get the number of IO coherency ports.
__STATIC_FORCEINLINE void SMPCC_EnableL1PrefetchShareCacheline(void)
Enable L1 Prefetch to Snoop and Share Cacheline.
__STATIC_FORCEINLINE int32_t SMPCC_IsXorErrorInjectMode(void)
Check if ECC error injection mode is XOR mode.
__STATIC_FORCEINLINE uint8_t SMPCC_IsCCacheSupportECC(void)
Check if cluster cache supports ECC.
__STATIC_FORCEINLINE void SMPCC_SetCLMAllWays(uint64_t addr)
Set Cluster Local Memory to use all ways.
__STATIC_FORCEINLINE void SMPCC_CLMErrInject(uint32_t ecc_code, void *addr)
Inject ECC error to CLM (Cluster Local Memory)
__STATIC_FORCEINLINE void SMPCC_DisableCCacheECCExcp(void)
Disable Cluster Cache ECC Exception.
__STATIC_FORCEINLINE void SMPCC_EnableUModeCmd(void)
Enable User Mode Commands.
__STATIC_FORCEINLINE void SMPCC_EnableStreamTransAlloc(void)
Enable Stream Translate Allocate.
__STATIC_FORCEINLINE uint16_t SMPCC_GetFatalErrCntThreshold(void)
Get Fatal Error Count Threshold.
__STATIC_FORCEINLINE void SMPCC_DisableCCacheECC(void)
Disable Cluster Cache ECC.
__STATIC_FORCEINLINE void SMPCC_DisableCLMECC(void)
Disable Cluster Local Memory ECC.
__STATIC_FORCEINLINE uint8_t SMPCC_IsAnySnoopPending(uint32_t client_msk)
Check if any client is being snooped.
__STATIC_FORCEINLINE uint32_t SMPCC_GetCCacheWayNum(void)
Get the number of cache ways.
__STATIC_FORCEINLINE void SMPCC_DisableCCachePrefetchNoWb(void)
Disable Cluster Cache Prefetch to Avoid Write Back.
__STATIC_FORCEINLINE SMP_VER_Type SMPCC_GetVersion(void)
Get the SMP version number.
__STATIC_FORCEINLINE void SMPCC_EnableCCacheECCCheck(void)
Enable Cluster Cache ECC Check.
__STATIC_FORCEINLINE void SMPCC_SetPMONEventSelect(uint8_t idx, uint8_t client_id, uint8_t event)
Set Performance Monitor Event Selection.
__STATIC_FORCEINLINE void SMPCC_DisableCCache(void)
Disable cluster cache.
__STATIC_FORCEINLINE void SMPCC_EnableCCacheECC(void)
Enable Cluster Cache ECC.
__STATIC_FORCEINLINE void SMPCC_DisableL1PrefetchShareCacheline(void)
Disable L1 Prefetch to Snoop and Share Cacheline.
__STATIC_FORCEINLINE void SMPCC_SetRecvErrCntThreshold(uint16_t threshold)
Set Recoverable Error Count Threshold.
__STATIC_FORCEINLINE void SMPCC_EnableCLMECCCheck(void)
Enable Cluster Local Memory ECC Check.
__STATIC_FORCEINLINE void SMPCC_DisableStreamRead(void)
Disable Stream Read.
__STATIC_FORCEINLINE void SMPCC_EnableSnoop(uint16_t client_msk)
Enable snoop for specific clients.
__STATIC_FORCEINLINE void SMPCC_DisableRecvErrIrq(void)
Disable Recoverable Error Interrupt.
__STATIC_FORCEINLINE void SMPCC_ClearRecvErrCount(void)
Clear Recoverable Error Count.
__STATIC_FORCEINLINE void SMPCC_EnableCCache(void)
Enable cluster cache.
__STATIC_FORCEINLINE void SMPCC_DisableBusErrIrq(void)
Disable Bus Error Interrupt.
__STATIC_FORCEINLINE void SMPCC_DisableStreamTransAlloc(void)
Disable Stream Translate Allocate.
__STATIC_FORCEINLINE void SMPCC_DisableCCacheECCCheck(void)
Disable Cluster Cache ECC Check.
__STATIC_FORCEINLINE void SMPCC_SetCLMNWays(uint64_t addr, uint32_t way_msk)
Set Cluster Local Memory to use specific ways.
__STATIC_FORCEINLINE uint8_t SMPCC_IsCCachePresent(void)
Check if cluster cache is present.
__STATIC_FORCEINLINE uint32_t SMPCC_GetClientErrStatus(uint8_t client_id)
Get Client Error Status.
__STATIC_FORCEINLINE void SMPCC_SetNSRegionNAPOT(uint8_t region_id, uint64_t addr)
Set Non-Shareable Region to NAPOT.
__STATIC_FORCEINLINE uint8_t SMPCC_GetPMONNum(void)
Get the number of performance monitors.
__STATIC_FORCEINLINE void SMPCC_DisableSModeCmd(void)
Disable Supervisor Mode Commands.
__STATIC_FORCEINLINE void SMPCC_DisableUModeCmd(void)
Disable User Mode Commands.
__STATIC_FORCEINLINE void SMPCC_UnlimitCCachePrefetchOutsNum(void)
Unlimit Cluster Cache Prefetch Outstanding Number.
__STATIC_FORCEINLINE void SMPCC_DisableStreamWrite(void)
Disable Stream Write.
__STATIC_FORCEINLINE void SMPCC_EnableRecvErrIrq(void)
Enable Recoverable Error Interrupt.
__STATIC_FORCEINLINE uint32_t SMPCC_GetFatalErrCount(void)
Get Fatal Error Count.
__STATIC_FORCEINLINE uint32_t SMPCC_GetPMONEventSelect(uint8_t idx)
Get Performance Monitor Event Selection.
__STATIC_FORCEINLINE void SMPCC_EnableCCacheECCExcp(void)
Enable Cluster Cache ECC Exception.
__STATIC_FORCEINLINE void SMPCC_EnableICacheSnoopDCache(void)
Enable ICache to Snoop DCache.
__STATIC_FORCEINLINE void SMPCC_EnableFatalErrIrq(void)
Enable Fatal Error Interrupt.
__STATIC_FORCEINLINE void SMPCC_CCacheErrRestore(void *addr)
Restore cluster cache after error injection.
__STATIC_FORCEINLINE void SMPCC_ClearPMONCount(uint8_t idx)
Clear Performance Monitor Count.
__STATIC_FORCEINLINE uint32_t SMPCC_GetSTMControl(void)
Get Stream Control Register Value.
__STATIC_FORCEINLINE void SMPCC_SetNSRegionNACL(uint8_t region_id, uint64_t addr)
Set Non-Shareable Region to NACL.
__STATIC_FORCEINLINE void SMPCC_DisableICacheSnoopDCache(void)
Disable ICache to Snoop DCache.
__STATIC_FORCEINLINE uint16_t SMPCC_GetRecvErrCntThreshold(void)
Get Recoverable Error Count Threshold.
__STATIC_FORCEINLINE void SMPCC_SetFatalErrCntThreshold(uint16_t threshold)
Set Fatal Error Count Threshold.
__STATIC_FORCEINLINE void SMPCC_SetCCacheControl(uint32_t val)
Set Cluster Cache Control register.
__STATIC_FORCEINLINE uint8_t SMPCC_IsAnyTransactionPending(uint32_t client_msk)
Check if any transaction is pending for clients.
__STATIC_FORCEINLINE void SMPCC_EnableCCacheEarlyPrefetch(void)
Enable Cluster Cache Early Prefetch.
__STATIC_FORCEINLINE void SMPCC_CCacheDramErrInject(uint32_t ecc_code, void *addr)
Inject ECC error to cluster cache data RAM.
__STATIC_FORCEINLINE void SMPCC_LockECCErrInjection(void)
Lock ECC Error Injection Register.
__STATIC_FORCEINLINE void SMPCC_LockECCConfig(void)
Lock ECC Configuration.
__STATIC_FORCEINLINE uint32_t SMPCC_GetRecvErrCount(void)
Get Recoverable Error Count.
__STATIC_FORCEINLINE void SMPCC_DisableCLMECCExcp(void)
Disable Cluster Local Memory ECC Exception.
__STATIC_FORCEINLINE void SMPCC_EnableStreamReadCross4K(void)
Enable Stream Read Cross 4K Boundary.
__STATIC_FORCEINLINE void SMPCC_DisableSnoop(uint16_t client_msk)
Disable snoop for specific clients.
__STATIC_FORCEINLINE void SMPCC_SetCLMNoWay(void)
Configure Cluster Local Memory to use no ways.
__STATIC_FORCEINLINE void SMPCC_DisableNSRegion(uint8_t region_id)
Disable Non-Shareable Region.
__STATIC_FORCEINLINE uint64_t SMPCC_GetClientErrAddr(uint8_t client_id)
Get Client Error Address.
__STATIC_FORCEINLINE void SMPCC_DisableFatalErrIrq(void)
Disable Fatal Error Interrupt.
__STATIC_FORCEINLINE void SMPCC_EnableSModeCmd(void)
Enable Supervisor Mode Commands.
__STATIC_FORCEINLINE void SMPCC_CCacheTramErrInject(uint32_t ecc_code, void *addr)
Inject ECC error to cluster cache tag RAM.
__STATIC_FORCEINLINE void SMPCC_DisableCCacheEarlyPrefetch(void)
Disable Cluster Cache Early Prefetch.
__STATIC_FORCEINLINE uint64_t SMPCC_GetPMONCount(uint8_t idx)
Get Performance Monitor Count.
__STATIC_FORCEINLINE void SMPCC_EnableStreamWrite(void)
Enable Stream Write.
__STATIC_FORCEINLINE void SMPCC_EnableBusErrIrq(void)
Enable Bus Error Interrupt.
__STATIC_FORCEINLINE uint8_t SMPCC_GetCCacheLineSize(void)
Get the cache line size.
__STATIC_FORCEINLINE uint32_t SMPCC_GetCCacheControl(void)
Get Cluster Cache Control register value.
__STATIC_FORCEINLINE void SMPCC_EnableCCachePrefetchNoWb(void)
Enable Cluster Cache Prefetch to Avoid Write Back.
__STATIC_FORCEINLINE void SMPCC_ClearFatalErrCount(void)
Clear Fatal Error Count.
#define SMPCC_CTRL_I_SNOOP_D_EN_DISABLE
SMPCC CC_CTRL I_SNOOP_D_EN Disable.
#define SMPCC_ERR_INJ_INJECCCODE_Msk
SMPCC CC_ERR_INJ INJECCCODE Mask.
#define SMPCC_NS_RG_CFG_DISABLE
SMPCC Non-Shareable Region CFG DISABLE.
#define SMPCC_CTRL_CC_ECC_EN_ENABLE
SMPCC CC_CTRL CC_ECC_EN Enable.
#define SMPCC_CTRL_CLM_ECC_CHK_EN_DISABLE
SMPCC CC_CTRL CLM_ECC_CHK_EN Disable.
#define SMPCC_CTRL_CC_ECC_EXCP_EN_DISABLE
SMPCC CC_CTRL ECC_EXCP_EN Disable.
#define SMPCC_CTRL_PF_NO_WB_ENABLE
SMPCC CC_CTRL PF_NO_WB Enable.
#define SMPCC_CTRL_CLM_EXCP_EN_ENABLE
SMPCC CC_CTRL CLM_EXCP_EN Enable.
__IO uint64_t CLIENT_ERR_ADDR_Type
Type to access CLIENT_ERR_ADDR register.
#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.
#define SMPCC_CTRL_FATAL_ERR_IRQ_EN_ENABLE
SMPCC CC_CTRL FATAL_ERR_IRQ_EN Enable.
#define SMPCC_CTRL_CLM_EXCP_EN_DISABLE
SMPCC CC_CTRL CLM_EXCP_EN Disable.
#define SMPCC_CTRL_RECV_ERR_IRQ_EN_ENABLE
SMPCC CC_CTRL RECV_ERR_IRQ_EN Enable.
#define SMPCC_CTRL_CLM_ECC_EN_DISABLE
SMPCC CC_CTRL CLM_ECC_EN Disable.
#define SMPCC_CTRL_PF_NO_WB_DISABLE
SMPCC CC_CTRL PF_NO_WB Disable.
#define SMPCC_CTRL_CC_ECC_EXCP_EN_ENABLE
SMPCC CC_CTRL ECC_EXCP_EN Enable.
#define SMPCC_CTRL_CC_ECC_EN_DISABLE
SMPCC CC_CTRL CC_ECC_EN Disable.
#define SMPCC_STMCTRL_WR_STM_EN_DISABLE
SMPCC WRITE Stream Enable Disable.
#define SMPCC_CTRL_PF_L2_EARLY_EN_DISABLE
SMPCC CC_CTRL PF_L2_EARLY_EN Disable.
#define SMPCC_STMCTRL_CROSS_EN_DISABLE
SMPCC READ STREAM CROSS 4K Disable.
#define SMPCC_CTRL_USE_CMD_EN_ENABLE
SMPCC CC_CTRL USE_CMD_EN Enable.
#define SMPCC_CTRL_SUP_CMD_EN_ENABLE
SMPCC CC_CTRL SUP_CMD_EN Enable.
#define SMPCC_STMCTRL_CROSS_EN_ENABLE
SMPCC READ STREAM CROSS 4K Enable.
#define SMPCC_CTRL_PF_L2_EARLY_EN_ENABLE
SMPCC CC_CTRL PF_L2_EARLY_EN Enable.
#define SMPCC_CTRL_PF_BIU_OUTS_EN_ENABLE
SMPCC CC_CTRL PF_BIU_OUTS_EN Enable.
__IO uint64_t SMP_PMON_CNT_Type
Type to access SMP_PMON_CNT register.
#define SMPCC_CTRL_PF_SH_CL_EN_DISABLE
SMPCC CC_CTRL PF_SH_CL_EN Disable.
#define SMPCC_CTRL_ECC_CHK_EN_ENABLE
SMPCC CC_CTRL ECC_CHK_EN Enable.
#define SMPCC_CTRL_CLM_ECC_CHK_EN_ENABLE
SMPCC CC_CTRL CLM_ECC_CHK_EN Enable.
#define SMPCC_NS_RG_CFG_NAPOT
SMPCC Non-Shareable Region CFG NAPOT.
#define SMPCC_CTRL_FATAL_ERR_IRQ_EN_DISABLE
SMPCC CC_CTRL FATAL_ERR_IRQ_EN Disable.
#define SMPCC_PMON_EVENT(event, client)
#define SMPCC_STMCTRL_TRANS_ALLOC_ENABLE
SMPCC TRANSLATE ALLOC ATTRIBUTE Enable.
#define SMPCC_STMCTRL_RD_MERGE_EN_DISABLE
SMPCC READ Merge Enable Disable.
#define SMPCC_CTRL_PF_SH_CL_EN_ENABLE
SMPCC CC_CTRL PF_SH_CL_EN Enable.
#define SMPCC_STMCTRL_RD_STM_EN_ENABLE
SMPCC READ Stream Enable Enable.
#define SMPCC_CTRL_BUS_ERR_IRQ_EN_ENABLE
SMPCC CC_CTRL BUS_ERR_IRQ_EN Enable.
#define SMPCC_CTRL_I_SNOOP_D_EN_ENABLE
SMPCC CC_CTRL I_SNOOP_D_EN Enable.
#define SMPCC_STMCTRL_TRANS_ALLOC_DISABLE
SMPCC TRANSLATE ALLOC ATTRIBUTE Disable.
#define SMPCC_CTRL_LOCK_ECC_ERR_INJ_LOCK
SMPCC CC_CTRL LOCK_ECC_ERR_INJ Lock.
#define SMPCC_CTRL_CLM_ECC_EN_ENABLE
SMPCC CC_CTRL CLM_ECC_EN Enable.
#define SMPCC_STMCTRL_WR_STM_EN_ENABLE
SMPCC WRITE Stream Enable Enable.
#define SMPCC_NS_RG_CFG_NACL
SMPCC Non-Shareable Region CFG NACL.
#define SMPCC_ERR_INJ_INJTAG_DISABLE
SMPCC CC_ERR_INJ INJTAG Disable.
#define SMPCC_STMCTRL_RD_STM_EN_DISABLE
SMPCC READ Stream Enable Disable.
#define SMPCC_CTRL_RECV_ERR_IRQ_EN_DISABLE
SMPCC CC_CTRL RECV_ERR_IRQ_EN Disable.
#define SMPCC_CTRL_USE_CMD_EN_DISABLE
SMPCC CC_CTRL USE_CMD_EN Disable.
#define SMPCC_ERR_INJ_INJCLM_ENABLE
SMPCC CC_ERR_INJ INJCLM Enable.
__IO uint64_t CC_BUS_ERR_ADDR_Type
Type to access CC_BUS_ERR_ADDR register.
#define SMPCC_CTRL_ECC_CHK_EN_DISABLE
SMPCC CC_CTRL ECC_CHK_EN Disable.
#define SMPCC_ERR_INJ_INJDATA_DISABLE
SMPCC CC_ERR_INJ INJDATA Disable.
#define SMPCC_CTRL_CC_EN_DISABLE
SMPCC CC_CTRL CC_EN Disable.
#define SMPCC_CTRL_SUP_CMD_EN_DISABLE
SMPCC CC_CTRL SUP_CMD_EN Disable.
#define SMPCC_CTRL_PF_BIU_OUTS_EN_DISABLE
SMPCC CC_CTRL PF_BIU_OUTS_EN Disable.
#define SMPCC_CTRL_BUS_ERR_IRQ_EN_DISABLE
SMPCC CC_CTRL BUS_ERR_IRQ_EN Disable.
#define SMPCC_ERR_INJ_INJTAG_ENABLE
SMPCC CC_ERR_INJ INJTAG Enable.
#define SMPCC_CTRL_CC_EN_ENABLE
SMPCC CC_CTRL CC_EN Enable.
#define SMPCC_STMCTRL_RD_MERGE_EN_ENABLE
SMPCC READ Merge Enable Enable.
#define SMPCC_ERR_INJ_INJCLM_DISABLE
SMPCC CC_ERR_INJ INJCLM Disable.
#define SMPCC
SMPCC configuration struct.
Access to the structure of SMPCC Memory Map.
__IOM CLM_ADDR_BASE_Type CLM_ADDR_BASE
Offset: 0x0D0 (R/W) Cluster Local Memory base address.
__IM SNOOP_PENDING_Type SNOOP_PENDING
Offset: 0x0C8 (R) indicate the core is being snooped or not in SCU.
__IOM uint32_t CLM_WAY_EN
Offset: 0x0D8 (R/W) CC way enable register.
__IM TRANS_PENDING_Type TRANS_PENDING
Offset: 0x0CC (R) indicate the core's transaction is finished or not in the SCU.
__IOM ECC_ERR_MSK_Type ECC_ERR_MSK
Offset: 0x0F0 (R/W) Mask L2M ECC Error register.
__IOM CC_CMD_Type CC_uCMD
Offset: 0x0C4 (R/W) user mode CC command and status register.
__IOM CC_CMD_Type CC_sCMD
Offset: 0x0C0 (R/W) supervisor mode CC command and status register.
__IOM CC_RECV_CNT_Type CC_RECV_CNT
Offset: 0x01C (R/W) CC ECC recoverable error count register.
__IOM CC_BUS_ERR_ADDR_Type CC_BUS_ERR_ADDR
Offset: 0x02C (R/W) CC bus error address register.
__IOM DFF_PROT_Type DFF_PROT
Offset: 0x0EC (R/W) Hardware Register protect Enable register.
__IOM CC_CMD_Type CC_mCMD
Offset: 0x014 (R/W) machine mode CC command and status register.
__IOM CC_ERR_INJ_Type CC_ERR_INJ
Offset: 0x018 (R/W) CC ECC error injection control register.
const SMP_VER_Type SMP_VER
Offset: 0x000 (R) SMP version register.
__IM CC_CFG_Type CC_CFG
Offset: 0x008 (R) CC config register.
__IOM STM_CTRL_Type STM_CTRL
Offset: 0x0E0 (R/W) Stream read/write control register.
__IOM CC_FATAL_CNT_Type CC_FATAL_CNT
Offset: 0x020 (R/W) CC ECC fatal error count register.
__IM SMP_CFG_Type SMP_CFG
Offset: 0x004 (R) SMP Configuration register.
__IOM CC_RECV_THV_Type CC_RECV_THV
Offset: 0x024 (R/W) CC ECC recoverable error threshold register.
__IOM STM_TIMEOUT_Type STM_TIMEOUT
Offset: 0x0E8 (R/W) Stream read/write timeout register.
__IOM CC_FATAL_THV_Type CC_FATAL_THV
Offset: 0x028 (R/W) CC ECC fatal error threshold register.
__IOM CC_INVALID_ALL_Type CC_INVALID_ALL
Offset: 0x0DC (R/W) CC invalidate all register.
__IOM STM_CFG_Type STM_CFG
Offset: 0x0E4 (R/W) Stream read/write configuration register.
__IOM CC_CTRL_Type CC_CTRL
Offset: 0x010 (R/W) CC control register.
__IOM SMP_ENB_Type SMP_ENB
Offset: 0x00C (R/W) SMP enable register.
Union type to access CC_CFG information register.
__IM uint32_t cc_tcycle
bit: 12..14 L2 tag ram access cycle = cc_tcycle + 1
__IM uint32_t cc_dcycle
bit: 15..17 L2 Data sram access cycle = cc_dcycle + 1
__IM uint32_t cc_ecc
bit: 11 cluster cache ECC supports ECC or not
__IM uint32_t cc_lsize
bit: 8..10 cluster cache line size = 2^(cc_lsize + 2)
__IM uint32_t cc_set
bit: 0..3 cluster cache set number = 2^(cc_set)
uint32_t w
Type used for word access.
__IM uint32_t _reserved
bit: 18..31 reserved
__IM uint32_t cc_way
bit: 4..7 cluster cache way number = cc_way + 1
Union type to access CC_CMD register.
__IM uint32_t _reserved
bit: 5..22 reserved
__IOM uint32_t feisc
bit: 24 fatal error interrupt status, write 1 to clean
__IM uint32_t complete
bit: 31 completion status
uint32_t w
Type used for word access.
__IOM uint32_t besc
bit: 25 bus error status, write 1 to clean
__IOM uint32_t cmd
bit: 0..4 cluster cache maintain command code
__IM uint32_t result_code
bit: 26..30 result code
__IOM uint32_t reisc
bit: 23 recoverable error interrupt status, write 1 to clean
Union type to access CC_CTRL configure register.
__IOM uint32_t use_cmd_en
bit: 10 enable U mode can operate register CC_uCMD and SMP_PMON_SEL
__IOM uint32_t clm_ecc_en
bit: 12 clm ecc enable bit
__IOM uint32_t early_wr_err
bit: 20 early write response has error
__IOM uint32_t iocc_err
bit: 19 iocc has error
__IOM uint32_t pf_sh_cl_en
bit: 15 enable L1 prefetch to snoop and share cacheline from other cores
__IOM uint32_t ecc_chk_en
bit: 11 cc ecc check enable bit
__IOM uint32_t pf_l2_early_en
bit: 16 enable L2 prefetch to initialize external bus read access while lookup the cluster cache
__IOM uint32_t cc_ecc_en
bit: 1 cluster cache ECC enable bit
__IOM uint32_t clm_ecc_chk_en
bit: 14 clm ecc check enable bit
uint32_t w
Type used for word access.
__IOM uint32_t bus_err_pend
bit: 7 indicate if there is bus error pending
__IOM uint32_t lock_ecc_err_inj
bit: 4 lock cc ecc error injection register
__IOM uint32_t recv_err_irq_en
bit: 5 enable the interrupt when recoverable error count exceeds the threshold
__IOM uint32_t cc_en
bit: 0 cluster cache enable bit
__IOM uint32_t pf_biu_outs_en
bit: 17 enable the limit of outstanding L2 prefetch to the number of L2 prefetch line-buffer
__IOM uint32_t clm_excp_en
bit: 13 clm ecc exception enable bit
__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 lock_ecc_cfg
bit: 3 lock the cc ecc configuration bit
__IOM uint32_t ecc_excp_en
bit: 2 cluster cache ECC exception enable bit
__IM uint32_t _reserved
bit: 22..31 reserved
__IOM uint32_t fatal_err_irq_en
bit: 6 enable the interrupt when fatal error count exceeds the threshold
__IOM uint32_t i_snoop_d_en
bit: 18 snoop to dcache for icache refill reads enable
__IOM uint32_t sup_cmd_en
bit: 9 enable S mode can operate register CC_sCMD and SMP_PMON_SEL
__IOM uint32_t bus_err_irq_en
bit: 8 enable the buss error interrupt of cc maintain operation
Union type to access CC_ERR_INJ register.
__IM uint32_t _reserved0
bit: 4..23 reserved
__IOM uint32_t inj_clm
bit: 2 ECC error injection to clm ram
__IOM uint32_t inj_mode
bit: 3 ECC error injection mode: 0-direct write mode, 1-xor write mode
uint32_t w
Type used for word access.
__IM uint32_t inj_ecc_code
24..32 ECC code for injection
__IOM uint32_t inj_data
bit: 0 ECC error injection to data ram
__IOM uint32_t inj_tag
bit: 1 ECC error injection to tag ram
Union type to access CC_FATAL_CNT register.
__IOM uint32_t cnt
bit: 0..15 count of the fatal error
__IM uint32_t _reserved
bit: 16..31 reserved
uint32_t w
Type used for word access.
Union type to access CC_FATAL_THV register.
uint32_t w
Type used for word access.
__IM uint32_t _reserved
bit: 16..31 reserved
__IOM uint32_t cnt
bit: 0..15 count of the fatal error threshold value
Union type to access CC_INVALID_ALL register.
__IM uint32_t _reserved
bit: 1..31 reserved
__IOM uint32_t cs
bit: 0 write 1 to invalid all cluster cache, and hardware auto clean when operation is done
uint32_t w
Type used for word access.
Union type to access CC_RECV_CNT register.
uint32_t w
Type used for word access.
__IOM uint32_t cnt
bit: 0..15 count of the recoverable error
__IM uint32_t _reserved
bit: 16..31 reserved
Union type to access CC_RECV_THV register.
__IOM uint32_t cnt
bit: 0..15 count of the recoverable error threshold value
__IM uint32_t _reserved
bit: 16..31 reserved
uint32_t w
Type used for word access.
Union type to access CLIENT_ERR_STATUS register.
__IOM uint32_t write_bus_err
bit: 1 write bus error
__IOM uint32_t cc_scu_ecc_err
bit: 2 cc scu ecc error
uint32_t w
Type used for word access.
__IOM uint32_t iocp_bus_err
bit: 3 iocp bus error
__IOM uint32_t read_bus_err
bit: 0 read bus error
__IM uint32_t _reserved
bit: 4..31 reserved
Union type to access CLIENT_WAY_MASK register.
__IOM uint32_t mask
bit: 0..15 mask this way for the client
__IM uint32_t _reserved
bit: 16..31 reserved
uint32_t w
Type used for word access.
Union type to access CLM_ADDR_BASE register.
uint64_t clm_base64
Type used access whole 64-bits.
__IOM uint32_t clm_base32
Union type to access CLM_WAY_EN register.
uint32_t w
Type used for word access.
__IM uint32_t _reserved
bit: 16..31 reserved
__IOM uint32_t ena
bit: 0..15 This way is used as CLM or not
Union type to access DFF_PROT register.
__IM uint32_t _reserved
bit: 2..31 reserved
uint32_t w
Type used for word access.
__IOM uint32_t chk_en
bit: 0..1 register protect check enable.
Union type to access ECC_ERR_MSK register.
__IM uint32_t _reserved
bit: 2..31 reserved
uint32_t w
Type used for word access.
__IOM uint32_t cc_core_err_mask
bit: 1 mask core double bit error output
__IOM uint32_t cc_l2_err_msk
bit: 0 mask L2 double bit error output
Union type to access NS_RG register.
__IOM uint64_t cfg
bit: 0..1 0x00: disable region; 0x10:NACL; 0x11: NAPOT
__IOM uint64_t dw
Type used for double word access.
__IOM uint64_t addr_hi
bit: 2..63 address of the region
Union type to access SMP_CFG information register.
__IM uint32_t iocp_num
bit: 7..12 IO coherency port number in the cluster
__IM uint32_t cc_present
bit: 0 cluster cache present or not
__IM uint32_t w
Type used for word access.
__IM uint32_t pmon_num
bit: 13..18 performance monitor number in the cluster
__IM uint32_t smp_core_num
bit: 1..6 core number in cluster
__IM uint32_t _reserved
bit: 19..31 reserved
Union type to access SMP_ENB configure register.
__IOM uint32_t smp_enable
bit: 0..15 SMP enable bits for clients in cluster
__IM uint32_t _reserved
bit: 16..31 reserved
uint32_t w
Type used for word access.
Union type to access SMP_PMON_SEL register.
__IOM uint32_t event_sel
bit: 0..15 select the event for this performance monitor counter
__IM uint32_t _reserved
bit: 21..31 reserved
uint32_t w
Type used for word access.
__IOM uint32_t client_sel
bit: 16..20 specify the core in the cluster or external master number hooked to I/O coherency port
Union type to access SMP_VER information register.
__IM uint32_t w
Type used for word access.
__IM uint32_t min_ver
bit: 8..15 minor version number
__IM uint32_t _reserved
bit: 24..31 reserved
__IM uint32_t maj_ver
bit: 16..23 major version number
__IM uint32_t mic_ver
bit: 0..7 micro version number
Union type to access SNOOP_PENDING register.
__IM uint32_t _reserved
bit: 16..31 reserved
__IM uint32_t w
Type used for word access.
__IM uint32_t snoop_pending
bit: 0..15 snoop pending bit for each client
Union type to access STM_CFG register.
__IM uint32_t _reserved3
bit: 30..31 reserved
__IOM uint32_t rd_byte_threshold
bit: 0..9 the prefetch number for read stream
__IOM uint32_t wr_byte_threshold
bit: 20..29 the line buffer timeout free time when no same cacheline transactions
__IM uint32_t _reserved0
bit: 10..11 reserved
__IOM uint32_t rd_degree
bit: 12..14 the delta between prefetch address and current bus address
uint32_t w
Type used for word access.
__IOM uint32_t rd_distance
bit: 16..18 the threshold bytes matching write stream training successfully
__IM uint32_t _reserved2
bit: 19 reserved
__IM uint32_t _reserved1
bit: 15 reserved
Union type to access STM_CTRL register.
__IOM uint32_t cross_en
bit: 4 read stream cross 4k enable
__IOM uint32_t trans_alloc
bit: 2 translate allocate attribute to non-alloc attribute enable
__IOM uint32_t rd_merge_en
bit: 3 non-cacheable attribute read merge enable
__IOM uint32_t rd_stm_en
bit: 0 read stream enable
__IM uint32_t _reserved
bit: 5..31 reserved
__IOM uint32_t wr_stm_en
bit: 1 write stream enable
uint32_t w
Type used for word access.
Union type to access STM_TIMEOUT register.
__IOM uint32_t timeout
bit: 0..10 write streaming wait clk num
__IM uint32_t _reserved
bit: 11..31 reserved
uint32_t w
Type used for word access.
Union type to access TRANS_PENDING register.
__IM uint32_t _reserved
bit: 16..30 reserved
__IM uint32_t trans_pending
bit: 0..15 transaction pending bit for each client
__IM uint32_t ext_trans
bit: 31 external memory bus transaction pending
__IM uint32_t w
Type used for word access.