diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-23 13:22:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-23 13:22:01 -0400 |
commit | 5b34653963de7a6d0d8c783527457d68fddc60fb (patch) | |
tree | 1a234741e1823a54cd0514616f783b4cf503a528 /arch/x86/include/asm/iommu.h | |
parent | 765426e8ee4c0ab2bc9d44951f4865b8494cdbd0 (diff) | |
parent | 5e1b00758b5a8bee9d42515bffdaf305a32f1b04 (diff) |
Merge branch 'x86/um-header' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86/um-header' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (26 commits)
x86: canonicalize remaining header guards
x86: drop double underscores from header guards
x86: Fix ASM_X86__ header guards
x86, um: get rid of uml-config.h
x86, um: get rid of arch/um/Kconfig.arch
x86, um: get rid of arch/um/os symlink
x86, um: get rid of excessive includes of uml-config.h
x86, um: get rid of header symlinks
x86, um: merge Kconfig.i386 and Kconfig.x86_64
x86, um: get rid of sysdep symlink
x86, um: trim the junk from uml ptrace-*.h
x86, um: take vm-flags.h to sysdep
x86, um: get rid of uml asm/arch
x86, um: get rid of uml highmem.h
x86, um: get rid of uml unistd.h
x86, um: get rid of system.h -> system.h include
x86, um: uml atomic.h is not needed anymore
x86, um: untangle uml ldt.h
x86, um: get rid of more uml asm/arch uses
x86, um: remove dead header (uml module-generic.h; never used these days)
...
Diffstat (limited to 'arch/x86/include/asm/iommu.h')
-rw-r--r-- | arch/x86/include/asm/iommu.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/x86/include/asm/iommu.h b/arch/x86/include/asm/iommu.h new file mode 100644 index 000000000000..98e28ea8cd16 --- /dev/null +++ b/arch/x86/include/asm/iommu.h | |||
@@ -0,0 +1,50 @@ | |||
1 | #ifndef _ASM_X86_IOMMU_H | ||
2 | #define _ASM_X86_IOMMU_H | ||
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 forbid_dac; | ||
11 | |||
12 | extern unsigned long iommu_nr_pages(unsigned long addr, unsigned long len); | ||
13 | |||
14 | /* 10 seconds */ | ||
15 | #define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000) | ||
16 | |||
17 | #ifdef CONFIG_GART_IOMMU | ||
18 | extern int gart_iommu_aperture; | ||
19 | extern int gart_iommu_aperture_allowed; | ||
20 | extern int gart_iommu_aperture_disabled; | ||
21 | |||
22 | extern void early_gart_iommu_check(void); | ||
23 | extern void gart_iommu_init(void); | ||
24 | extern void gart_iommu_shutdown(void); | ||
25 | extern void __init gart_parse_options(char *); | ||
26 | extern void gart_iommu_hole_init(void); | ||
27 | |||
28 | #else | ||
29 | #define gart_iommu_aperture 0 | ||
30 | #define gart_iommu_aperture_allowed 0 | ||
31 | #define gart_iommu_aperture_disabled 1 | ||
32 | |||
33 | static inline void early_gart_iommu_check(void) | ||
34 | { | ||
35 | } | ||
36 | static inline void gart_iommu_init(void) | ||
37 | { | ||
38 | } | ||
39 | static inline void gart_iommu_shutdown(void) | ||
40 | { | ||
41 | } | ||
42 | static inline void gart_parse_options(char *options) | ||
43 | { | ||
44 | } | ||
45 | static inline void gart_iommu_hole_init(void) | ||
46 | { | ||
47 | } | ||
48 | #endif | ||
49 | |||
50 | #endif /* _ASM_X86_IOMMU_H */ | ||