Zephyr Project API  3.2.0
A Scalable Open Source RTOS
main.c File Reference

Data Structures

struct  region_map
 

Macros

#define DT_DRV_COMPAT   zephyr_memory_region
 
#define RES0_CACHE_ADDR   DT_REG_ADDR(DT_NODELABEL(res0))
 
#define RES1_NOCACHE_ADDR   DT_REG_ADDR(DT_NODELABEL(res1))
 
#define RES2_CACHE_ADDR   DT_REG_ADDR(DT_NODELABEL(res2))
 
#define FOREACH_REG(n)
 

Functions

static void smh_reg_map (struct shared_multi_heap_region *region)
 
static struct region_mapget_region_map (void *v_addr)
 
static enum smh_reg_attr mpu_to_reg_attr (int mpu_attr)
 
static void fill_multi_heap (void)
 
 ZTEST (shared_multi_heap, test_shared_multi_heap)
 
 ZTEST_SUITE (shared_multi_heap, NULL, NULL, NULL, NULL, NULL)
 

Variables

struct region_map map []
 

Macro Definition Documentation

◆ DT_DRV_COMPAT

#define DT_DRV_COMPAT   zephyr_memory_region

◆ FOREACH_REG

#define FOREACH_REG (   n)
Value:
{ \
.region = { \
.addr = (uintptr_t) DT_INST_REG_ADDR(n), \
.size = DT_INST_REG_SIZE(n), \
.attr = DT_INST_ENUM_IDX_OR(n, zephyr_memory_region_mpu, \
}, \
},
#define DT_INST_REG_SIZE(inst)
Get a DT_DRV_COMPAT's (only) register block size.
Definition: devicetree.h:3373
#define DT_INST_ENUM_IDX_OR(inst, prop, default_idx_value)
Like DT_INST_ENUM_IDX(), but with a fallback to a default enum index.
Definition: devicetree.h:3079
#define DT_INST_REG_ADDR(inst)
Get a DT_DRV_COMPAT's (only) register block address.
Definition: devicetree.h:3366
@ SMH_REG_ATTR_NUM
Definition: shared_multi_heap.h:76
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:105

◆ RES0_CACHE_ADDR

#define RES0_CACHE_ADDR   DT_REG_ADDR(DT_NODELABEL(res0))

◆ RES1_NOCACHE_ADDR

#define RES1_NOCACHE_ADDR   DT_REG_ADDR(DT_NODELABEL(res1))

◆ RES2_CACHE_ADDR

#define RES2_CACHE_ADDR   DT_REG_ADDR(DT_NODELABEL(res2))

Function Documentation

◆ fill_multi_heap()

static void fill_multi_heap ( void  )
static

◆ get_region_map()

static struct region_map * get_region_map ( void *  v_addr)
static

◆ mpu_to_reg_attr()

static enum smh_reg_attr mpu_to_reg_attr ( int  mpu_attr)
inlinestatic

◆ smh_reg_map()

static void smh_reg_map ( struct shared_multi_heap_region region)
static

◆ ZTEST()

ZTEST ( shared_multi_heap  ,
test_shared_multi_heap   
)

◆ ZTEST_SUITE()

ZTEST_SUITE ( shared_multi_heap  ,
NULL  ,
NULL  ,
NULL  ,
NULL  ,
NULL   
)

Variable Documentation

◆ map

struct region_map map[]
Initial value:
= {
}
#define DT_INST_FOREACH_STATUS_OKAY(fn)
Call fn on all nodes with compatible DT_DRV_COMPAT and status okay
Definition: devicetree.h:3559
#define FOREACH_REG(n)
Definition: main.c:25