1 #ifndef _ASM_X86_GART_H
2 #define _ASM_X86_GART_H
14 #define GPTE_COHERENT 2
18 #define DISGARTCPU (1<<4)
19 #define DISGARTIO (1<<5)
20 #define DISTLBWALKPRB (1<<6)
23 #define INVGART (1<<0)
24 #define GARTPTEERR (1<<1)
27 #define AMD64_GARTAPERTURECTL 0x90
28 #define AMD64_GARTAPERTUREBASE 0x94
29 #define AMD64_GARTTABLEBASE 0x98
30 #define AMD64_GARTCACHECTL 0x9c
32 #ifdef CONFIG_GART_IOMMU
43 #define gart_iommu_aperture 0
44 #define gart_iommu_aperture_allowed 0
45 #define gart_iommu_aperture_disabled 1
91 static inline int aperture_valid(
u64 aper_base,
u32 aper_size,
u32 min_size)
96 if (aper_base + aper_size > 0x100000000ULL) {
104 if (aper_size < min_size) {
106 aper_size>>20, min_size>>20);