Displaying 1 result from an estimated 1 matches for "virt_to_gart".
2006 Jan 16
13
Support for AGP aperture as IOMMU in AMD64 mode [2/2]
...-0800
@@ -30,6 +30,7 @@
#include <asm/proto.h>
#include <asm/cacheflush.h>
#include <asm/kdebug.h>
+#include <asm-xen/xen-public/memory.h>
dma_addr_t bad_dma_address;
@@ -39,6 +40,11 @@
u32 *iommu_gatt_base; /* Remapping table */
+/* gart remapping */
+#define virt_to_gart(x) (phys_to_gart(virt_to_phys(x)))
+#define gart_to_virt(x) (phys_to_virt(gart_to_phys(x)))
+#include <asm-xen/asm-i386/agp.h>
+
int no_iommu;
static int no_agp;
#ifdef CONFIG_IOMMU_DEBUG
@@ -416,7 +422,7 @@
if (!dev)
dev = &fallback_dev;
- phys_mem = virt_to_phys(addr);
+ ph...