Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[cascardo/linux.git] / include / linux / dma-debug.h
index fe8cb61..c7d844f 100644 (file)
@@ -56,6 +56,13 @@ extern void debug_dma_alloc_coherent(struct device *dev, size_t size,
 extern void debug_dma_free_coherent(struct device *dev, size_t size,
                                    void *virt, dma_addr_t addr);
 
+extern void debug_dma_map_resource(struct device *dev, phys_addr_t addr,
+                                  size_t size, int direction,
+                                  dma_addr_t dma_addr);
+
+extern void debug_dma_unmap_resource(struct device *dev, dma_addr_t dma_addr,
+                                    size_t size, int direction);
+
 extern void debug_dma_sync_single_for_cpu(struct device *dev,
                                          dma_addr_t dma_handle, size_t size,
                                          int direction);
@@ -141,6 +148,18 @@ static inline void debug_dma_free_coherent(struct device *dev, size_t size,
 {
 }
 
+static inline void debug_dma_map_resource(struct device *dev, phys_addr_t addr,
+                                         size_t size, int direction,
+                                         dma_addr_t dma_addr)
+{
+}
+
+static inline void debug_dma_unmap_resource(struct device *dev,
+                                           dma_addr_t dma_addr, size_t size,
+                                           int direction)
+{
+}
+
 static inline void debug_dma_sync_single_for_cpu(struct device *dev,
                                                 dma_addr_t dma_handle,
                                                 size_t size, int direction)