public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [1/4] dma: add dma_flags_set_dmabarrier() to dma interface
@ 2007-09-28  1:10 akepner
  2007-09-28 22:43 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: akepner @ 2007-09-28  1:10 UTC (permalink / raw)
  To: Grant Grundler, Jesse Barnes, Jes Sorensen, Randy Dunlap,
	RolandDreier, James Bottomley
  Cc: linux-kernel


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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [1/4] dma: add dma_flags_set_dmabarrier() to dma interface
  2007-09-28  1:10 [1/4] dma: add dma_flags_set_dmabarrier() to dma interface akepner
@ 2007-09-28 22:43 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-09-28 22:43 UTC (permalink / raw)
  To: akepner
  Cc: grundler, jbarnes, jes, randy.dunlap, rdreier, James.Bottomley,
	linux-kernel

From: akepner@sgi.com
Date: Thu, 27 Sep 2007 18:10:59 -0700

> +#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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-28 22:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-28  1:10 [1/4] dma: add dma_flags_set_dmabarrier() to dma interface akepner
2007-09-28 22:43 ` David Miller

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