]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: add memset_io(..), memcpy_fromio(..) and memcpy_toio(..)
authorChristian GMEINER <christian.GMEINER@bachmann.info>
Tue, 4 Dec 2018 19:35:24 +0000 (20:35 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Jan 2019 00:47:13 +0000 (17:47 -0700)
These functions could be used by drivers.

Signed-off-by: Christian GMEINER <christian.GMEINER@bachmann.info>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/io.h

index 81b77506286d26a208aaa9cd1b71849a4bf9be84..2a350a826c4bc240a61479273f0cb1fc43c4e90a 100644 (file)
@@ -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)