v850: Add definitions for memcpy_fromio and memcpy_toio
PATCH 1/1 v850: Add definitions for memcpy_fromio and memcpy_toio
Signed-off-by Miles Bader <[email protected]>
include/asm-v850/io.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
include/asm-v850/io.h +5 -2
@@ -1,8 +1,8 @@/* * include/asm-v850/io.h -- Misc I/O operations * -* Copyright (C) 2001,02,03 NEC Electronics Corporation -* Copyright (C) 2001,02,03 Miles Bader <[email protected]> +* Copyright (C) 2001,02,03,04 NEC Electronics Corporation +* Copyright (C) 2001,02,03,04 Miles Bader <[email protected]> * * This file is subject to the terms and conditions of the GNU General * Public License. See the file COPYING in the main directory of this
@@ -114,4 +114,7 @@#define phys_to_virt (addr) ((void *)__phys_to_virt (addr))#define virt_to_phys (addr) ((unsigned long)__virt_to_phys (addr)) +#define memcpy_fromio (dst, src, len) memcpy (dst, (void *)src, len) +#define memcpy_toio (dst, src, len) memcpy ((void *)dst, src, len) +#endif /* __V850_IO_H__ */