Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
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
q
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
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
memory-attr-sw.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_SW_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_MEM_ATTR_SW_H_
8
9
#include <
zephyr/sys/util_macro.h
>
10
#include <
zephyr/dt-bindings/memory-attr/memory-attr.h
>
11
12
/*
13
* Software specific memory attributes.
14
*/
15
#define DT_MEM_SW_MASK DT_MEM_SW_ATTR_MASK
16
#define DT_MEM_SW_GET(x) ((x) & DT_MEM_SW_ATTR_MASK)
17
#define DT_MEM_SW(x) ((x) << DT_MEM_SW_ATTR_SHIFT)
18
19
#define ATTR_SW_ALLOC_CACHE BIT(0)
20
#define ATTR_SW_ALLOC_NON_CACHE BIT(1)
21
#define ATTR_SW_ALLOC_DMA BIT(2)
22
23
#define DT_MEM_SW_ALLOC_CACHE DT_MEM_SW(ATTR_SW_ALLOC_CACHE)
24
#define DT_MEM_SW_ALLOC_NON_CACHE DT_MEM_SW(ATTR_SW_ALLOC_NON_CACHE)
25
#define DT_MEM_SW_ALLOC_DMA DT_MEM_SW(ATTR_SW_ALLOC_DMA)
26
27
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_MEM_ATTR_SW_H_ */
memory-attr.h
util_macro.h
Macro utilities.
zephyr
dt-bindings
memory-attr
memory-attr-sw.h
Generated on Fri Mar 14 2025 12:05:19 for Zephyr API Documentation by
1.12.0