Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Generic memory attributes

Generic memory attributes that should be common to all architectures. More...

Macros

#define DT_MEM_ATTR_GET(x)
 Extract generic memory attribute bits from a full zephyr,memory-attr value.
#define DT_MEM_CACHEABLE   BIT(0)
 Memory is cacheable.
#define DT_MEM_NON_VOLATILE   BIT(1)
 Memory is non-volatile.
#define DT_MEM_OOO   BIT(2)
 Memory supports out-of-order access.
#define DT_MEM_DMA   BIT(3)
 Memory is usable for DMA.
#define DT_MEM_UNKNOWN   BIT(15)
 Generic memory attributes are unknown.

Detailed Description

Generic memory attributes that should be common to all architectures.

Macro Definition Documentation

◆ DT_MEM_ATTR_GET

#define DT_MEM_ATTR_GET ( x)

#include <memory-attr.h>

Value:
((x) & DT_MEM_ATTR_MASK)

Extract generic memory attribute bits from a full zephyr,memory-attr value.

Parameters
xValue to extract generic memory attribute bits from.
Returns
Generic memory attribute bits.

◆ DT_MEM_CACHEABLE

#define DT_MEM_CACHEABLE   BIT(0)

#include <memory-attr.h>

Memory is cacheable.

◆ DT_MEM_DMA

#define DT_MEM_DMA   BIT(3)

#include <memory-attr.h>

Memory is usable for DMA.

◆ DT_MEM_NON_VOLATILE

#define DT_MEM_NON_VOLATILE   BIT(1)

#include <memory-attr.h>

Memory is non-volatile.

◆ DT_MEM_OOO

#define DT_MEM_OOO   BIT(2)

#include <memory-attr.h>

Memory supports out-of-order access.

◆ DT_MEM_UNKNOWN

#define DT_MEM_UNKNOWN   BIT(15)

#include <memory-attr.h>

Generic memory attributes are unknown.