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>
This commit is contained in:
Christian GMEINER 2018-12-04 20:35:24 +01:00 committed by Simon Glass
parent d3689267f9
commit 9814430128

View 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)