X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sh%2Fio.h;h=6bc343fee7a02b1d980b1c591b973800c36689a2;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=09b2a54b44cd20713b39c85a771f49590bc4b471;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-sh/io.h b/include/asm-sh/io.h index 09b2a54b4..6bc343fee 100644 --- a/include/asm-sh/io.h +++ b/include/asm-sh/io.h @@ -134,6 +134,8 @@ #define readw_relaxed(a) readw(a) #define readl_relaxed(a) readl(a) +#define mmiowb() + /* * If the platform has PC-like I/O, this function converts the offset into * an address. @@ -293,6 +295,17 @@ out: #define dma_cache_wback(_start,_size) \ __flush_wback_region(_start,_size) +/* + * Convert a physical pointer to a virtual kernel pointer for /dev/mem + * access + */ +#define xlate_dev_mem_ptr(p) __va(p) + +/* + * Convert a virtual cached pointer to an uncached pointer + */ +#define xlate_dev_kmem_ptr(p) p + #endif /* __KERNEL__ */ #endif /* __ASM_SH_IO_H */