Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
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
55#define DT_DMAS_LABEL_BY_IDX(node_id, idx) \
56 __DEPRECATED_MACRO \
57 DT_PROP_BY_PHANDLE_IDX(node_id, dmas, idx, label)
58
67#define DT_INST_DMAS_LABEL_BY_IDX(inst, idx) \
68 __DEPRECATED_MACRO \
69 DT_DMAS_LABEL_BY_IDX(DT_DRV_INST(inst), idx)
70
103#define DT_DMAS_LABEL_BY_NAME(node_id, name) \
104 __DEPRECATED_MACRO \
105 DT_PROP(DT_PHANDLE_BY_NAME(node_id, dmas, name), label)
106
133#define DT_DMAS_CTLR_BY_IDX(node_id, idx) DT_PHANDLE_BY_IDX(node_id, dmas, idx)
134
162#define DT_DMAS_CTLR_BY_NAME(node_id, name) \
163 DT_PHANDLE_BY_NAME(node_id, dmas, name)
164
172#define DT_DMAS_CTLR(node_id) DT_DMAS_CTLR_BY_IDX(node_id, 0)
173
183#define DT_INST_DMAS_LABEL_BY_NAME(inst, name) \
184 __DEPRECATED_MACRO \
185 DT_DMAS_LABEL_BY_NAME(DT_DRV_INST(inst), name)
186
197#define DT_INST_DMAS_CTLR_BY_IDX(inst, idx) \
198 DT_DMAS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
199
209#define DT_INST_DMAS_CTLR_BY_NAME(inst, name) \
210 DT_DMAS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
211
219#define DT_INST_DMAS_CTLR(inst) DT_INST_DMAS_CTLR_BY_IDX(inst, 0)
220
260#define DT_DMAS_CELL_BY_IDX(node_id, idx, cell) \
261 DT_PHA_BY_IDX(node_id, dmas, idx, cell)
262
271#define DT_INST_DMAS_CELL_BY_IDX(inst, idx, cell) \
272 DT_PHA_BY_IDX(DT_DRV_INST(inst), dmas, idx, cell)
273
315#define DT_DMAS_CELL_BY_NAME(node_id, name, cell) \
316 DT_PHA_BY_NAME(node_id, dmas, name, cell)
317
327#define DT_INST_DMAS_CELL_BY_NAME(inst, name, cell) \
328 DT_DMAS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
329
336#define DT_DMAS_HAS_IDX(node_id, idx) \
337 IS_ENABLED(DT_CAT(node_id, _P_dmas_IDX_##idx##_EXISTS))
338
345#define DT_INST_DMAS_HAS_IDX(inst, idx) \
346 DT_DMAS_HAS_IDX(DT_DRV_INST(inst), idx)
347
355#define DT_DMAS_HAS_NAME(node_id, name) \
356 IS_ENABLED(DT_CAT(node_id, _P_dmas_NAME_##name##_EXISTS))
357
365#define DT_INST_DMAS_HAS_NAME(inst, name) \
366 DT_DMAS_HAS_NAME(DT_DRV_INST(inst), name)
367
372#ifdef __cplusplus
373}
374#endif
375
376#endif /* ZEPHYR_INCLUDE_DEVICETREE_DMAS_H_ */