Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dma.h
Go to the documentation of this file.
1
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
51#define DT_DMAS_CTLR_BY_IDX(node_id, idx) DT_PHANDLE_BY_IDX(node_id, dmas, idx)
52
80#define DT_DMAS_CTLR_BY_NAME(node_id, name) \
81 DT_PHANDLE_BY_NAME(node_id, dmas, name)
82
90#define DT_DMAS_CTLR(node_id) DT_DMAS_CTLR_BY_IDX(node_id, 0)
91
102#define DT_INST_DMAS_CTLR_BY_IDX(inst, idx) \
103 DT_DMAS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
104
114#define DT_INST_DMAS_CTLR_BY_NAME(inst, name) \
115 DT_DMAS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
116
124#define DT_INST_DMAS_CTLR(inst) DT_INST_DMAS_CTLR_BY_IDX(inst, 0)
125
165#define DT_DMAS_CELL_BY_IDX(node_id, idx, cell) \
166 DT_PHA_BY_IDX(node_id, dmas, idx, cell)
167
176#define DT_INST_DMAS_CELL_BY_IDX(inst, idx, cell) \
177 DT_PHA_BY_IDX(DT_DRV_INST(inst), dmas, idx, cell)
178
220#define DT_DMAS_CELL_BY_NAME(node_id, name, cell) \
221 DT_PHA_BY_NAME(node_id, dmas, name, cell)
222
232#define DT_INST_DMAS_CELL_BY_NAME(inst, name, cell) \
233 DT_DMAS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
234
241#define DT_DMAS_HAS_IDX(node_id, idx) \
242 IS_ENABLED(DT_CAT4(node_id, _P_dmas_IDX_, idx, _EXISTS))
243
250#define DT_INST_DMAS_HAS_IDX(inst, idx) \
251 DT_DMAS_HAS_IDX(DT_DRV_INST(inst), idx)
252
260#define DT_DMAS_HAS_NAME(node_id, name) \
261 DT_PROP_HAS_NAME(node_id, dmas, name)
262
270#define DT_INST_DMAS_HAS_NAME(inst, name) \
271 DT_DMAS_HAS_NAME(DT_DRV_INST(inst), name)
272
277#ifdef __cplusplus
278}
279#endif
280
281#endif /* ZEPHYR_INCLUDE_DEVICETREE_DMAS_H_ */