]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Revert "microblaze: Fix in/out_be8/16/32 functions"
authorMichal Simek <michal.simek@xilinx.com>
Wed, 23 Jan 2013 09:07:59 +0000 (10:07 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 29 Jan 2013 12:28:12 +0000 (13:28 +0100)
This reverts commit dcefe33658dfb8628cdba7a3c45df5016f3b0be3.

Just too keep this in sync with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/io.h

index add666e950fe73777be21a4fa76a7ae806cab182..584cbce358c5aedeff87fb780bf5f9c4b99e95ed 100644 (file)
 #define outl(x, addr)  ((void) writel (x, addr))
 
 /* Some #definitions to keep strange Xilinx code happy */
-extern inline int in_8(volatile unsigned char *addr)
-{
-       return readb(addr);
-}
-
-extern inline int in_be16(volatile unsigned short *addr)
-{
-       return readw(addr);
-}
+#define in_8(addr)     readb (addr)
+#define in_be16(addr)  readw (addr)
+#define in_be32(addr)  readl (addr)
 
-extern inline int in_be32(volatile unsigned int *addr)
-{
-       return readl(addr);
-}
+#define out_8(addr,x ) outb (x,addr)
+#define out_be16(addr,x )      outw (x,addr)
+#define out_be32(addr,x )      outl (x,addr)
 
-extern inline void out_8(volatile unsigned char *addr, char val)
-{
-       outb(val, addr);
-}
-
-extern inline void out_be16(volatile unsigned short *addr, short val)
-{
-       outw(val, addr);
-}
-
-extern inline void out_be32(volatile unsigned int *addr, int val)
-{
-       outl(val, addr);
-}
 
 #define inb_p(port)            inb((port))
 #define outb_p(val, port)      outb((val), (port))