Zephyr API Documentation
4.0.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
16
extern
"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
239
#define DT_DMAS_CELL_BY_NAME_OR(node_id, name, cell, default_value) \
240
DT_PHA_BY_NAME_OR(node_id, dmas, name, cell, default_value)
241
251
#define DT_INST_DMAS_CELL_BY_NAME(inst, name, cell) \
252
DT_DMAS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
253
260
#define DT_DMAS_HAS_IDX(node_id, idx) \
261
IS_ENABLED(DT_CAT4(node_id, _P_dmas_IDX_, idx, _EXISTS))
262
269
#define DT_INST_DMAS_HAS_IDX(inst, idx) \
270
DT_DMAS_HAS_IDX(DT_DRV_INST(inst), idx)
271
279
#define DT_DMAS_HAS_NAME(node_id, name) \
280
DT_PROP_HAS_NAME(node_id, dmas, name)
281
289
#define DT_INST_DMAS_HAS_NAME(inst, name) \
290
DT_DMAS_HAS_NAME(DT_DRV_INST(inst), name)
291
296
#ifdef __cplusplus
297
}
298
#endif
299
300
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_DMAS_H_ */
zephyr
devicetree
dma.h
Generated on Fri Dec 27 2024 06:02:19 for Zephyr API Documentation by
1.12.0