diff options
Diffstat (limited to 'include/linux/dmaengine.h')
| -rw-r--r-- | include/linux/dmaengine.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 3e0f64c335c..f0413845f20 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
| @@ -121,6 +121,7 @@ struct dma_chan_percpu { | |||
| 121 | * @local: per-cpu pointer to a struct dma_chan_percpu | 121 | * @local: per-cpu pointer to a struct dma_chan_percpu |
| 122 | * @client-count: how many clients are using this channel | 122 | * @client-count: how many clients are using this channel |
| 123 | * @table_count: number of appearances in the mem-to-mem allocation table | 123 | * @table_count: number of appearances in the mem-to-mem allocation table |
| 124 | * @private: private data for certain client-channel associations | ||
| 124 | */ | 125 | */ |
| 125 | struct dma_chan { | 126 | struct dma_chan { |
| 126 | struct dma_device *device; | 127 | struct dma_device *device; |
| @@ -134,6 +135,7 @@ struct dma_chan { | |||
| 134 | struct dma_chan_percpu *local; | 135 | struct dma_chan_percpu *local; |
| 135 | int client_count; | 136 | int client_count; |
| 136 | int table_count; | 137 | int table_count; |
| 138 | void *private; | ||
| 137 | }; | 139 | }; |
| 138 | 140 | ||
| 139 | /** | 141 | /** |
| @@ -282,6 +284,18 @@ static inline void dmaengine_put(void) | |||
| 282 | } | 284 | } |
| 283 | #endif | 285 | #endif |
| 284 | 286 | ||
| 287 | #ifdef CONFIG_NET_DMA | ||
| 288 | #define net_dmaengine_get() dmaengine_get() | ||
| 289 | #define net_dmaengine_put() dmaengine_put() | ||
| 290 | #else | ||
| 291 | static inline void net_dmaengine_get(void) | ||
| 292 | { | ||
| 293 | } | ||
| 294 | static inline void net_dmaengine_put(void) | ||
| 295 | { | ||
| 296 | } | ||
| 297 | #endif | ||
| 298 | |||
| 285 | dma_cookie_t dma_async_memcpy_buf_to_buf(struct dma_chan *chan, | 299 | dma_cookie_t dma_async_memcpy_buf_to_buf(struct dma_chan *chan, |
| 286 | void *dest, void *src, size_t len); | 300 | void *dest, void *src, size_t len); |
| 287 | dma_cookie_t dma_async_memcpy_buf_to_pg(struct dma_chan *chan, | 301 | dma_cookie_t dma_async_memcpy_buf_to_pg(struct dma_chan *chan, |
