projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af54c18
)
nios2: add memcpy_fromio and memcpy_toio
author
Thomas Chou
<thomas@wytron.com.tw>
Thu, 5 Nov 2015 07:09:57 +0000
(15:09 +0800)
committer
Thomas Chou
<thomas@wytron.com.tw>
Thu, 12 Nov 2015 00:26:58 +0000
(08:26 +0800)
Add memcpy_fromio() and memcpy_toio().
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
arch/nios2/include/asm/io.h
patch
|
blob
|
history
diff --git
a/arch/nios2/include/asm/io.h
b/arch/nios2/include/asm/io.h
index 03a3418e847a46e9e7aea71be04c7fc49eceb15e..95d88012dd29cd5da4ec73d913011288e2673096 100644
(file)
--- a/
arch/nios2/include/asm/io.h
+++ b/
arch/nios2/include/asm/io.h
@@
-173,4
+173,8
@@
static inline void outsl (unsigned long port, const void *src, unsigned long cou
#define setbits_8(addr, set) setbits(8, addr, set)
#define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
+#define memset_io(a, b, c) memset((void *)(a), (b), (c))
+#define memcpy_fromio(a, b, c) memcpy((a), (void *)(b), (c))
+#define memcpy_toio(a, b, c) memcpy((void *)(a), (b), (c))
+
#endif /* __ASM_NIOS2_IO_H_ */