X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fasm-nios2%2Fio.h;h=01d11efeceab03a4d0e36a1590922002da5ae70f;hb=3b062da326f9b37d34aa8f80bf9d2f9e74f55c86;hp=a52b95cf235c37f3fcd1cc16ca7e027648b2db9e;hpb=2c3536425d987bf079258973e2acebaaef3e16b6;p=u-boot diff --git a/include/asm-nios2/io.h b/include/asm-nios2/io.h index a52b95cf23..01d11efece 100644 --- a/include/asm-nios2/io.h +++ b/include/asm-nios2/io.h @@ -34,8 +34,6 @@ static inline void sync(void) * 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) @@ -55,6 +53,11 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags) } +static inline phys_addr_t virt_to_phys(void * vaddr) +{ + return (phys_addr_t)(vaddr); +} + extern unsigned char inb (unsigned char *port); extern unsigned short inw (unsigned short *port); extern unsigned inl (unsigned port);