Skip to contentSkip to conversation

dma: add dma_flags_set_dmabarrier() to dma interface

PATCH In review [email protected] 2 participants 2 messages Sep 28, 2007 DMA mapping helpers

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 dma: add dma_flags_set_dmabarrier() to dma interface

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

---

 dma-mapping.h |    6 ++++++
 1 files changed, 6 insertions(+)
include/linux/dma-mapping.h +0 -0

index 2dc21cb..4d1d199 100644

include/linux/dma-mapping.h +6 -0
@@ -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
#1 lore raw

From: [email protected]
Date: Thu, 27 Sep 2007 18:10:59 -0700

include/linux/dma-mapping.h static inline void dmam_release_declared_memory(struct device *dev) · line 106

Quoted 5 lines
include/linux/dma-mapping.h +5 -0
+#ifndef ARCH_CAN_REORDER_DMA
+static inline int dma_flags_set_dmabarrier(int dir) {
+	return dir;
+}
+#endif /* ARCH_CAN_REORDER_DMA */

Coding style, that initial openning brace should be on a line by itself.