blob: 5f888cc5be49a0eb87fab02d32ec050a686d0387 [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);
Alexis Bruemmer1956a962008-07-25 19:44:51 -07006extern struct dma_mapping_ops nommu_dma_ops;
Yinghai Luf2cf8e02007-07-21 17:11:31 +02007extern int force_iommu, no_iommu;
8extern int iommu_detected;
FUJITA Tomonorie93be882008-07-10 08:27:49 +09009
FUJITA Tomonori8978b742008-07-29 13:38:53 +090010extern unsigned long iommu_num_pages(unsigned long addr, unsigned long len);
11
FUJITA Tomonori8cbfd4f42008-07-09 16:29:41 +090012#ifdef CONFIG_GART_IOMMU
FUJITA Tomonorie93be882008-07-10 08:27:49 +090013extern int gart_iommu_aperture;
14extern int gart_iommu_aperture_allowed;
15extern int gart_iommu_aperture_disabled;
16
17extern void early_gart_iommu_check(void);
Yinghai Luf2cf8e02007-07-21 17:11:31 +020018extern void gart_iommu_init(void);
19extern void gart_iommu_shutdown(void);
20extern void __init gart_parse_options(char *);
FUJITA Tomonorie93be882008-07-10 08:27:49 +090021extern void gart_iommu_hole_init(void);
22
Yinghai Luf2cf8e02007-07-21 17:11:31 +020023#else
FUJITA Tomonorie93be882008-07-10 08:27:49 +090024#define gart_iommu_aperture 0
25#define gart_iommu_aperture_allowed 0
26#define gart_iommu_aperture_disabled 1
27
28static inline void early_gart_iommu_check(void)
29{
30}
FUJITA Tomonoriac7ded22008-07-11 10:23:43 +090031static inline void gart_iommu_init(void)
32{
33}
Yinghai Luf2cf8e02007-07-21 17:11:31 +020034static inline void gart_iommu_shutdown(void)
35{
36}
FUJITA Tomonoriac7ded22008-07-11 10:23:43 +090037static inline void gart_parse_options(char *options)
38{
39}
40static inline void gart_iommu_hole_init(void)
41{
42}
Yinghai Luf2cf8e02007-07-21 17:11:31 +020043#endif
44
45#endif