[PATCH] x86_64: Calgary IOMMU - introduce iommu_detected
authorJon Mason <jdmason@us.ibm.com>
Mon, 26 Jun 2006 11:58:05 +0000 (13:58 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:18 +0000 (10:48 -0700)
commit8d4f6b93a4aaa6b56b600cd1165c971f4395e4b3
tree23955634ded577e53c46390714a6f069b4587c86
parent2bbc419f9d51b44f3fdeea12c5b786bdace82b8e
[PATCH] x86_64: Calgary IOMMU - introduce iommu_detected

swiotlb relies on the gart specific iommu_aperture variable to know if
we discovered a hardware IOMMU before swiotlb initialization.  Introduce
iommu_detected to do the same thing, but in a HW IOMMU neutral manner,
in preparation for adding the Calgary HW IOMMU.

Signed-Off-By: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-Off-By: Jon Mason <jdmason@us.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/aperture.c
arch/x86_64/kernel/pci-dma.c
arch/x86_64/kernel/pci-gart.c
arch/x86_64/kernel/pci-swiotlb.c
include/asm-x86_64/proto.h