diff options
author | Fenghua Yu <fenghua.yu@intel.com> | 2008-10-16 21:02:32 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-10-18 09:29:15 -0400 |
commit | 5b6985ce8ec7127b4d60ad450b64ca8b82748a3b (patch) | |
tree | f1d5a27601df04a3481690a1a2f90fc688034aff /include/asm-x86/iommu.h | |
parent | cacd4213d8ffed83676f38d5d8e93c673e0f1af7 (diff) |
intel-iommu: IA64 support
The current Intel IOMMU code assumes that both host page size and Intel
IOMMU page size are 4KiB. The first patch supports variable page size.
This provides support for IA64 which has multiple page sizes.
This patch also adds some other code hooks for IA64 platform including
DMAR_OPERATION_TIMEOUT definition.
[dwmw2: some cleanup]
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/asm-x86/iommu.h')
-rw-r--r-- | include/asm-x86/iommu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-x86/iommu.h b/include/asm-x86/iommu.h index 961e746da977..2daaffcda52f 100644 --- a/include/asm-x86/iommu.h +++ b/include/asm-x86/iommu.h | |||
@@ -7,9 +7,13 @@ extern struct dma_mapping_ops nommu_dma_ops; | |||
7 | extern int force_iommu, no_iommu; | 7 | extern int force_iommu, no_iommu; |
8 | extern int iommu_detected; | 8 | extern int iommu_detected; |
9 | extern int dmar_disabled; | 9 | extern int dmar_disabled; |
10 | extern int forbid_dac; | ||
10 | 11 | ||
11 | extern unsigned long iommu_nr_pages(unsigned long addr, unsigned long len); | 12 | extern unsigned long iommu_nr_pages(unsigned long addr, unsigned long len); |
12 | 13 | ||
14 | /* 10 seconds */ | ||
15 | #define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000) | ||
16 | |||
13 | #ifdef CONFIG_GART_IOMMU | 17 | #ifdef CONFIG_GART_IOMMU |
14 | extern int gart_iommu_aperture; | 18 | extern int gart_iommu_aperture; |
15 | extern int gart_iommu_aperture_allowed; | 19 | extern int gart_iommu_aperture_allowed; |