8#ifndef ZEPHYR_INCLUDE_ARCH_AARCH32_ARM_MMU_H_
9#define ZEPHYR_INCLUDE_ARCH_AARCH32_ARM_MMU_H_
28#define MT_STRONGLY_ORDERED BIT(0)
29#define MT_DEVICE BIT(1)
30#define MT_NORMAL BIT(2)
36#define MPERM_UNPRIVILEGED BIT(6)
38#define MATTR_NON_SECURE BIT(7)
39#define MATTR_NON_GLOBAL BIT(8)
40#define MATTR_SHARED BIT(9)
41#define MATTR_CACHE_OUTER_WB_WA BIT(10)
42#define MATTR_CACHE_OUTER_WT_nWA BIT(11)
43#define MATTR_CACHE_OUTER_WB_nWA BIT(12)
44#define MATTR_CACHE_INNER_WB_WA BIT(13)
45#define MATTR_CACHE_INNER_WT_nWA BIT(14)
46#define MATTR_CACHE_INNER_WB_nWA BIT(15)
48#define MATTR_MAY_MAP_L1_SECTION BIT(16)
58#define MMU_REGION_ENTRY(_name, _base_pa, _base_va, _size, _attrs) \
61 .base_pa = _base_pa, \
62 .base_va = _base_va, \
67#define MMU_REGION_FLAT_ENTRY(name, adr, sz, attrs) \
68 MMU_REGION_ENTRY(name, adr, adr, sz, attrs)
86#define MMU_REGION_DT_FLAT_ENTRY(node_id, attrs) \
87 MMU_REGION_FLAT_ENTRY(DT_NODE_FULL_NAME(node_id), \
88 DT_REG_ADDR(node_id), \
89 DT_REG_SIZE(node_id), \
105#define MMU_REGION_DT_COMPAT_FOREACH_FLAT_ENTRY(compat, attr) \
106 DT_FOREACH_STATUS_OKAY_VARGS(compat, \
107 MMU_REGION_DT_FLAT_ENTRY, attr)
140int z_arm_mmu_init(
void);
const struct arm_mmu_config mmu_config
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:105
Definition: arm_mmu.h:124
const struct arm_mmu_region * mmu_regions
Definition: arm_mmu.h:128
uint32_t num_regions
Definition: arm_mmu.h:126
Definition: arm_mmu.h:110
uintptr_t base_va
Definition: arm_mmu.h:114
size_t size
Definition: arm_mmu.h:116
uintptr_t base_pa
Definition: arm_mmu.h:112
const char * name
Definition: arm_mmu.h:118
uint32_t attrs
Definition: arm_mmu.h:120