dma-mapping.c 443 B

123456789101112131415161718192021222324
  1. #include <linux/dma-mapping.h>
  2. /* Set this to 1 if there is a HW IOMMU in the system */
  3. int iommu_detected __read_mostly;
  4. struct dma_map_ops *dma_ops;
  5. EXPORT_SYMBOL(dma_ops);
  6. #define PREALLOC_DMA_DEBUG_ENTRIES (1 << 16)
  7. static int __init dma_init(void)
  8. {
  9. dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
  10. return 0;
  11. }
  12. fs_initcall(dma_init);
  13. struct dma_map_ops *dma_get_ops(struct device *dev)
  14. {
  15. return dma_ops;
  16. }
  17. EXPORT_SYMBOL(dma_get_ops);