刚搜到的,不知道有没有帮助。
http://forum.sparkfun.com/viewtopic.php?p=71635&sid=d13835c0d0783397e8bc5abaf9e69a0a
Withinthefile/include/asm/dma-mapping.h:
Onrule20:
//externvoiddma_cache_maint(constvoid*kaddr,size_tsize,intrw);
externvoidconsistent_sync(constvoid*start,size_tsize,intdirection);
Furtheronwithinthesamefile,everywheredma_cache_maintiscalled,Icallthemethodconsistent_sync.
Forexample:
consistent_sync(cpu_addr,size,dir);
//dma_cache_maint(cpu_addr,size,dir);
|