dma-mapping.c 437 B

123456789101112131415161718192021
  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. }
  11. fs_initcall(dma_init);
  12. struct dma_map_ops *dma_get_ops(struct device *dev)
  13. {
  14. return dma_ops;
  15. }
  16. EXPORT_SYMBOL(dma_get_ops);