diff options
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r-- | include/linux/dmaengine.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 2b9f2ac7ed60..20ea12c86fd0 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
@@ -31,6 +31,8 @@ | |||
31 | * if dma_cookie_t is >0 it's a DMA request cookie, <0 it's an error code | 31 | * if dma_cookie_t is >0 it's a DMA request cookie, <0 it's an error code |
32 | */ | 32 | */ |
33 | typedef s32 dma_cookie_t; | 33 | typedef s32 dma_cookie_t; |
34 | #define DMA_MIN_COOKIE 1 | ||
35 | #define DMA_MAX_COOKIE INT_MAX | ||
34 | 36 | ||
35 | #define dma_submit_error(cookie) ((cookie) < 0 ? 1 : 0) | 37 | #define dma_submit_error(cookie) ((cookie) < 0 ? 1 : 0) |
36 | 38 | ||
@@ -74,7 +76,7 @@ enum dma_transaction_type { | |||
74 | * control completion, and communicate status. | 76 | * control completion, and communicate status. |
75 | * @DMA_PREP_INTERRUPT - trigger an interrupt (callback) upon completion of | 77 | * @DMA_PREP_INTERRUPT - trigger an interrupt (callback) upon completion of |
76 | * this transaction | 78 | * this transaction |
77 | * @DMA_CTRL_ACK - the descriptor cannot be reused until the client | 79 | * @DMA_CTRL_ACK - if clear, the descriptor cannot be reused until the client |
78 | * acknowledges receipt, i.e. has has a chance to establish any dependency | 80 | * acknowledges receipt, i.e. has has a chance to establish any dependency |
79 | * chains | 81 | * chains |
80 | * @DMA_COMPL_SKIP_SRC_UNMAP - set to disable dma-unmapping the source buffer(s) | 82 | * @DMA_COMPL_SKIP_SRC_UNMAP - set to disable dma-unmapping the source buffer(s) |
@@ -162,7 +164,7 @@ struct dma_chan { | |||
162 | struct dma_chan_dev *dev; | 164 | struct dma_chan_dev *dev; |
163 | 165 | ||
164 | struct list_head device_node; | 166 | struct list_head device_node; |
165 | struct dma_chan_percpu *local; | 167 | struct dma_chan_percpu __percpu *local; |
166 | int client_count; | 168 | int client_count; |
167 | int table_count; | 169 | int table_count; |
168 | void *private; | 170 | void *private; |