intel-iommu: IA64 support
[deliverable/linux.git] / include / asm-x86 / iommu.h
CommitLineData
77ef50a5
VN
1#ifndef ASM_X86__IOMMU_H
2#define ASM_X86__IOMMU_H
f2cf8e08
YL
3
4extern void pci_iommu_shutdown(void);
5extern void no_iommu_init(void);
1956a96d 6extern struct dma_mapping_ops nommu_dma_ops;
f2cf8e08
YL
7extern int force_iommu, no_iommu;
8extern int iommu_detected;
e51af663 9extern int dmar_disabled;
5b6985ce 10extern int forbid_dac;
e93be88d 11
bdab0ba3 12extern unsigned long iommu_nr_pages(unsigned long addr, unsigned long len);
8978b742 13
5b6985ce
FY
14/* 10 seconds */
15#define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
16
8cbfd4f4 17#ifdef CONFIG_GART_IOMMU
e93be88d
FT
18extern int gart_iommu_aperture;
19extern int gart_iommu_aperture_allowed;
20extern int gart_iommu_aperture_disabled;
21
22extern void early_gart_iommu_check(void);
f2cf8e08
YL
23extern void gart_iommu_init(void);
24extern void gart_iommu_shutdown(void);
25extern void __init gart_parse_options(char *);
e93be88d
FT
26extern void gart_iommu_hole_init(void);
27
f2cf8e08 28#else
e93be88d
FT
29#define gart_iommu_aperture 0
30#define gart_iommu_aperture_allowed 0
31#define gart_iommu_aperture_disabled 1
f2cf8e08 32
e93be88d 33static inline void early_gart_iommu_check(void)
f2cf8e08
YL
34{
35}
ac7ded2a
FT
36static inline void gart_iommu_init(void)
37{
38}
e93be88d
FT
39static inline void gart_iommu_shutdown(void)
40{
41}
ac7ded2a
FT
42static inline void gart_parse_options(char *options)
43{
44}
45static inline void gart_iommu_hole_init(void)
46{
47}
f2cf8e08
YL
48#endif
49
77ef50a5 50#endif /* ASM_X86__IOMMU_H */
This page took 0.158122 seconds and 5 git commands to generate.