* [PATCH 1/5] dma: add dma_flags_set_attr() to dma interface
@ 2007-10-03 2:44 akepner
2007-10-03 3:01 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: akepner @ 2007-10-03 2:44 UTC (permalink / raw)
To: Grant Grundler, Jesse Barnes, Jes Sorensen, Randy Dunlap,
RolandDreier, James Bottomley, David Miller
Cc: linux-kernel
Introduce the dma_flags_set_attr() interface and give it a default
no-op implementation.
Signed-off-by: Arthur Kepner <akepner@sgi.com>
---
dma-mapping.h | 8 ++++++++
1 files changed, 8 insertions(+)
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index 2dc21cb..4990aaf 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -99,4 +99,12 @@ static inline void dmam_release_declared_memory(struct device *dev)
}
#endif /* ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY */
+#define DMA_BARRIER_ATTR 0x1
+#ifndef ARCH_USES_DMA_ATTRS
+static inline int dma_flags_set_attr(u32 attr, enum dma_data_direction dir)
+{
+ return dir;
+}
+#endif /* ARCH_USES_DMA_ATTRS */
+
#endif
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/5] dma: add dma_flags_set_attr() to dma interface
2007-10-03 2:44 [PATCH 1/5] dma: add dma_flags_set_attr() to dma interface akepner
@ 2007-10-03 3:01 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-10-03 3:01 UTC (permalink / raw)
To: akepner
Cc: grundler, jbarnes, jes, randy.dunlap, rdreier, James.Bottomley,
linux-kernel
From: akepner@sgi.com
Date: Tue, 2 Oct 2007 19:44:57 -0700
>
> Introduce the dma_flags_set_attr() interface and give it a default
> no-op implementation.
>
> Signed-off-by: Arthur Kepner <akepner@sgi.com>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-03 3:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-03 2:44 [PATCH 1/5] dma: add dma_flags_set_attr() to dma interface akepner
2007-10-03 3:01 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®