]> err.no Git - linux-2.6/blob - arch/x86/kernel/pci-dma.c
x86: unify pci-nommu
[linux-2.6] / arch / x86 / kernel / pci-dma.c
1 #include <linux/dma-mapping.h>
2
3 const struct dma_mapping_ops *dma_ops;
4 EXPORT_SYMBOL(dma_ops);
5
6 #ifdef CONFIG_IOMMU_DEBUG
7 int panic_on_overflow __read_mostly = 1;
8 int force_iommu __read_mostly = 1;
9 #else
10 int panic_on_overflow __read_mostly = 0;
11 int force_iommu __read_mostly = 0;
12 #endif
13
14 int dma_set_mask(struct device *dev, u64 mask)
15 {
16         if (!dev->dma_mask || !dma_supported(dev, mask))
17                 return -EIO;
18
19         *dev->dma_mask = mask;
20
21         return 0;
22 }
23 EXPORT_SYMBOL(dma_set_mask);
24
25