aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dma-debug.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-01-09 08:14:49 -0500
committerJoerg Roedel <joerg.roedel@amd.com>2009-03-05 14:35:18 -0500
commitf62bc980e6fd26434012c0d5676ecb17179d9ee4 (patch)
tree515d946a1739eb9a6bbcce215d8be62ae5695b09 /include/linux/dma-debug.h
parent2d62ece14fe04168a7d16688ddd2d17ac472268c (diff)
dma-debug: add checking for map/unmap_page/single
Impact: add debug callbacks for dma_{un}map_[page|single] Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include/linux/dma-debug.h')
-rw-r--r--include/linux/dma-debug.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/dma-debug.h b/include/linux/dma-debug.h
index 345d5387a30d..65f73526ba2c 100644
--- a/include/linux/dma-debug.h
+++ b/include/linux/dma-debug.h
@@ -28,12 +28,35 @@ struct device;
28 28
29extern void dma_debug_init(u32 num_entries); 29extern void dma_debug_init(u32 num_entries);
30 30
31extern void debug_dma_map_page(struct device *dev, struct page *page,
32 size_t offset, size_t size,
33 int direction, dma_addr_t dma_addr,
34 bool map_single);
35
36extern void debug_dma_unmap_page(struct device *dev, dma_addr_t addr,
37 size_t size, int direction, bool map_single);
38
39
31#else /* CONFIG_DMA_API_DEBUG */ 40#else /* CONFIG_DMA_API_DEBUG */
32 41
33static inline void dma_debug_init(u32 num_entries) 42static inline void dma_debug_init(u32 num_entries)
34{ 43{
35} 44}
36 45
46static inline void debug_dma_map_page(struct device *dev, struct page *page,
47 size_t offset, size_t size,
48 int direction, dma_addr_t dma_addr,
49 bool map_single)
50{
51}
52
53static inline void debug_dma_unmap_page(struct device *dev, dma_addr_t addr,
54 size_t size, int direction,
55 bool map_single)
56{
57}
58
59
37#endif /* CONFIG_DMA_API_DEBUG */ 60#endif /* CONFIG_DMA_API_DEBUG */
38 61
39#endif /* __DMA_DEBUG_H */ 62#endif /* __DMA_DEBUG_H */