Fenghua Yu | 62fdd76 | 2008-10-17 12:14:13 -0700 | [diff] [blame] | 1 | #ifndef _ASM_IA64_IOMMU_H |
| 2 | #define _ASM_IA64_IOMMU_H 1 |
| 3 | |
| 4 | #define cpu_has_x2apic 0 |
| 5 | /* 10 seconds */ |
| 6 | #define DMAR_OPERATION_TIMEOUT (((cycles_t) local_cpu_data->itc_freq)*10) |
| 7 | |
| 8 | extern void pci_iommu_shutdown(void); |
| 9 | extern void no_iommu_init(void); |
Suresh Siddha | d3f1381 | 2011-08-23 17:05:25 -0700 | [diff] [blame] | 10 | #ifdef CONFIG_INTEL_IOMMU |
Suresh Siddha | f5d1b97 | 2011-08-23 17:05:22 -0700 | [diff] [blame] | 11 | extern int force_iommu, no_iommu; |
Fenghua Yu | 4ed0d3e | 2009-04-24 17:30:20 -0700 | [diff] [blame] | 12 | extern int iommu_pass_through; |
Suresh Siddha | f5d1b97 | 2011-08-23 17:05:22 -0700 | [diff] [blame] | 13 | extern int iommu_detected; |
Alex Williamson | bcb71ab | 2011-10-21 15:56:24 -0400 | [diff] [blame] | 14 | extern int iommu_group_mf; |
Luck, Tony | 008fe14 | 2009-05-26 15:45:12 -0700 | [diff] [blame] | 15 | #else |
| 16 | #define iommu_pass_through (0) |
Suresh Siddha | f5d1b97 | 2011-08-23 17:05:22 -0700 | [diff] [blame] | 17 | #define no_iommu (1) |
| 18 | #define iommu_detected (0) |
Alex Williamson | bcb71ab | 2011-10-21 15:56:24 -0400 | [diff] [blame] | 19 | #define iommu_group_mf (0) |
Luck, Tony | 008fe14 | 2009-05-26 15:45:12 -0700 | [diff] [blame] | 20 | #endif |
Fenghua Yu | 62fdd76 | 2008-10-17 12:14:13 -0700 | [diff] [blame] | 21 | extern void iommu_dma_init(void); |
| 22 | extern void machvec_init(const char *name); |
Fenghua Yu | 62fdd76 | 2008-10-17 12:14:13 -0700 | [diff] [blame] | 23 | |
| 24 | #endif |