From: Christian GMEINER Date: Tue, 4 Dec 2018 19:35:24 +0000 (+0100) Subject: sandbox: add memset_io(..), memcpy_fromio(..) and memcpy_toio(..) X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9814430128cecf316b3e53f766d351bb1680d041;p=u-boot.git sandbox: add memset_io(..), memcpy_fromio(..) and memcpy_toio(..) These functions could be used by drivers. Signed-off-by: Christian GMEINER Reviewed-by: Simon Glass --- diff --git a/arch/sandbox/include/asm/io.h b/arch/sandbox/include/asm/io.h index 81b7750628..2a350a826c 100644 --- a/arch/sandbox/include/asm/io.h +++ b/arch/sandbox/include/asm/io.h @@ -173,6 +173,18 @@ static inline void _outsw(volatile u16 *port, const void *buf, int ns) { } +static inline void memset_io(volatile void *addr, unsigned char val, int count) +{ +} + +static inline void memcpy_fromio(void *dst, const volatile void *src, int count) +{ +} + +static inline void memcpy_toio(volatile void *dst, const void *src, int count) +{ +} + #define insw(port, buf, ns) _insw((u16 *)port, buf, ns) #define outsw(port, buf, ns) _outsw((u16 *)port, buf, ns)