aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/dmaengine.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 8319101170fc..f838764993eb 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -329,7 +329,7 @@ enum dma_slave_buswidth {
329 * @src_addr_width: this is the width in bytes of the source (RX) 329 * @src_addr_width: this is the width in bytes of the source (RX)
330 * register where DMA data shall be read. If the source 330 * register where DMA data shall be read. If the source
331 * is memory this may be ignored depending on architecture. 331 * is memory this may be ignored depending on architecture.
332 * Legal values: 1, 2, 4, 8. 332 * Legal values: 1, 2, 3, 4, 8, 16, 32, 64.
333 * @dst_addr_width: same as src_addr_width but for destination 333 * @dst_addr_width: same as src_addr_width but for destination
334 * target (TX) mutatis mutandis. 334 * target (TX) mutatis mutandis.
335 * @src_maxburst: the maximum number of words (note: words, as in 335 * @src_maxburst: the maximum number of words (note: words, as in
@@ -404,14 +404,16 @@ enum dma_residue_granularity {
404 DMA_RESIDUE_GRANULARITY_BURST = 2, 404 DMA_RESIDUE_GRANULARITY_BURST = 2,
405}; 405};
406 406
407/* struct dma_slave_caps - expose capabilities of a slave channel only 407/**
408 * 408 * struct dma_slave_caps - expose capabilities of a slave channel only
409 * @src_addr_widths: bit mask of src addr widths the channel supports 409 * @src_addr_widths: bit mask of src addr widths the channel supports.
410 * @dst_addr_widths: bit mask of dstn addr widths the channel supports 410 * Width is specified in bytes, e.g. for a channel supporting
411 * @directions: bit mask of slave direction the channel supported 411 * a width of 4 the mask should have BIT(4) set.
412 * since the enum dma_transfer_direction is not defined as bits for each 412 * @dst_addr_widths: bit mask of dst addr widths the channel supports
413 * type of direction, the dma controller should fill (1 << <TYPE>) and same 413 * @directions: bit mask of slave directions the channel supports.
414 * should be checked by controller as well 414 * Since the enum dma_transfer_direction is not defined as bit flag for
415 * each type, the dma controller should set BIT(<TYPE>) and same
416 * should be checked by controller as well
415 * @max_burst: max burst capability per-transfer 417 * @max_burst: max burst capability per-transfer
416 * @cmd_pause: true, if pause and thereby resume is supported 418 * @cmd_pause: true, if pause and thereby resume is supported
417 * @cmd_terminate: true, if terminate cmd is supported 419 * @cmd_terminate: true, if terminate cmd is supported
@@ -678,11 +680,13 @@ struct dma_filter {
678 * @dev_id: unique device ID 680 * @dev_id: unique device ID
679 * @dev: struct device reference for dma mapping api 681 * @dev: struct device reference for dma mapping api
680 * @src_addr_widths: bit mask of src addr widths the device supports 682 * @src_addr_widths: bit mask of src addr widths the device supports
683 * Width is specified in bytes, e.g. for a device supporting
684 * a width of 4 the mask should have BIT(4) set.
681 * @dst_addr_widths: bit mask of dst addr widths the device supports 685 * @dst_addr_widths: bit mask of dst addr widths the device supports
682 * @directions: bit mask of slave direction the device supports since 686 * @directions: bit mask of slave directions the device supports.
683 * the enum dma_transfer_direction is not defined as bits for 687 * Since the enum dma_transfer_direction is not defined as bit flag for
684 * each type of direction, the dma controller should fill (1 << 688 * each type, the dma controller should set BIT(<TYPE>) and same
685 * <TYPE>) and same should be checked by controller as well 689 * should be checked by controller as well
686 * @max_burst: max burst capability per-transfer 690 * @max_burst: max burst capability per-transfer
687 * @residue_granularity: granularity of the transfer residue reported 691 * @residue_granularity: granularity of the transfer residue reported
688 * by tx_status 692 * by tx_status