blob: 90958ed993faa3d140c495911bb77a1c57037ee9 [file] [log] [blame]
Joerg Roedel395624f2007-10-24 12:49:47 +02001#ifndef _ASM_X8664_IOMMU_H
2#define _ASM_X8664_IOMMU_H 1
3
4extern void pci_iommu_shutdown(void);
5extern void no_iommu_init(void);
6extern int force_iommu, no_iommu;
7extern int iommu_detected;
Joerg Roedel966396d2007-10-24 12:49:48 +02008#ifdef CONFIG_GART_IOMMU
Joerg Roedel395624f2007-10-24 12:49:47 +02009extern void gart_iommu_init(void);
10extern void gart_iommu_shutdown(void);
11extern void __init gart_parse_options(char *);
Yinghai Luaaf23042008-01-30 13:33:09 +010012extern void early_gart_iommu_check(void);
Joerg Roedel0440d4c2007-10-24 12:49:50 +020013extern void gart_iommu_hole_init(void);
Joerg Roedel395624f2007-10-24 12:49:47 +020014extern int fallback_aper_order;
15extern int fallback_aper_force;
Joerg Roedel0440d4c2007-10-24 12:49:50 +020016extern int gart_iommu_aperture;
17extern int gart_iommu_aperture_allowed;
18extern int gart_iommu_aperture_disabled;
Joerg Roedel395624f2007-10-24 12:49:47 +020019extern int fix_aperture;
20#else
Joerg Roedel0440d4c2007-10-24 12:49:50 +020021#define gart_iommu_aperture 0
22#define gart_iommu_aperture_allowed 0
Joerg Roedel395624f2007-10-24 12:49:47 +020023
Yinghai Luaaf23042008-01-30 13:33:09 +010024static inline void early_gart_iommu_check(void)
25{
26}
27
Joerg Roedel395624f2007-10-24 12:49:47 +020028static inline void gart_iommu_shutdown(void)
29{
30}
31
32#endif
33
34#endif