summaryrefslogtreecommitdiff
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-07 20:41:30 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-07 20:41:30 (GMT)
commiteba4f669d6ec9be4173bb2619e9b8500b3c36542 (patch)
tree60178d4f2dd4fa1f8985b38fdbe4cd6b99a58c7a /include/asm-ppc
parent93cffffa19960464a52f9c78d9a6150270d23785 (diff)
parent66bb8bf8b235ba4d37fda14375827864977c6a3e (diff)
downloadlinux-eba4f669d6ec9be4173bb2619e9b8500b3c36542.tar.xz
Merge of master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/agp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-ppc/agp.h b/include/asm-ppc/agp.h
index be27cfa8..ca9e423 100644
--- a/include/asm-ppc/agp.h
+++ b/include/asm-ppc/agp.h
@@ -10,4 +10,14 @@
#define flush_agp_mappings()
#define flush_agp_cache() mb()
+/* Convert a physical address to an address suitable for the GART. */
+#define phys_to_gart(x) (x)
+#define gart_to_phys(x) (x)
+
+/* GATT allocation. Returns/accepts GATT kernel virtual address. */
+#define alloc_gatt_pages(order) \
+ ((char *)__get_free_pages(GFP_KERNEL, (order)))
+#define free_gatt_pages(table, order) \
+ free_pages((unsigned long)(table), (order))
+
#endif