2 Mar 2008 07:10
[PATCH -mm 1/3] export iommu_is_span_boundary helper function
FUJITA Tomonori <fujita.tomonori <at> lab.ntt.co.jp>
2008-03-02 06:10:26 GMT
2008-03-02 06:10:26 GMT
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. Signed-off-by: FUJITA Tomonori <fujita.tomonori <at> lab.ntt.co.jp> Cc: Andrew Morton <akpm <at> linux-foundation.org> --- include/linux/iommu-helper.h | 3 +++ lib/iommu-helper.c | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/include/linux/iommu-helper.h b/include/linux/iommu-helper.h index 4dd4c04..c975caf 100644 --- a/include/linux/iommu-helper.h +++ b/include/linux/iommu-helper.h <at> <at> -1,3 +1,6 <at> <at> +extern int iommu_is_span_boundary(unsigned int index, unsigned int nr, + unsigned long shift, + unsigned long boundary_size); extern unsigned long iommu_area_alloc(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long shift, diff --git a/lib/iommu-helper.c b/lib/iommu-helper.c index 495575a..a3b8d4c 100644 --- a/lib/iommu-helper.c +++ b/lib/iommu-helper.c(Continue reading)
I will so try the patch asap and let you know the results.
hth,
r.
---
Scarlet One, ADSL 6 Mbps + Telephone, from EUR 29,95...
RSS Feed