]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/ia64/kernel/dma-mapping.c
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[mirror_ubuntu-focal-kernel.git] / arch / ia64 / kernel / dma-mapping.c
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/dma-mapping.h>
3 #include <linux/export.h>
4
5 /* Set this to 1 if there is a HW IOMMU in the system */
6 int iommu_detected __read_mostly;
7
8 const struct dma_map_ops *dma_ops;
9 EXPORT_SYMBOL(dma_ops);
10
11 #define PREALLOC_DMA_DEBUG_ENTRIES (1 << 16)
12
13 static int __init dma_init(void)
14 {
15 dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
16
17 return 0;
18 }
19 fs_initcall(dma_init);
20
21 const struct dma_map_ops *dma_get_ops(struct device *dev)
22 {
23 return dma_ops;
24 }
25 EXPORT_SYMBOL(dma_get_ops);