diff options
| author | Frank Li <Frank.Li@nxp.com> | 2026-10-05 05:37:17 -0400 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-10-09 11:41:33 +0200 |
| commit | bbc109e0e686266d784483df108af206bc52e120 (patch) | |
| tree | 9cc4528524ce9ad9b0923c8cca288eddc64d8053 /tools/lib/python | |
| parent | 072975a8a578a62ea68ec1ceb8d2d7dcfb5dfefa (diff) | |
| download | linux-next-bbc109e0e686266d784483df108af206bc52e120.tar.gz linux-next-bbc109e0e686266d784483df108af206bc52e120.zip | |
dmaengine: add dmaengine_get_cap_mask() and dmaengine_has_cap() helpers
Add two new inline helpers to query DMA channel capabilities without
directly accessing the internal dma_device pointer:
dmaengine_get_cap_mask(chan) - returns a const pointer to the
capability mask of the DMA device backing the channel.
dmaengine_has_cap(chan, tx_type) - returns true if the channel
supports the given transaction type.
These complement the existing dma_has_cap() macro which operates on
a dma_cap_mask_t directly.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20261005-dmaengine_prep_dma_pq-v3-4-a4a241f26fa7@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
