public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] dma: introduce no-op stub "dma_flags_set_dmaflush"
@ 2007-08-18  0:27 akepner
  0 siblings, 0 replies; only message in thread
From: akepner @ 2007-08-18  0:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: rdreier


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.

Signed-off-by: Arthur Kepner <akepner@sgi.com>
-- 
 dma-mapping.h |    7 +++++++
 1 files changed, 7 insertions(+)
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index 2dc21cb..594a651 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -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
-- 
Arthur


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-18  0:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-18  0:27 [PATCH 1/3] dma: introduce no-op stub "dma_flags_set_dmaflush" akepner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox