blob: 39a3cd0a417326be10680e9d9cb52458e400051f [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{
13 dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
14}
15fs_initcall(dma_init);
16
FUJITA Tomonori160c1d82009-01-05 23:59:02 +090017struct dma_map_ops *dma_get_ops(struct device *dev)
FUJITA Tomonoric190ab02009-01-05 23:36:16 +090018{
19 return dma_ops;
20}
21EXPORT_SYMBOL(dma_get_ops);