]> err.no Git - linux-2.6/blobdiff - arch/sparc64/kernel/iommu_common.h
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
[linux-2.6] / arch / sparc64 / kernel / iommu_common.h
index 41992371c9326b160c3fa1e746026153684055ce..0713bd58499c1de49d2650877c60f59437b66fd3 100644 (file)
@@ -1,9 +1,11 @@
-/* $Id: iommu_common.h,v 1.5 2001/12/11 09:41:01 davem Exp $
- * iommu_common.h: UltraSparc SBUS/PCI common iommu declarations.
+/* iommu_common.h: UltraSparc SBUS/PCI common iommu declarations.
  *
- * Copyright (C) 1999 David S. Miller (davem@redhat.com)
+ * Copyright (C) 1999, 2008 David S. Miller (davem@davemloft.net)
  */
 
+#ifndef _IOMMU_COMMON_H
+#define _IOMMU_COMMON_H
+
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/sched.h>
@@ -55,3 +57,13 @@ 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 */