summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian GMEINER <christian.GMEINER@bachmann.info>2018-12-04 20:35:24 +0100
committerSimon Glass <sjg@chromium.org>2019-01-14 17:47:13 -0700
commit9814430128cecf316b3e53f766d351bb1680d041 (patch)
tree28122b7808351e152126348bbbf8fae47480565a
parentd3689267f92c5956e09cc7d1baa4700141662bff (diff)
sandbox: add memset_io(..), memcpy_fromio(..) and memcpy_toio(..)
These functions could be used by drivers. Signed-off-by: Christian GMEINER <christian.GMEINER@bachmann.info> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/sandbox/include/asm/io.h12
1 files changed, 12 insertions, 0 deletions
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)