3#ifdef SYSTEM_L2_CACHE_CTRL
4#define L2CTRL ((l2ctrl_hwreg_t *)SYSTEM_L2_CACHE_CTRL)
6#define L2CTRL ((l2ctrl_hwreg_t *)0)
10 while((
L2CTRL->COMPLETION & 0x1U) == 0);
15 while((
L2CTRL->START & 0x1U));
16 L2CTRL->ADDRESS_FROM = (uintptr_t)address;
17 L2CTRL->ADDRESS_TO = (uintptr_t)address+size-1;
void l2cache_flush(void *address, u64 size)
Use the L2 cache registers to flush a range of memory, using physical address.
void l2cache_flushBlocking(void *address, u64 size)
Use the L2 cache registers to flush a range of memory, using physical address and wait until the flus...
void l2cache_setFlushInterrupt(u64 mask)
Set L2 Cache Flush Interrupt.
void l2cache_waitFlush()
Wait until Flush is completed.
L2 controller driver API definitions.