1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/dma-mapping.h>
3 #include <linux/export.h>
5 /* Set this to 1 if there is a HW IOMMU in the system */
6 int iommu_detected __read_mostly
;
8 const struct dma_map_ops
*dma_ops
;
9 EXPORT_SYMBOL(dma_ops
);
11 #define PREALLOC_DMA_DEBUG_ENTRIES (1 << 16)
13 static int __init
dma_init(void)
15 dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES
);
19 fs_initcall(dma_init
);
21 const struct dma_map_ops
*dma_get_ops(struct device
*dev
)
25 EXPORT_SYMBOL(dma_get_ops
);