]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: export iommu_is_span_boundary helper function
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 4 Mar 2008 22:29:27 +0000 (14:29 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Mar 2008 00:35:17 +0000 (16:35 -0800)
commit43aabf09904264e4c41c034ea621d2131d2b0795
treecd93a86f90bfd8e9bef9cbcf40abde55acc26b80
parenteee1a38007f3a380039796e1f1a0415be3d90dc1
iommu: export iommu_is_span_boundary helper function

iommu_is_span_boundary is used internally in the IOMMU helper
(lib/iommu-helper.c), a primitive function that judges whether a memory area
spans LLD's segment boundary or not.

It's difficult to convert some IOMMUs to use the IOMMU helper but
iommu_is_span_boundary is still useful for them.  So this patch exports it.

This is needed for the parisc iommu fixes.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Kyle McMartin <kyle@parisc-linux.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/iommu-helper.h
lib/iommu-helper.c