AM64x MCU+ SDK  08.02.00
CacheP.h File Reference

Go to the source code of this file.

Data Structures

struct  CacheP_Config
 Cache config structure, this used by SysConfig and not to be used by end-users directly. More...
 

Macros

#define CacheP_CACHELINE_ALIGNMENT   (128U)
 Cache line size for alignment of buffers. Actual CPU defined cache line can be smaller that this value, this define is a utility macro to keep application portable across different CPU's. More...
 

Enumerations

enum  CacheP_Type {
  CacheP_TYPE_L1P = (0x0001u), CacheP_TYPE_L1D = (0x0002u), CacheP_TYPE_L2P = (0x0004u), CacheP_TYPE_L2D = (0x0008u),
  CacheP_TYPE_L1 = (CacheP_TYPE_L1P|CacheP_TYPE_L1D), CacheP_TYPE_L2 = (CacheP_TYPE_L2P|CacheP_TYPE_L2D), CacheP_TYPE_ALLP = (CacheP_TYPE_L1P|CacheP_TYPE_L2P), CacheP_TYPE_ALLD = (CacheP_TYPE_L1D|CacheP_TYPE_L2D),
  CacheP_TYPE_ALL = (CacheP_TYPE_L1|CacheP_TYPE_L2)
}
 Cache type. More...
 

Functions

void CacheP_enable (uint32_t type)
 Cache enable. More...
 
void CacheP_disable (uint32_t type)
 Cache disable. More...
 
uint32_t CacheP_getEnabled ()
 Get cache enabled bits. More...
 
void CacheP_wbAll (uint32_t type)
 Cache writeback for full cache. More...
 
void CacheP_wbInvAll (uint32_t type)
 Cache writeback and invalidate for full cache. More...
 
void CacheP_wb (void *addr, uint32_t size, uint32_t type)
 Cache writeback for a specified region. More...
 
void CacheP_inv (void *addr, uint32_t size, uint32_t type)
 Cache invalidate for a specified region. More...
 
void CacheP_wbInv (void *addr, uint32_t size, uint32_t type)
 Cache writeback and invalidate for a specified region. More...
 
void CacheP_init ()
 Initialize Cache sub-system, called by SysConfig, not to be called by end users. More...
 

Variables

CacheP_Config gCacheConfig
 Externally defined Cache configuration. More...