summaryrefslogtreecommitdiffstats
path: root/include/linux/iommu-helper.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2008-02-04 22:28:07 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 09:44:11 -0800
commit0291df8cc9dac09c303d21d5bcd2ad73762c836a (patch)
tree5a79187b309cc1a2115a94bc7927c85dd3c67ac9 /include/linux/iommu-helper.h
parent0c95fdc59640824d7e0b017be295fb912ceef4ab (diff)
downloadop-kernel-dev-0291df8cc9dac09c303d21d5bcd2ad73762c836a.zip
op-kernel-dev-0291df8cc9dac09c303d21d5bcd2ad73762c836a.tar.gz
iommu sg: add IOMMU helper functions for the free area management
This adds IOMMU helper functions for the free area management. These functions take care of LLD's segment boundary limit for IOMMUs. They would be useful for IOMMUs that use bitmap for the free area management. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: Jeff Garzik <jeff@garzik.org> Cc: James Bottomley <James.Bottomley@steeleye.com> Cc: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/iommu-helper.h')
-rw-r--r--include/linux/iommu-helper.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/iommu-helper.h b/include/linux/iommu-helper.h
new file mode 100644
index 0000000..4dd4c04
--- /dev/null
+++ b/include/linux/iommu-helper.h
@@ -0,0 +1,7 @@
+extern unsigned long iommu_area_alloc(unsigned long *map, unsigned long size,
+ unsigned long start, unsigned int nr,
+ unsigned long shift,
+ unsigned long boundary_size,
+ unsigned long align_mask);
+extern void iommu_area_free(unsigned long *map, unsigned long start,
+ unsigned int nr);
OpenPOWER on IntegriCloud