summaryrefslogtreecommitdiff
path: root/include/asm-nios2
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-nios2')
-rw-r--r--include/asm-nios2/io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-nios2/io.h b/include/asm-nios2/io.h
index 2f1ec26..01d11ef 100644
--- a/include/asm-nios2/io.h
+++ b/include/asm-nios2/io.h
@@ -53,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);