projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d368926
)
sandbox: add memset_io(..), memcpy_fromio(..) and memcpy_toio(..)
author
Christian GMEINER
<christian.GMEINER@bachmann.info>
Tue, 4 Dec 2018 19:35:24 +0000
(20:35 +0100)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/arch/sandbox/include/asm/io.h
b/arch/sandbox/include/asm/io.h
index 81b77506286d26a208aaa9cd1b71849a4bf9be84..2a350a826c4bc240a61479273f0cb1fc43c4e90a 100644
(file)
--- 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)