Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
memory-attr-sw.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 Carlo Caione <
[email protected]
>
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 Thu Jul 4 2024 12:22:47 for Zephyr API Documentation by
1.9.6