1 #ifndef _ASM_X8664_IOMMU_H
2 #define _ASM_X8664_IOMMU_H 1
4 extern void pci_iommu_shutdown(void);
5 extern void no_iommu_init(void);
6 extern int force_iommu, no_iommu;
7 extern int iommu_detected;
8 extern int agp_amd64_init(void);
9 #ifdef CONFIG_GART_IOMMU
10 extern void gart_iommu_init(void);
11 extern void gart_iommu_shutdown(void);
12 extern void __init gart_parse_options(char *);
13 extern void early_gart_iommu_check(void);
14 extern void gart_iommu_hole_init(void);
15 extern int fallback_aper_order;
16 extern int fallback_aper_force;
17 extern int gart_iommu_aperture;
18 extern int gart_iommu_aperture_allowed;
19 extern int gart_iommu_aperture_disabled;
20 extern int fix_aperture;
22 #define gart_iommu_aperture 0
23 #define gart_iommu_aperture_allowed 0
25 static inline void early_gart_iommu_check(void)
29 static inline void gart_iommu_shutdown(void)
37 #define GPTE_COHERENT 2
39 /* Aperture control register bits. */
41 #define DISGARTCPU (1<<4)
42 #define DISGARTIO (1<<5)
44 /* GART cache control register bits. */
45 #define INVGART (1<<0)
46 #define GARTPTEERR (1<<1)
48 /* K8 On-cpu GART registers */
49 #define AMD64_GARTAPERTURECTL 0x90
50 #define AMD64_GARTAPERTUREBASE 0x94
51 #define AMD64_GARTTABLEBASE 0x98
52 #define AMD64_GARTCACHECTL 0x9c
53 #define AMD64_GARTEN (1<<0)