Merge branch 'io_remap_pfn_range' of git://www.jni.nu/cris
[firefly-linux-kernel-4.4.55.git] / include / linux / dma-mapping.h
index 89b7e1a605b8113ac90e7f4bd51f73d595988ade..e0670a51205691b10fd0974a9bf42e49620c50ee 100644 (file)
@@ -142,6 +142,14 @@ static inline int dma_set_seg_boundary(struct device *dev, unsigned long mask)
                return -EIO;
 }
 
+static inline int dma_get_cache_alignment(void)
+{
+#ifdef ARCH_DMA_MINALIGN
+       return ARCH_DMA_MINALIGN;
+#endif
+       return 1;
+}
+
 /* flags for the coherent memory api */
 #define        DMA_MEMORY_MAP                  0x01
 #define DMA_MEMORY_IO                  0x02