iommu: export iommu_area_reserve helper function
commitd26dbc5cf94b0a28acc947285c3b54814a73cb2e
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Mon, 22 Sep 2008 13:35:07 +0000 (22 22:35 +0900)
committerIngo Molnar <mingo@elte.hu>
Mon, 22 Sep 2008 14:47:50 +0000 (22 16:47 +0200)
treeba6d44e5945b491166159fee791761ebe4b39134
parent832a90c30485117d65180cc9a8d9869c1b158570
iommu: export iommu_area_reserve helper function

x86 has set_bit_string() that does the exact same thing that
set_bit_area() in lib/iommu-helper.c does.

This patch exports set_bit_area() in lib/iommu-helper.c as
iommu_area_reserve(), converts GART, Calgary, and AMD IOMMU to use it.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c
arch/x86/kernel/pci-calgary_64.c
arch/x86/kernel/pci-gart_64.c
include/linux/iommu-helper.h
lib/iommu-helper.c