aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dmaengine.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <lg@denx.de>2009-01-19 17:36:21 -0500
committerDan Williams <dan.j.williams@intel.com>2009-01-19 17:36:21 -0500
commitef560682a97491f62ef538931a4861b57d66c52c (patch)
tree3dc1fe733675eb99bd92e680946c1deeaf64b2ef /include/linux/dmaengine.h
parentc50331e8be32eaba5e1949f98c70d50b891262db (diff)
dmaengine: add async_tx_clear_ack() macro
To complete the DMA_CTRL_ACK handling API add a async_tx_clear_ack() macro. Signed-off-by: Guennadi Liakhovetski <lg@denx.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r--include/linux/dmaengine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index c4a560e72ab..34f124d7fb9 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -287,6 +287,11 @@ static inline void async_tx_ack(struct dma_async_tx_descriptor *tx)
287 tx->flags |= DMA_CTRL_ACK; 287 tx->flags |= DMA_CTRL_ACK;
288} 288}
289 289
290static inline void async_tx_clear_ack(struct dma_async_tx_descriptor *tx)
291{
292 tx->flags &= ~DMA_CTRL_ACK;
293}
294
290static inline bool async_tx_test_ack(struct dma_async_tx_descriptor *tx) 295static inline bool async_tx_test_ack(struct dma_async_tx_descriptor *tx)
291{ 296{
292 return (tx->flags & DMA_CTRL_ACK) == DMA_CTRL_ACK; 297 return (tx->flags & DMA_CTRL_ACK) == DMA_CTRL_ACK;