]> git.sur5r.net Git - u-boot/blobdiff - include/asm-nios2/io.h
Blackfin: drop unused funcs from io.h
[u-boot] / include / asm-nios2 / io.h
index a52b95cf235c37f3fcd1cc16ca7e027648b2db9e..01d11efeceab03a4d0e36a1590922002da5ae70f 100644 (file)
@@ -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);