Skip to contentSkip to conversation

dma: introduce no-op stub "dma_flags_set_dmaflush"

PATCH In review [email protected] 1 participant 1 message Aug 18, 2007 DMA mapping helpers

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 dma: introduce no-op stub "dma_flags_set_dmaflush"

Introduce a no-op stub function "dma_flags_set_dmaflush". Arches can override this if necessary to associate a "dmaflush" attribute with a DMA-able memory region. In-flight DMA will be flushed to host memory when a memory region with the dmaflush attribute is written to.

Signature · 2 lines
 dma-mapping.h |    7 +++++++
 1 files changed, 7 insertions(+)
include/linux/dma-mapping.h +7 -0
index 2dc21cb..594a651 100644
@@ -99,4 +99,11 @@ static inline void dmam_release_declared_memory(struct device *dev)
 }
 #endif /* ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY */
 
+#ifndef ARCH_DOES_POSTED_DMA
+static inline int
+dma_flags_set_dmaflush(int dir) {
+	return (dir);
+}
+#endif /* ARCH_DOES_POSTED_DMA */
+
 #endif
Signature · 1 line
Arthur