X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fasm-microblaze%2Fio.h;h=90d18428ad1e960ab67b3e48849e7c0207b8a4ce;hb=b38d7fc2f1d27957a810950f07c27f2be353f50f;hp=1c77ade4f1a173bb1d0cd1325d9084f838aabf21;hpb=3a197b2fe49d6fa03978e60af2394efe9c70b527;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/asm-microblaze/io.h b/include/asm-microblaze/io.h index 1c77ade..90d1842 100644 --- a/include/asm-microblaze/io.h +++ b/include/asm-microblaze/io.h @@ -129,4 +129,30 @@ static inline void sync(void) { } +/* + * Given a physical address and a length, return a virtual address + * that can be used to access the memory range with the caching + * properties specified by "flags". + */ +typedef unsigned long phys_addr_t; + +#define MAP_NOCACHE (0) +#define MAP_WRCOMBINE (0) +#define MAP_WRBACK (0) +#define MAP_WRTHROUGH (0) + +static inline void * +map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags) +{ + return (void *)paddr; +} + +/* + * Take down a mapping set up by map_physmem(). + */ +static inline void unmap_physmem(void *vaddr, unsigned long flags) +{ + +} + #endif /* __MICROBLAZE_IO_H__ */