David S. Miller | 944c67df | 2008-08-27 18:01:36 -0700 | [diff] [blame] | 1 | #include <linux/kernel.h> |
David S. Miller | 944c67df | 2008-08-27 18:01:36 -0700 | [diff] [blame] | 2 | #include <linux/dma-mapping.h> |
FUJITA Tomonori | 451d740 | 2009-08-10 11:53:17 +0900 | [diff] [blame] | 3 | #include <linux/dma-debug.h> |
David S. Miller | 944c67df | 2008-08-27 18:01:36 -0700 | [diff] [blame] | 4 | |
FUJITA Tomonori | 451d740 | 2009-08-10 11:53:17 +0900 | [diff] [blame] | 5 | #define PREALLOC_DMA_DEBUG_ENTRIES (1 << 15) |
David S. Miller | 944c67df | 2008-08-27 18:01:36 -0700 | [diff] [blame] | 6 | |
FUJITA Tomonori | 451d740 | 2009-08-10 11:53:17 +0900 | [diff] [blame] | 7 | static int __init dma_init(void) |
David S. Miller | 944c67df | 2008-08-27 18:01:36 -0700 | [diff] [blame] | 8 | { |
FUJITA Tomonori | 451d740 | 2009-08-10 11:53:17 +0900 | [diff] [blame] | 9 | dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES); |
David S. Miller | 944c67df | 2008-08-27 18:01:36 -0700 | [diff] [blame] | 10 | return 0; |
11 | } | ||||
FUJITA Tomonori | 451d740 | 2009-08-10 11:53:17 +0900 | [diff] [blame] | 12 | fs_initcall(dma_init); |