blob: f2c1600da097f00a6c6c388ded1a9e5523dd39d9 [file] [log] [blame]
FUJITA Tomonori4d9b9772009-01-05 23:36:12 +09001#include <linux/dma-mapping.h>
2
FUJITA Tomonorifb446722009-01-27 23:43:59 +09003/* Set this to 1 if there is a HW IOMMU in the system */
4int iommu_detected __read_mostly;
5
FUJITA Tomonori160c1d82009-01-05 23:59:02 +09006struct dma_map_ops *dma_ops;
FUJITA Tomonori4d9b9772009-01-05 23:36:12 +09007EXPORT_SYMBOL(dma_ops);
FUJITA Tomonoric190ab02009-01-05 23:36:16 +09008
fujita390bd132009-07-09 21:25:05 -07009#define PREALLOC_DMA_DEBUG_ENTRIES (1 << 16)
10
11static int __init dma_init(void)
12{
Luck, Tonyf2486f22009-08-31 16:54:03 -070013 dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
14
15 return 0;
fujita390bd132009-07-09 21:25:05 -070016}
17fs_initcall(dma_init);
18
FUJITA Tomonori160c1d82009-01-05 23:59:02 +090019struct dma_map_ops *dma_get_ops(struct device *dev)
FUJITA Tomonoric190ab02009-01-05 23:36:16 +090020{
21 return dma_ops;
22}
23EXPORT_SYMBOL(dma_get_ops);