]> err.no Git - linux-2.6/blobdiff - include/asm-sparc64/agp.h
[PATCH] cpuset semaphore depth check optimize
[linux-2.6] / include / asm-sparc64 / agp.h
index ba05bdf9a211db17909d773b559738167ea826b5..58f8cb6ae767d536769a8a43ab46564a5665b96b 100644 (file)
@@ -8,4 +8,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