Zephyr API Documentation 4.4.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_DMA_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_DMA_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
25
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
101#define DT_INST_DMAS_CTLR_BY_IDX(inst, idx) \
102 DT_DMAS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
103
113#define DT_INST_DMAS_CTLR_BY_NAME(inst, name) \
114 DT_DMAS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
115
123#define DT_INST_DMAS_CTLR(inst) DT_INST_DMAS_CTLR_BY_IDX(inst, 0)
124
164#define DT_DMAS_CELL_BY_IDX(node_id, idx, cell) \
165 DT_PHA_BY_IDX(node_id, dmas, idx, cell)
166
175#define DT_INST_DMAS_CELL_BY_IDX(inst, idx, cell) \
176 DT_PHA_BY_IDX(DT_DRV_INST(inst), dmas, idx, cell)
177
219#define DT_DMAS_CELL_BY_NAME(node_id, name, cell) \
220 DT_PHA_BY_NAME(node_id, dmas, name, cell)
221
238#define DT_DMAS_CELL_BY_NAME_OR(node_id, name, cell, default_value) \
239 DT_PHA_BY_NAME_OR(node_id, dmas, name, cell, default_value)
240
250#define DT_INST_DMAS_CELL_BY_NAME(inst, name, cell) \
251 DT_DMAS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
252
259#define DT_DMAS_HAS_IDX(node_id, idx) \
260 IS_ENABLED(DT_CAT4(node_id, _P_dmas_IDX_, idx, _EXISTS))
261
268#define DT_INST_DMAS_HAS_IDX(inst, idx) \
269 DT_DMAS_HAS_IDX(DT_DRV_INST(inst), idx)
270
278#define DT_DMAS_HAS_NAME(node_id, name) \
279 DT_PROP_HAS_NAME(node_id, dmas, name)
280
288#define DT_INST_DMAS_HAS_NAME(inst, name) \
289 DT_DMAS_HAS_NAME(DT_DRV_INST(inst), name)
290
294
295#ifdef __cplusplus
296}
297#endif
298
299#endif /* ZEPHYR_INCLUDE_DEVICETREE_DMA_H_ */