projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
8xxx: Second UART port added for MPC85xx, MPC83xx, MPC86xx processors
[oweals/u-boot.git]
/
include
/
asm-nios2
/
io.h
diff --git
a/include/asm-nios2/io.h
b/include/asm-nios2/io.h
index 2f1ec26bd16f3770df3156915953913602f59585..01d11efeceab03a4d0e36a1590922002da5ae70f 100644
(file)
--- 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);