]> err.no Git - linux-2.6/commitdiff
[POWERPC] Add clrbits8 and setbits8
authorScott Wood <scottwood@freescale.com>
Mon, 20 Aug 2007 16:36:58 +0000 (02:36 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 22 Aug 2007 05:21:47 +0000 (15:21 +1000)
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/io.h

index bb8d965f96c6bc42969c51009fe38ba7f12b371d..4c0b55087dc7b2087d8a1c452a45ea0891f5cc32 100644 (file)
@@ -734,6 +734,9 @@ static inline void * bus_to_virt(unsigned long address)
 #define setbits16(_addr, _v) out_be16((_addr), in_be16(_addr) |  (_v))
 #define clrbits16(_addr, _v) out_be16((_addr), in_be16(_addr) & ~(_v))
 
+#define setbits8(_addr, _v) out_8((_addr), in_8(_addr) |  (_v))
+#define clrbits8(_addr, _v) out_8((_addr), in_8(_addr) & ~(_v))
+
 #endif /* __KERNEL__ */
 
 #endif /* _ASM_POWERPC_IO_H */