blob: 068c9a40aa5b10c81f5123bf80c3b212cda32840 [file] [log] [blame]
FUJITA Tomonorie93be882008-07-10 08:27:49 +09001#ifndef _ASM_X8664_IOMMU_H
2#define _ASM_X8664_IOMMU_H 1
Yinghai Luf2cf8e02007-07-21 17:11:31 +02003
4extern void pci_iommu_shutdown(void);
5extern void no_iommu_init(void);
6extern int force_iommu, no_iommu;
7extern int iommu_detected;
FUJITA Tomonorie93be882008-07-10 08:27:49 +09008
FUJITA Tomonori8cbfd4f42008-07-09 16:29:41 +09009#ifdef CONFIG_GART_IOMMU
FUJITA Tomonorie93be882008-07-10 08:27:49 +090010extern int gart_iommu_aperture;
11extern int gart_iommu_aperture_allowed;
12extern int gart_iommu_aperture_disabled;
13
14extern void early_gart_iommu_check(void);
Yinghai Luf2cf8e02007-07-21 17:11:31 +020015extern void gart_iommu_init(void);
16extern void gart_iommu_shutdown(void);
17extern void __init gart_parse_options(char *);
FUJITA Tomonorie93be882008-07-10 08:27:49 +090018extern void gart_iommu_hole_init(void);
19
Yinghai Luf2cf8e02007-07-21 17:11:31 +020020#else
FUJITA Tomonorie93be882008-07-10 08:27:49 +090021#define gart_iommu_aperture 0
22#define gart_iommu_aperture_allowed 0
23#define gart_iommu_aperture_disabled 1
24
25static inline void early_gart_iommu_check(void)
26{
27}
Yinghai Luf2cf8e02007-07-21 17:11:31 +020028
29static inline void gart_iommu_shutdown(void)
30{
31}
Yinghai Luf2cf8e02007-07-21 17:11:31 +020032#endif
33
34#endif