Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
memory-attr.h File Reference

Generic devicetree memory attribute definitions. More...

Go to the source code of this file.

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.
#define DT_MEM_SW_ATTR_MASK   GENMASK(19, 16)
 Mask for software-specific memory attribute bits.
#define DT_MEM_SW_ATTR_GET(x)
 Extract software-specific memory attribute bits from a full zephyr,memory-attr value.
#define DT_MEM_SW_ATTR_SHIFT   (16)
 Shift for software-specific memory attribute bits.
#define DT_MEM_SW_ATTR_UNKNOWN   BIT(19)
 Software-specific memory attributes are unknown.
#define DT_MEM_ARCH_ATTR_MASK   GENMASK(31, 20)
 Mask for architecture-specific memory attribute bits.
#define DT_MEM_ARCH_ATTR_GET(x)
 Extract architecture-specific memory attribute bits from a full zephyr,memory-attr value.
#define DT_MEM_ARCH_ATTR_SHIFT   (20)
 Shift for architecture-specific memory attribute bits.
#define DT_MEM_ARCH_ATTR_UNKNOWN   BIT(31)
 Architecture-specific memory attributes are unknown.

Detailed Description

Generic devicetree memory attribute definitions.

Copyright (c) 2023 Carlo Caione ccaio.nosp@m.ne@b.nosp@m.aylib.nosp@m.re.c.nosp@m.om

SPDX-License-Identifier: Apache-2.0