]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-i386/agp.h
md: handle_stripe5 - add request/completion logic for async compute ops
[linux-2.6-omap-h63xx.git] / include / asm-i386 / agp.h
index 9075083bab76bd2ed3cd26daaaaa63887dbf5255..6af173dbf123e8a86fd89d4f6ec96cfb46b1a110 100644 (file)
  * data corruption on some CPUs.
  */
 
-int map_page_into_agp(struct page *page);
-int unmap_page_from_agp(struct page *page);
+/* Caller's responsibility to call global_flush_tlb() for
+ * performance reasons */
+#define map_page_into_agp(page) change_page_attr(page, 1, PAGE_KERNEL_NOCACHE)
+#define unmap_page_from_agp(page) change_page_attr(page, 1, PAGE_KERNEL)
 #define flush_agp_mappings() global_flush_tlb()
 
 /* Could use CLFLUSH here if the cpu supports it. But then it would