[1/4] dma: add dma_flags_set_dmabarrier() to dma interface

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Grant Grundler <grundler@...>, Jesse Barnes <jbarnes@...>, Jes Sorensen <jes@...>, Randy Dunlap <randy.dunlap@...>, RolandDreier <rdreier@...>, James Bottomley <James.Bottomley@...>
Cc: <linux-kernel@...>
Date: Thursday, September 27, 2007 - 9:10 pm

Introduce the dma_flags_set_dmabarrier() interface and give it
a default no-op implementation.

Signed-off-by: Arthur Kepner <akepner@sgi.com>

--- 

 dma-mapping.h |    6 ++++++
 1 files changed, 6 insertions(+)
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h

index 2dc21cb..4d1d199 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -99,4 +99,10 @@ static inline void dmam_release_declared_memory(struct device *dev)
 }
 #endif /* ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY */
 
+#ifndef ARCH_CAN_REORDER_DMA
+static inline int dma_flags_set_dmabarrier(int dir) {
+	return dir;
+}
+#endif /* ARCH_CAN_REORDER_DMA */
+
 #endif
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[1/4] dma: add dma_flags_set_dmabarrier() to dma interface, , (Thu Sep 27, 9:10 pm)