From 9814430128cecf316b3e53f766d351bb1680d041 Mon Sep 17 00:00:00 2001 From: Christian GMEINER Date: Tue, 4 Dec 2018 20:35:24 +0100 Subject: [PATCH] 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 --- arch/sandbox/include/asm/io.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) -- 2.39.5