CMSIS-Core (Cortex-A)  
CMSIS-Core support for Cortex-A processor-based devices
 
Loading...
Searching...
No Matches
L2C-310 Cache Controller Functions

L2C-310 Cache Controller gives access to functions for level 2 cache maintenance.
Reference: Level 2 Cache Controller L2C-310 Technical Reference Manual. More...

Data Structures

struct  L2C_310_TypeDef
 Union type to access the L2C_310 Cache Controller. More...
 

Macros

#define L2C_310   ((L2C_310_TypeDef *)L2C_310_BASE)
 L2C_310 register set access pointer.
 

Functions

__STATIC_INLINE void L2C_Sync (void)
 Cache Sync operation by writing CACHE_SYNC register.
 
__STATIC_INLINE int L2C_GetID (void)
 Read cache controller cache ID from CACHE_ID register.
 
__STATIC_INLINE int L2C_GetType (void)
 Read cache controller cache type from CACHE_TYPE register.
 
__STATIC_INLINE void L2C_InvAllByWay (void)
 Invalidate all cache by way.
 
__STATIC_INLINE void L2C_CleanInvAllByWay (void)
 Clean and Invalidate all cache by way.
 
__STATIC_INLINE void L2C_Enable (void)
 Enable Level 2 Cache.
 
__STATIC_INLINE void L2C_Disable (void)
 Disable Level 2 Cache.
 
__STATIC_INLINE void L2C_InvPa (void *pa)
 Invalidate cache by physical address.
 
__STATIC_INLINE void L2C_CleanPa (void *pa)
 Clean cache by physical address.
 
__STATIC_INLINE void L2C_CleanInvPa (void *pa)
 Clean and invalidate cache by physical address.
 

Description

L2C-310 Cache Controller gives access to functions for level 2 cache maintenance.
Reference: Level 2 Cache Controller L2C-310 Technical Reference Manual.

Macro Definition Documentation

◆ L2C_310

#define L2C_310   ((L2C_310_TypeDef *)L2C_310_BASE)

L2C_310 register set access pointer.

Function Documentation

◆ L2C_CleanInvAllByWay()

__STATIC_INLINE void L2C_CleanInvAllByWay ( void  )

Clean and Invalidate all cache by way.

◆ L2C_CleanInvPa()

__STATIC_INLINE void L2C_CleanInvPa ( void *  pa)

Clean and invalidate cache by physical address.

Parameters
[in]paPointer to data to invalidate cache for.

◆ L2C_CleanPa()

__STATIC_INLINE void L2C_CleanPa ( void *  pa)

Clean cache by physical address.

Parameters
[in]paPointer to data to invalidate cache for.

◆ L2C_Disable()

__STATIC_INLINE void L2C_Disable ( void  )

Disable Level 2 Cache.

◆ L2C_Enable()

__STATIC_INLINE void L2C_Enable ( void  )

Enable Level 2 Cache.

◆ L2C_GetID()

__STATIC_INLINE int L2C_GetID ( void  )

Read cache controller cache ID from CACHE_ID register.

Returns
L2C_310_TypeDef::CACHE_ID

◆ L2C_GetType()

__STATIC_INLINE int L2C_GetType ( void  )

Read cache controller cache type from CACHE_TYPE register.

Returns
L2C_310_TypeDef::CACHE_TYPE

◆ L2C_InvAllByWay()

__STATIC_INLINE void L2C_InvAllByWay ( void  )

Invalidate all cache by way.

◆ L2C_InvPa()

__STATIC_INLINE void L2C_InvPa ( void *  pa)

Invalidate cache by physical address.

Parameters
[in]paPointer to data to invalidate cache for.

◆ L2C_Sync()

__STATIC_INLINE void L2C_Sync ( void  )

Cache Sync operation by writing CACHE_SYNC register.