diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-14 13:22:37 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-14 13:22:37 +0100 |
commit | 6967963d6d5cac40a091d075326f0e3ccb95c58a (patch) | |
tree | a9c29ac6450a7d1dc815f9d97f726ecd59271812 /include/asm-m68k/sbus.h | |
parent | 9b1a88c7105f593cc61a7acd3c51fcf4bf7b8038 (diff) | |
parent | 34e51ce60a210094bd66cf0a75dd8512247618ca (diff) | |
download | kernel-crypto-6967963d6d5cac40a091d075326f0e3ccb95c58a.tar.gz kernel-crypto-6967963d6d5cac40a091d075326f0e3ccb95c58a.tar.xz kernel-crypto-6967963d6d5cac40a091d075326f0e3ccb95c58a.zip |
Merge branch 'for-2.6.30' into for-2.6.31
Diffstat (limited to 'include/asm-m68k/sbus.h')
-rw-r--r-- | include/asm-m68k/sbus.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/include/asm-m68k/sbus.h b/include/asm-m68k/sbus.h deleted file mode 100644 index bfe3ba147f2..00000000000 --- a/include/asm-m68k/sbus.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * some sbus structures and macros to make usage of sbus drivers possible - */ - -#ifndef __M68K_SBUS_H -#define __M68K_SBUS_H - -struct sbus_dev { - struct { - unsigned int which_io; - unsigned int phys_addr; - } reg_addrs[1]; -}; - -/* sbus IO functions stolen from include/asm-sparc/io.h for the serial driver */ -/* No SBUS on the Sun3, kludge -- sam */ - -static inline void _sbus_writeb(unsigned char val, unsigned long addr) -{ - *(volatile unsigned char *)addr = val; -} - -static inline unsigned char _sbus_readb(unsigned long addr) -{ - return *(volatile unsigned char *)addr; -} - -static inline void _sbus_writel(unsigned long val, unsigned long addr) -{ - *(volatile unsigned long *)addr = val; - -} - -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_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) - -#endif |