dma-mapping.c 469 B

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