From: Scott Wood Date: Mon, 20 Aug 2007 16:36:58 +0000 (+1000) Subject: [POWERPC] Add clrbits8 and setbits8 X-Git-Tag: v2.6.24-rc1~1450^2~320 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12cdac34c6e90d887de23ab9747185731cba254a;p=linux-2.6 [POWERPC] Add clrbits8 and setbits8 Signed-off-by: Scott Wood Signed-off-by: Paul Mackerras --- diff --git a/include/asm-powerpc/io.h b/include/asm-powerpc/io.h index bb8d965f96..4c0b55087d 100644 --- a/include/asm-powerpc/io.h +++ b/include/asm-powerpc/io.h @@ -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 */