mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
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:
parent
d3689267f9
commit
9814430128
|
@ -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 insw(port, buf, ns) _insw((u16 *)port, buf, ns)
|
||||||
#define outsw(port, buf, ns) _outsw((u16 *)port, buf, ns)
|
#define outsw(port, buf, ns) _outsw((u16 *)port, buf, ns)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user