diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-09 12:54:42 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-03-05 20:35:15 +0100 |
commit | 6bf078715c1998d4d10716251cc10ce45908594c (patch) | |
tree | ae975ed487463ff9b82f9f8f3fbc1871f514f03b /include | |
parent | dma-debug: add allocator code (diff) | |
download | linux-6bf078715c1998d4d10716251cc10ce45908594c.tar.xz linux-6bf078715c1998d4d10716251cc10ce45908594c.zip |
dma-debug: add initialization code
Impact: add code to initialize dma-debug core data structures
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dma-debug.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/dma-debug.h b/include/linux/dma-debug.h index ce4ace707c7b..345d5387a30d 100644 --- a/include/linux/dma-debug.h +++ b/include/linux/dma-debug.h @@ -20,6 +20,20 @@ #ifndef __DMA_DEBUG_H #define __DMA_DEBUG_H +#include <linux/types.h> + struct device; +#ifdef CONFIG_DMA_API_DEBUG + +extern void dma_debug_init(u32 num_entries); + +#else /* CONFIG_DMA_API_DEBUG */ + +static inline void dma_debug_init(u32 num_entries) +{ +} + +#endif /* CONFIG_DMA_API_DEBUG */ + #endif /* __DMA_DEBUG_H */ |