Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dma.h
Go to the documentation of this file.
1
5
6/*
7 * Copyright (c) 2020, Linaro Ltd.
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_DMAS_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_DMAS_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
25
52#define DT_DMAS_CTLR_BY_IDX(node_id, idx) DT_PHANDLE_BY_IDX(node_id, dmas, idx)
53
81#define DT_DMAS_CTLR_BY_NAME(node_id, name) \
82 DT_PHANDLE_BY_NAME(node_id, dmas, name)
83
91#define DT_DMAS_CTLR(node_id) DT_DMAS_CTLR_BY_IDX(node_id, 0)
92
103#define DT_INST_DMAS_CTLR_BY_IDX(inst, idx) \
104 DT_DMAS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
105
115#define DT_INST_DMAS_CTLR_BY_NAME(inst, name) \
116 DT_DMAS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
117
125#define DT_INST_DMAS_CTLR(inst) DT_INST_DMAS_CTLR_BY_IDX(inst, 0)
126
166#define DT_DMAS_CELL_BY_IDX(node_id, idx, cell) \
167 DT_PHA_BY_IDX(node_id, dmas, idx, cell)
168
177#define DT_INST_DMAS_CELL_BY_IDX(inst, idx, cell) \
178 DT_PHA_BY_IDX(DT_DRV_INST(inst), dmas, idx, cell)
179
221#define DT_DMAS_CELL_BY_NAME(node_id, name, cell) \
222 DT_PHA_BY_NAME(node_id, dmas, name, cell)
223
240#define DT_DMAS_CELL_BY_NAME_OR(node_id, name, cell, default_value) \
241 DT_PHA_BY_NAME_OR(node_id, dmas, name, cell, default_value)
242
252#define DT_INST_DMAS_CELL_BY_NAME(inst, name, cell) \
253 DT_DMAS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
254
261#define DT_DMAS_HAS_IDX(node_id, idx) \
262 IS_ENABLED(DT_CAT4(node_id, _P_dmas_IDX_, idx, _EXISTS))
263
270#define DT_INST_DMAS_HAS_IDX(inst, idx) \
271 DT_DMAS_HAS_IDX(DT_DRV_INST(inst), idx)
272
280#define DT_DMAS_HAS_NAME(node_id, name) \
281 DT_PROP_HAS_NAME(node_id, dmas, name)
282
290#define DT_INST_DMAS_HAS_NAME(inst, name) \
291 DT_DMAS_HAS_NAME(DT_DRV_INST(inst), name)
292
296
297#ifdef __cplusplus
298}
299#endif
300
301#endif /* ZEPHYR_INCLUDE_DEVICETREE_DMAS_H_ */