Zephyr API Documentation
4.0.0
A Scalable Open Source RTOS
4.0.0
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
►
drivers
►
dsp
▼
dt-bindings
►
acpi
►
adc
►
battery
►
clock
►
dac
►
dai
►
display
►
dma
►
espi
►
ethernet
►
flash_controller
►
gnss
►
gpio
►
i2c
►
input
►
inputmux
►
interrupt-controller
►
ipc_service
►
led
►
lora
►
lvgl
▼
memory-attr
►
memory-attr-arm.h
►
memory-attr-riscv.h
►
memory-attr-sw.h
►
memory-attr-xtensa.h
►
memory-attr.h
►
memory-controller
►
mipi_dbi
►
mipi_dsi
►
misc
►
pcie
►
pinctrl
►
power
►
pwm
►
rdc
►
regulator
►
reserved-memory
►
reset
►
sensor
►
spi
►
timer
►
usb
►
usb-c
►
video
dt-util.h
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
posix
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
memory-attr.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 Carlo Caione <ccaione@baylibre.com>
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_MEM_ATTR_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_MEM_ATTR_H_
8
9
#include <
zephyr/sys/util_macro.h
>
10
11
/*
12
* Generic memory attributes.
13
*
14
* Generic memory attributes that should be common to all architectures.
15
*/
16
#define DT_MEM_ATTR_MASK GENMASK(15, 0)
17
#define DT_MEM_ATTR_GET(x) ((x) & DT_MEM_ATTR_MASK)
18
#define DT_MEM_ATTR_SHIFT (0)
19
20
#define DT_MEM_CACHEABLE BIT(0)
/* cacheable */
21
#define DT_MEM_NON_VOLATILE BIT(1)
/* non-volatile */
22
#define DT_MEM_OOO BIT(2)
/* out-of-order */
23
#define DT_MEM_DMA BIT(3)
/* DMA-able */
24
#define DT_MEM_UNKNOWN BIT(15)
/* must be last */
25
/* to be continued */
26
27
/*
28
* Software specific memory attributes.
29
*
30
* Software can define their own memory attributes if needed using the
31
* provided mask.
32
*/
33
#define DT_MEM_SW_ATTR_MASK GENMASK(19, 16)
34
#define DT_MEM_SW_ATTR_GET(x) ((x) & DT_MEM_SW_ATTR_MASK)
35
#define DT_MEM_SW_ATTR_SHIFT (16)
36
#define DT_MEM_SW_ATTR_UNKNOWN BIT(19)
37
38
/*
39
* Architecture specific memory attributes.
40
*
41
* Architectures can define their own memory attributes if needed using the
42
* provided mask.
43
*
44
* See for example `include/zephyr/dt-bindings/memory-attr/memory-attr-arm.h`
45
*/
46
#define DT_MEM_ARCH_ATTR_MASK GENMASK(31, 20)
47
#define DT_MEM_ARCH_ATTR_GET(x) ((x) & DT_MEM_ARCH_ATTR_MASK)
48
#define DT_MEM_ARCH_ATTR_SHIFT (20)
49
#define DT_MEM_ARCH_ATTR_UNKNOWN BIT(31)
50
51
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_MEM_ATTR_H_ */
util_macro.h
Macro utilities.
zephyr
dt-bindings
memory-attr
memory-attr.h
Generated on Sat Nov 16 2024 04:55:03 for Zephyr API Documentation by
1.12.0