7#ifndef ZEPHYR_INCLUDE_MEM_ATTR_H_
8#define ZEPHYR_INCLUDE_MEM_ATTR_H_
27#define __MEM_ATTR zephyr_memory_attr
29#define _FILTER(node_id, fn) \
30 COND_CODE_1(DT_NODE_HAS_PROP(node_id, __MEM_ATTR), \
47#define DT_MEMORY_ATTR_FOREACH_STATUS_OKAY_NODE(fn) \
48 DT_FOREACH_STATUS_OKAY_NODE_VARGS(_FILTER, fn)
int mem_attr_check_buf(void *addr, size_t size, uint32_t attr)
Check if a buffer has correct size and attributes.
size_t mem_attr_get_regions(const struct mem_attr_region_t **region)
Get the list of memory regions.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:105
memory-attr region structure.
Definition: mem_attr.h:56
uintptr_t dt_addr
Memory region physical address.
Definition: mem_attr.h:60
size_t dt_size
Memory region size.
Definition: mem_attr.h:62
const char * dt_name
Memory node full name.
Definition: mem_attr.h:58
uint32_t dt_attr
Memory region attributes.
Definition: mem_attr.h:64