blob: 156b9d8e19327970a73e2f7ed102af6d26416809 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Fenghua Yu62fdd762008-10-17 12:14:13 -07002#ifndef _ASM_IA64_IOMMU_H
3#define _ASM_IA64_IOMMU_H 1
4
Fenghua Yu62fdd762008-10-17 12:14:13 -07005/* 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;
Luck, Tony008fe142009-05-26 15:45:12 -070014#else
15#define iommu_pass_through (0)
Suresh Siddhaf5d1b972011-08-23 17:05:22 -070016#define no_iommu (1)
17#define iommu_detected (0)
Luck, Tony008fe142009-05-26 15:45:12 -070018#endif
Fenghua Yu62fdd762008-10-17 12:14:13 -070019extern void iommu_dma_init(void);
20extern void machvec_init(const char *name);
Fenghua Yu62fdd762008-10-17 12:14:13 -070021
22#endif