Commit 207e97b92334bc3992ad7b0a3554a5b1c92ce533

Authored by Thomas Chou
1 parent af54c18d4c

nios2: add memcpy_fromio and memcpy_toio

Add memcpy_fromio() and memcpy_toio().

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

arch/nios2/include/asm/io.h
... ... @@ -173,5 +173,9 @@
173 173 #define setbits_8(addr, set) setbits(8, addr, set)
174 174 #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
175 175  
  176 +#define memset_io(a, b, c) memset((void *)(a), (b), (c))
  177 +#define memcpy_fromio(a, b, c) memcpy((a), (void *)(b), (c))
  178 +#define memcpy_toio(a, b, c) memcpy((void *)(a), (b), (c))
  179 +
176 180 #endif /* __ASM_NIOS2_IO_H_ */