]> 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 b82f5f3ab887b4307fa2e248c2122bdfe8d32bfc..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
    need to be called for each cacheline of the whole page so it may not be 
    worth it. Would need a page for it. */
-#define flush_agp_cache() asm volatile("wbinvd":::"memory")
+#define flush_agp_cache() wbinvd()
 
 /* Convert a physical address to an address suitable for the GART. */
 #define phys_to_gart(x) (x)