]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/include/asm/dma-mapping.h
[ARM] dma: Reduce to one dma_sync_sg_* implementation
[linux-2.6-omap-h63xx.git] / arch / arm / include / asm / dma-mapping.h
index 856ee1bdee57e45315d125646f7653e9504b0407..29404f71ab8750ed26704b1b35e932046eb56688 100644 (file)
@@ -410,6 +410,17 @@ extern void dmabounce_unregister_dev(struct device *);
  *
  */
 extern int dma_needs_bounce(struct device*, dma_addr_t, size_t);
+
+/*
+ * Private functions
+ */
+int dmabounce_sync_for_cpu(struct device *, dma_addr_t, unsigned long,
+                       size_t, enum dma_data_direction);
+int dmabounce_sync_for_device(struct device *, dma_addr_t, unsigned long,
+                       size_t, enum dma_data_direction);
+#else
+#define dmabounce_sync_for_cpu(dev,dma,off,sz,dir)     (1)
+#define dmabounce_sync_for_device(dev,dma,off,sz,dir)  (1)
 #endif /* CONFIG_DMABOUNCE */
 
 #endif /* __KERNEL__ */