#define _AGP_BACKEND_PRIV_H 1
#include <asm/agp.h> /* for flush_agp_cache() */
-#ifndef map_page_into_agp_noflush
-#define map_page_into_agp_noflush(page) map_page_into_agp(page)
-#define map_page_into_agp_global_flush()
-#endif
#define PFX "agpgart: "
new->memory[i] = virt_to_gart(addr);
new->page_count++;
}
- map_page_into_agp_global_flush();
new->bridge = bridge;
return new;
if (page == NULL)
return NULL;
- /* agp_allocate_memory will do flush */
- map_page_into_agp_noflush(page);
+ map_page_into_agp(page);
get_page(page);
atomic_inc(&agp_bridge->current_memory_agp);
#define map_page_into_agp(page) set_pages_uc(page, 1)
#define unmap_page_from_agp(page) set_pages_wb(page, 1)
-#define map_page_into_agp_noflush(page) set_pages_uc_noflush(page, 1)
-#define map_page_into_agp_global_flush() set_memory_flush_all()
-
/*
* 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