diff options
author | Abhishek Sahu <absahu@codeaurora.org> | 2017-08-01 19:41:42 +0530 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-08-28 16:40:18 +0530 |
commit | 3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5 (patch) | |
tree | 67ced0d4b885d8a2c976545b249b014d8e4ad0eb /include/linux/dmaengine.h | |
parent | a63efead7f8eeefcf08e4e7d0b033ac552f7da23 (diff) | |
download | linux-stable-3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5.tar.gz linux-stable-3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5.tar.bz2 linux-stable-3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5.zip |
dmaengine: add DMA_PREP_CMD for non-Data descriptors.
Some of the DMA controllers are capable of issuing the commands
to peripheral by the DMA. These commands can be list of register
reads/writes and its different from normal data reads/writes.
This patch adds new flag DMA_PREP_CMD in DMA API which tells
the driver that the data passed to DMA API is command data
and DMA controller driver will form descriptor in the required
format.
This flag can be used by any DMA controller driver which requires
the descriptor in different format for non-Data descriptors.
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r-- | include/linux/dmaengine.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 533680860865..dd4de1d40166 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -186,6 +186,9 @@ struct dma_interleaved_template { * on the result of this operation * @DMA_CTRL_REUSE: client can reuse the descriptor and submit again till * cleared or freed + * @DMA_PREP_CMD: tell the driver that the data passed to DMA API is command + * data and the descriptor should be in different format from normal + * data descriptors. */ enum dma_ctrl_flags { DMA_PREP_INTERRUPT = (1 << 0), @@ -195,6 +198,7 @@ enum dma_ctrl_flags { DMA_PREP_CONTINUE = (1 << 4), DMA_PREP_FENCE = (1 << 5), DMA_CTRL_REUSE = (1 << 6), + DMA_PREP_CMD = (1 << 7), }; /** |