Explorar o código

nios2: add memcpy_fromio and memcpy_toio

Add memcpy_fromio() and memcpy_toio().

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Thomas Chou %!s(int64=9) %!d(string=hai) anos
pai
achega
207e97b923
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      arch/nios2/include/asm/io.h

+ 4 - 0
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_ */