]> Pileus Git - ~andy/linux/blobdiff - arch/sparc64/kernel/iommu_common.h
[SPARC64]: IOMMU allocations using iommu-helper layer.
[~andy/linux] / arch / sparc64 / kernel / iommu_common.h
index 8390f043ffffc89d0e2471b22886b747e09e1047..0713bd58499c1de49d2650877c60f59437b66fd3 100644 (file)
@@ -58,4 +58,12 @@ static inline unsigned long calc_npages(struct scatterlist *sglist, int nelems)
        return npages;
 }
 
+extern unsigned long iommu_range_alloc(struct device *dev,
+                                      struct iommu *iommu,
+                                      unsigned long npages,
+                                      unsigned long *handle);
+extern void iommu_range_free(struct iommu *iommu,
+                            dma_addr_t dma_addr,
+                            unsigned long npages);
+
 #endif /* _IOMMU_COMMON_H */