aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dmaengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r--include/linux/dmaengine.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index bca2fc758894..1419a5094478 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -29,18 +29,6 @@
29#include <linux/dma-mapping.h> 29#include <linux/dma-mapping.h>
30 30
31/** 31/**
32 * enum dma_state_client - state of the channel in the client
33 * @DMA_ACK: client would like to use, or was using this channel
34 * @DMA_DUP: client has already seen this channel, or is not using this channel
35 * @DMA_NAK: client does not want to see any more channels
36 */
37enum dma_state_client {
38 DMA_ACK,
39 DMA_DUP,
40 DMA_NAK,
41};
42
43/**
44 * typedef dma_cookie_t - an opaque DMA cookie 32 * typedef dma_cookie_t - an opaque DMA cookie
45 * 33 *
46 * if dma_cookie_t is >0 it's a DMA request cookie, <0 it's an error code 34 * if dma_cookie_t is >0 it's a DMA request cookie, <0 it's an error code
@@ -160,9 +148,10 @@ void dma_chan_cleanup(struct kref *kref);
160 * When this optional parameter is specified in a call to dma_request_channel a 148 * When this optional parameter is specified in a call to dma_request_channel a
161 * suitable channel is passed to this routine for further dispositioning before 149 * suitable channel is passed to this routine for further dispositioning before
162 * being returned. Where 'suitable' indicates a non-busy channel that 150 * being returned. Where 'suitable' indicates a non-busy channel that
163 * satisfies the given capability mask. 151 * satisfies the given capability mask. It returns 'true' to indicate that the
152 * channel is suitable.
164 */ 153 */
165typedef enum dma_state_client (*dma_filter_fn)(struct dma_chan *chan, void *filter_param); 154typedef bool (*dma_filter_fn)(struct dma_chan *chan, void *filter_param);
166 155
167typedef void (*dma_async_tx_callback)(void *dma_async_param); 156typedef void (*dma_async_tx_callback)(void *dma_async_param);
168/** 157/**