projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[POWERPC] Clean up vio.h
[powerpc.git]
/
include
/
asm-i386
/
agp.h
diff --git
a/include/asm-i386/agp.h
b/include/asm-i386/agp.h
index
9075083
..
6af173d
100644
(file)
--- a/
include/asm-i386/agp.h
+++ b/
include/asm-i386/agp.h
@@
-12,8
+12,10
@@
* data corruption on some CPUs.
*/
* 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
#define flush_agp_mappings() global_flush_tlb()
/* Could use CLFLUSH here if the cpu supports it. But then it would