X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-um%2Fio.h;h=90674056dcef4592fd65ab25375531884a2f6e4a;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=62d6f2423ea6b1187ff5f852030f2730927919d7;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-um/io.h b/include/asm-um/io.h index 62d6f2423..90674056d 100644 --- a/include/asm-um/io.h +++ b/include/asm-um/io.h @@ -22,4 +22,15 @@ static inline void * phys_to_virt(unsigned long address) return __va(address); } +/* + * 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