Re: [PATCH 1/5] dma: add dma_flags_set_attr() to dma interface

2007-10-02 Thread David Miller
From: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>

Acked-by: David S. Miller <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/5] dma: add dma_flags_set_attr() to dma interface

2007-10-02 Thread akepner

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

Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]>

---

 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/5] dma: add dma_flags_set_attr() to dma interface

2007-10-02 Thread akepner

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

Signed-off-by: Arthur Kepner [EMAIL PROTECTED]

---

 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
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5] dma: add dma_flags_set_attr() to dma interface

2007-10-02 Thread David Miller
From: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]

Acked-by: David S. Miller [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/