diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dmaengine.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 2fe855a7cab1..3782cdb782a8 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
| @@ -457,6 +457,7 @@ struct dma_async_tx_descriptor { | |||
| 457 | #endif | 457 | #endif |
| 458 | }; | 458 | }; |
| 459 | 459 | ||
| 460 | #ifdef CONFIG_DMA_ENGINE | ||
| 460 | static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx, | 461 | static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx, |
| 461 | struct dmaengine_unmap_data *unmap) | 462 | struct dmaengine_unmap_data *unmap) |
| 462 | { | 463 | { |
| @@ -464,7 +465,23 @@ static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx, | |||
| 464 | tx->unmap = unmap; | 465 | tx->unmap = unmap; |
| 465 | } | 466 | } |
| 466 | 467 | ||
| 468 | struct dmaengine_unmap_data * | ||
| 469 | dmaengine_get_unmap_data(struct device *dev, int nr, gfp_t flags); | ||
| 467 | void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap); | 470 | void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap); |
| 471 | #else | ||
| 472 | static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx, | ||
| 473 | struct dmaengine_unmap_data *unmap) | ||
| 474 | { | ||
| 475 | } | ||
| 476 | static inline struct dmaengine_unmap_data * | ||
| 477 | dmaengine_get_unmap_data(struct device *dev, int nr, gfp_t flags) | ||
| 478 | { | ||
| 479 | return NULL; | ||
| 480 | } | ||
| 481 | static inline void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap) | ||
| 482 | { | ||
| 483 | } | ||
| 484 | #endif | ||
| 468 | 485 | ||
| 469 | static inline void dma_descriptor_unmap(struct dma_async_tx_descriptor *tx) | 486 | static inline void dma_descriptor_unmap(struct dma_async_tx_descriptor *tx) |
| 470 | { | 487 | { |
