Merge branch 'x86/cleanups' into x86/irq
[deliverable/linux.git] / arch / x86 / include / asm / iommu.h
CommitLineData
1965aae3
PA
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;
e93be88d 9
bdab0ba3 10extern unsigned long iommu_nr_pages(unsigned long addr, unsigned long len);
8978b742 11
5b6985ce
FY
12/* 10 seconds */
13#define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
14
8cbfd4f4 15#ifdef CONFIG_GART_IOMMU
e93be88d
FT
16extern int gart_iommu_aperture;
17extern int gart_iommu_aperture_allowed;
18extern int gart_iommu_aperture_disabled;
19
20extern void early_gart_iommu_check(void);
f2cf8e08
YL
21extern void gart_iommu_init(void);
22extern void gart_iommu_shutdown(void);
23extern void __init gart_parse_options(char *);
e93be88d
FT
24extern void gart_iommu_hole_init(void);
25
f2cf8e08 26#else
e93be88d
FT
27#define gart_iommu_aperture 0
28#define gart_iommu_aperture_allowed 0
29#define gart_iommu_aperture_disabled 1
f2cf8e08 30
e93be88d 31static inline void early_gart_iommu_check(void)
f2cf8e08
YL
32{
33}
ac7ded2a
FT
34static inline void gart_iommu_init(void)
35{
36}
e93be88d
FT
37static inline void gart_iommu_shutdown(void)
38{
39}
ac7ded2a
FT
40static inline void gart_parse_options(char *options)
41{
42}
43static inline void gart_iommu_hole_init(void)
44{
45}
f2cf8e08
YL
46#endif
47
1965aae3 48#endif /* _ASM_X86_IOMMU_H */
This page took 0.164706 seconds and 5 git commands to generate.