74#define MPU_REG_DISABLED 0U
75#define MPU_REG_ENABLED 1U
76#define MAX_POSSIBLE_MPU_REGS 16U
85typedef struct XMpuConfig XMpu_Config[MAX_POSSIBLE_MPU_REGS];
87extern XMpu_Config Mpu_Config;
108void*
Xil_MemMap(UINTPTR Physaddr,
size_t size, u32 flags);
void Xil_DisableMPU(void)
Disable MPU for Cortex R5 processors. This function invalidates I cache and flush the D Caches,...
Definition: xil_mpu.c:259
void Xil_SetTlbAttributes(INTPTR addr, u32 attrib)
This function sets the memory attributes for a section covering 1MB, of memory in the translation tab...
Definition: xil_mpu.c:142
void Xil_GetMPUConfig(XMpu_Config mpuconfig)
The MPU configuration table is passed to the caller.
Definition: xil_mpu.c:364
u32 Xil_GetNextMPURegion(void)
Returns the next available free MPU region.
Definition: xil_mpu.c:577
u32 Xil_SetMPURegion(INTPTR addr, u64 size, u32 attrib)
Set the memory attributes for a section of memory in the translation table.
Definition: xil_mpu.c:162
u32 Xil_UpdateMPUConfig(u32 reg_num, INTPTR address, u32 size, u32 attrib)
Update the MPU configuration for the requested region number in the global MPU configuration table.
Definition: xil_mpu.c:317
u32 Xil_GetNumOfFreeRegions(void)
Returns the total number of free MPU regions available.
Definition: xil_mpu.c:384
u16 Xil_GetMPUFreeRegMask(void)
Returns the total number of free MPU regions available in the form of a mask. A bit of 1 in the retur...
Definition: xil_mpu.c:409
u32 Xil_SetMPURegionByRegNum(u32 reg_num, INTPTR addr, u64 size, u32 attrib)
Enables the corresponding region number as passed by the user.
Definition: xil_mpu.c:474
u32 Xil_DisableMPURegionByRegNum(u32 reg_num)
Disables the corresponding region number as passed by the user.
Definition: xil_mpu.c:432
void * Xil_MemMap(UINTPTR Physaddr, size_t size, u32 flags)
Memory mapping for Cortex-R5F. If successful, the mapped region will include all of the memory reques...
Definition: xil_mpu.c:620
void Xil_EnableMPU(void)
Enable MPU for Cortex R5 processor. This function invalidates I cache and flush the D Caches,...
Definition: xil_mpu.c:210