Commit 79db2b5f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] m68k: Sun-3 missing sbus_readl()

From: Geert Uytterhoeven <geert@linux-m68k.org>

Sun-3 sbus: Add missing definition of sbus_readl() (from Sam Creasey)
parent 92ddcd90
...@@ -36,8 +36,15 @@ static inline void _sbus_writel(unsigned long val, unsigned long addr) ...@@ -36,8 +36,15 @@ static inline void _sbus_writel(unsigned long val, unsigned long addr)
} }
extern inline unsigned long _sbus_readl(unsigned long addr)
{
return *(volatile unsigned long *)addr;
}
#define sbus_readb(a) _sbus_readb((unsigned long)a) #define sbus_readb(a) _sbus_readb((unsigned long)a)
#define sbus_writeb(v, a) _sbus_writeb(v, (unsigned long)a) #define sbus_writeb(v, a) _sbus_writeb(v, (unsigned long)a)
#define sbus_readl(a) _sbus_readl((unsigned long)a)
#define sbus_writel(v, a) _sbus_writel(v, (unsigned long)a) #define sbus_writel(v, a) _sbus_writel(v, (unsigned long)a)
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment