📄 csl_cache.h
字号:
*
* ===========================================================================
*/
extern void CACHE_invL1d (
void *blockPtr,
Uint32 byteCnt,
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_wbInvL1d
*
* @desc
* Writeback invalidates range specified in L1D.As per the specification,
* - The start of the range that needs to be writeback invalidated is
* programmed into L1DWIBAR
* - The byte count is programmed in L1DWIWC
*
* @arg blockPtr
* Start address of range to be written back invalidated
*
* @arg byteCnt
* Number of bytes to be written back invalidated
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not.
*
* @ret None
*
* @eg
* ...
CACHE_wbInvL1d ((Uint32*)(0x1000),200,CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_wbInvL1d (
void *blockPtr,
Uint32 byteCnt,
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_wbAllL1d
*
* @desc
* Invalidates All of L1D.As per the specification,
* - The L1DINV is programmed
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not
*
* @ret None
*
* @eg
* ...
CACHE_wbAllL1d (CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_wbAllL1d (
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_wbInvAllL1d
*
* @desc
* Writeback invalidates All of L1D.As per the specification,
* - The L1DWBINV is programmed
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not
*
* @ret None
*
* @eg
* ...
CACHE_wbInvAllL1d (CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_invAllL1d (
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_wbInvAllL1d
*
* @desc
* Writeback invalidates All of L1D.As per the specification,
* - The L1DWBINV is programmed
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not
*
* @ret None
*
* @eg
* ...
CACHE_wbInvAllL1d (CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_wbInvAllL1d (
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_setL2Size
*
* @desc
* Sets the L2 size.As per the specification,
* - The old mode is read from the L2CFG
* - The new mode is programmed in L2CFG
* - L2CFG is read back to ensure it is set
*
* @arg newSize
* New size to be programmed
*
* @ret CACHE_L2Size
* Old Size set for L2
*
* @eg
* CACHE_L2Mode oldMode;
oldSize = CACHE_setL2Size(CACHE_L2_32KCACHE);
...
*
* ===========================================================================
*/
extern CACHE_L2Size CACHE_setL2Size (
CACHE_L2Size newSize
);
/*
* =============================================================================
* @n@b CACHE_setL2Mode
*
* @desc
* Sets the L2 mode.As per the specification,
* - The old mode is read from the L2CFG
* - The new mode is programmed in L2CFG
* - L2CFG is read back to ensure it is set
*
* @arg newMode
* New mode to be programmed
*
* @ret CACHE_L2Mode
* Old Mode set for L2
*
* @eg
* CACHE_L2Mode oldMode;
oldMode = CACHE_setL2Mode(CACHE_L2_NORMAL);
...
*
* ===========================================================================
*/
extern CACHE_L2Mode CACHE_setL2Mode (
CACHE_L2Mode newMode
);
/*
* =============================================================================
* @n@b CACHE_wbL2
*
* @desc
* Invalidates range specified in L2. As per the specification,
* - The start of the range that needs to be written back is programmed
* into L2WBAR
* - The byte count is programmed in L2WWC
*
* @arg blockPtr
* Start address of range to be written back
*
* @arg byteCnt
* Number of bytes to be written back
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not
*
* @ret None
*
* @eg
* ...
CACHE_wbL2((Uint32*)(0x1000), 200, CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_wbL2 (
void *blockPtr,
Uint32 byteCnt,
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_invL2
*
* @desc
* Invalidates range specified in L2. As per the specification,
* - The start of the range that needs to be invalidate is programmed
* into L2IBAR
* - The byte count is programmed in L2IWC
*
* @arg blockPtr
* Start address of range to be invalidated
*
* @arg byteCnt
* Number of bytes to be invalidated
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not.
*
* @ret None
*
* @eg
* ...
CACHE_invL2((Uint32*)(0x1000), 200, CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_invL2 (
void *blockPtr,
Uint32 byteCnt,
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_wbInvL2
*
* @desc
* Writeback invalidated range specified in L2.As per the specification,
* - The start of the range that needs to be written back is programmed
* into L2WIBAR
* - The byte count is programmed in L2WIWC
*
* @arg blockPtr
* Start address of range to be written back invalidated
*
* @arg byteCnt
* Number of bytes to be written back invalidated
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not.
*
* @ret None
*
* @eg
* ...
CACHE_wbInvL2((Uint32*)(0x1000), 200, CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_wbInvL2 (
void *blockPtr,
Uint32 byteCnt,
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_wbAllL2
*
* @desc
* Writes back all of L2.As per the specification,The L2WB needs to be
* programmed
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not.
*
* @ret None
*
* @eg
* ...
CACHE_wbAllL2(CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_wbAllL2 (
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_invAllL2
*
* @desc
* Invalidates All of L2.As per the specification,The L2INV needs to be
* programmed
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not.
*
* @ret None
*
* @eg
* ...
CACHE_invAllL2(CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_invAllL2 (
CACHE_Wait wait
);
/*
* =============================================================================
* @n@b CACHE_wbInvAllL2
*
* @desc
* Writeback invalidates All of L2.As per the specification,The L2WBINV
* needs to be programmed
*
* @arg wait
* Whether the call is blocking (and the extent of wait) till the
* issued operation is completed or not.
*
* @ret None
*
* @eg
* ...
CACHE_wbInvAllL2(CACHE_NOWAIT);
...
*
* ===========================================================================
*/
extern void CACHE_wbInvAllL2 (
CACHE_Wait wait
);
#ifdef __cplusplus
}
#endif
#endif /*_CSL_CACHE_H_*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -