Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
dma.h File Reference

DMA Devicetree macro public API header file. More...

Go to the source code of this file.

Macros

#define DT_DMAS_LABEL_BY_IDX(node_id, idx)
 Get a label property from the node referenced by a dmas property at an index. More...
 
#define DT_INST_DMAS_LABEL_BY_IDX(inst, idx)
 Get a label property from a DT_DRV_COMPAT instance's dmas property at an index. More...
 
#define DT_DMAS_LABEL_BY_NAME(node_id, name)
 Get a label property from a dmas property by name. More...
 
#define DT_DMAS_CTLR_BY_IDX(node_id, idx)   DT_PHANDLE_BY_IDX(node_id, dmas, idx)
 Get the node identifier for the DMA controller from a dmas property at an index. More...
 
#define DT_DMAS_CTLR_BY_NAME(node_id, name)    DT_PHANDLE_BY_NAME(node_id, dmas, name)
 Get the node identifier for the DMA controller from a dmas property by name. More...
 
#define DT_DMAS_CTLR(node_id)   DT_DMAS_CTLR_BY_IDX(node_id, 0)
 Equivalent to DT_DMAS_CTLR_BY_IDX(node_id, 0) More...
 
#define DT_INST_DMAS_LABEL_BY_NAME(inst, name)
 Get a label property from a DT_DRV_COMPAT instance's dmas property by name. More...
 
#define DT_INST_DMAS_CTLR_BY_IDX(inst, idx)    DT_DMAS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
 Get the node identifier for the DMA controller from a DT_DRV_COMPAT instance's dmas property at an index. More...
 
#define DT_INST_DMAS_CTLR_BY_NAME(inst, name)    DT_DMAS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
 Get the node identifier for the DMA controller from a DT_DRV_COMPAT instance's dmas property by name. More...
 
#define DT_INST_DMAS_CTLR(inst)   DT_INST_DMAS_CTLR_BY_IDX(inst, 0)
 Equivalent to DT_INST_DMAS_CTLR_BY_IDX(inst, 0) More...
 
#define DT_DMAS_CELL_BY_IDX(node_id, idx, cell)    DT_PHA_BY_IDX(node_id, dmas, idx, cell)
 Get a DMA specifier's cell value at an index. More...
 
#define DT_INST_DMAS_CELL_BY_IDX(inst, idx, cell)    DT_PHA_BY_IDX(DT_DRV_INST(inst), dmas, idx, cell)
 Get a DT_DRV_COMPAT instance's DMA specifier's cell value at an index. More...
 
#define DT_DMAS_CELL_BY_NAME(node_id, name, cell)    DT_PHA_BY_NAME(node_id, dmas, name, cell)
 Get a DMA specifier's cell value by name. More...
 
#define DT_INST_DMAS_CELL_BY_NAME(inst, name, cell)    DT_DMAS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
 Get a DT_DRV_COMPAT instance's DMA specifier's cell value by name. More...
 
#define DT_DMAS_HAS_IDX(node_id, idx)    IS_ENABLED(DT_CAT(node_id, _P_dmas_IDX_##idx##_EXISTS))
 Is index "idx" valid for a dmas property? More...
 
#define DT_INST_DMAS_HAS_IDX(inst, idx)    DT_DMAS_HAS_IDX(DT_DRV_INST(inst), idx)
 Is index "idx" valid for a DT_DRV_COMPAT instance's dmas property? More...
 
#define DT_DMAS_HAS_NAME(node_id, name)    IS_ENABLED(DT_CAT(node_id, _P_dmas_NAME_##name##_EXISTS))
 Does a dmas property have a named element? More...
 
#define DT_INST_DMAS_HAS_NAME(inst, name)    DT_DMAS_HAS_NAME(DT_DRV_INST(inst), name)
 Does a DT_DRV_COMPAT instance's dmas property have a named element? More...
 

Detailed Description

DMA Devicetree macro public API header file.