blob: b6a809fa2995fc989bc1175fca12ab483c28790e [file] [log] [blame]
Fenghua Yu62fdd762008-10-17 12:14:13 -07001#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
8extern void pci_iommu_shutdown(void);
9extern void no_iommu_init(void);
Suresh Siddhad3f13812011-08-23 17:05:25 -070010#ifdef CONFIG_INTEL_IOMMU
Suresh Siddhaf5d1b972011-08-23 17:05:22 -070011extern int force_iommu, no_iommu;
Fenghua Yu4ed0d3e2009-04-24 17:30:20 -070012extern int iommu_pass_through;
Suresh Siddhaf5d1b972011-08-23 17:05:22 -070013extern int iommu_detected;
Alex Williamsonbcb71ab2011-10-21 15:56:24 -040014extern int iommu_group_mf;
Luck, Tony008fe142009-05-26 15:45:12 -070015#else
16#define iommu_pass_through (0)
Suresh Siddhaf5d1b972011-08-23 17:05:22 -070017#define no_iommu (1)
18#define iommu_detected (0)
Alex Williamsonbcb71ab2011-10-21 15:56:24 -040019#define iommu_group_mf (0)
Luck, Tony008fe142009-05-26 15:45:12 -070020#endif
Fenghua Yu62fdd762008-10-17 12:14:13 -070021extern void iommu_dma_init(void);
22extern void machvec_init(const char *name);
Fenghua Yu62fdd762008-10-17 12:14:13 -070023
24#endif