aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIra Snyder <iws@ovro.caltech.edu>2010-09-30 07:46:46 -0400
committerDan Williams <dan.j.williams@intel.com>2010-10-07 17:41:41 -0400
commit968f19ae802fdc6b6b6b5af6fe79cf23d281be0f (patch)
tree122f3912ed717627b0e5bac8c72f42ef2eb0cb6e /include
parentc14330417ef2050f4bf38ac20e125785fea14351 (diff)
fsldma: improved DMA_SLAVE support
Now that the generic DMAEngine API has support for scatterlist to scatterlist copying, the device_prep_slave_sg() portion of the DMA_SLAVE API is no longer necessary and has been removed. However, the device_control() portion of the DMA_SLAVE API is still useful to control device specific parameters, such as externally controlled DMA transfers and maximum burst length. A special dma_ctrl_cmd has been added to enable externally controlled DMA transfers. This is currently specific to the Freescale DMA controller, but can easily be made generic when another user is found. Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dmaengine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 2c9ee98f6c77..885f35211675 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -120,12 +120,15 @@ enum dma_ctrl_flags {
120 * configuration data in statically from the platform). An additional 120 * configuration data in statically from the platform). An additional
121 * argument of struct dma_slave_config must be passed in with this 121 * argument of struct dma_slave_config must be passed in with this
122 * command. 122 * command.
123 * @FSLDMA_EXTERNAL_START: this command will put the Freescale DMA controller
124 * into external start mode.
123 */ 125 */
124enum dma_ctrl_cmd { 126enum dma_ctrl_cmd {
125 DMA_TERMINATE_ALL, 127 DMA_TERMINATE_ALL,
126 DMA_PAUSE, 128 DMA_PAUSE,
127 DMA_RESUME, 129 DMA_RESUME,
128 DMA_SLAVE_CONFIG, 130 DMA_SLAVE_CONFIG,
131 FSLDMA_EXTERNAL_START,
129}; 132};
130 133
131/** 134/**