MN10300: Add reads[bwl]() and writes[bwl]()
authorAkira Takeuchi <takeuchi.akr@jp.panasonic.com>
Wed, 27 Oct 2010 16:28:37 +0000 (17:28 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 27 Oct 2010 16:28:37 +0000 (17:28 +0100)
Add reads[bwl]() and writes[bwl]() for MN10300.

Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
Signed-off-by: Kiyoshi Owada <owada.kiyoshi@jp.panasonic.com>
Signed-off-by: David Howells <dhowells@redhat.com>
arch/mn10300/include/asm/io.h

index c1a4119..787255d 100644 (file)
@@ -206,6 +206,19 @@ static inline void outsl(unsigned long addr, const void *buffer, int count)
 #define iowrite32_rep(p, src, count) \
        outsl((unsigned long) (p), (src), (count))
 
+#define readsb(p, dst, count) \
+       insb((unsigned long) (p), (dst), (count))
+#define readsw(p, dst, count) \
+       insw((unsigned long) (p), (dst), (count))
+#define readsl(p, dst, count) \
+       insl((unsigned long) (p), (dst), (count))
+
+#define writesb(p, src, count) \
+       outsb((unsigned long) (p), (src), (count))
+#define writesw(p, src, count) \
+       outsw((unsigned long) (p), (src), (count))
+#define writesl(p, src, count) \
+       outsl((unsigned long) (p), (src), (count))
 
 #define IO_SPACE_LIMIT 0xffffffff