Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f454aa6b90be8c5845d1e4716e12479f6ba26538
Commit:     f454aa6b90be8c5845d1e4716e12479f6ba26538
Parent:     017cc022b6f0a0619cc3b0bba43e1c3247b06779
Author:     Russell King <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 12 19:26:05 2007 +0000
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Mon Feb 12 19:26:05 2007 +0000

    [ARM] Provide dummy noncoherent DMA API
    
    We don't currently support the noncoherent DMA API, but it needs to
    be provided for kernels with devres to link.
    
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 include/asm-arm/dma-mapping.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/include/asm-arm/dma-mapping.h b/include/asm-arm/dma-mapping.h
index 9bc46b4..a593999 100644
--- a/include/asm-arm/dma-mapping.h
+++ b/include/asm-arm/dma-mapping.h
@@ -61,6 +61,22 @@ static inline int dma_mapping_error(dma_addr_t dma_addr)
        return dma_addr == ~0;
 }
 
+/*
+ * Dummy noncoherent implementation.  We don't provide a dma_cache_sync
+ * function so drivers using this API are highlighted with build warnings.
+ */
+static inline void *
+dma_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *handle, 
gfp_t gfp)
+{
+       return NULL;
+}
+
+static inline void
+dma_free_noncoherent(struct device *dev, size_t size, void *cpu_addr,
+                    dma_addr_t handle)
+{
+}
+
 /**
  * dma_alloc_coherent - allocate consistent memory for DMA
  * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to