]> git.karo-electronics.de Git - karo-tx-linux.git/blob - include/asm-x86/iommu.h
x86: move GART TLB flushing options to generic code
[karo-tx-linux.git] / include / asm-x86 / iommu.h
1 #ifndef _ASM_X8664_IOMMU_H
2 #define _ASM_X8664_IOMMU_H 1
3
4 extern void pci_iommu_shutdown(void);
5 extern void no_iommu_init(void);
6 extern struct dma_mapping_ops nommu_dma_ops;
7 extern int force_iommu, no_iommu;
8 extern int iommu_detected;
9 extern int dmar_disabled;
10 extern int iommu_fullflush;
11
12 extern unsigned long iommu_num_pages(unsigned long addr, unsigned long len);
13
14 #ifdef CONFIG_GART_IOMMU
15 extern int gart_iommu_aperture;
16 extern int gart_iommu_aperture_allowed;
17 extern int gart_iommu_aperture_disabled;
18
19 extern void early_gart_iommu_check(void);
20 extern void gart_iommu_init(void);
21 extern void gart_iommu_shutdown(void);
22 extern void __init gart_parse_options(char *);
23 extern void gart_iommu_hole_init(void);
24
25 #else
26 #define gart_iommu_aperture            0
27 #define gart_iommu_aperture_allowed    0
28 #define gart_iommu_aperture_disabled   1
29
30 static inline void early_gart_iommu_check(void)
31 {
32 }
33 static inline void gart_iommu_init(void)
34 {
35 }
36 static inline void gart_iommu_shutdown(void)
37 {
38 }
39 static inline void gart_parse_options(char *options)
40 {
41 }
42 static inline void gart_iommu_hole_init(void)
43 {
44 }
45 #endif
46
47 #endif