From: Scott Wood Date: Tue, 28 Aug 2007 20:16:49 +0000 (-0500) Subject: [PPC] Add clrbits8 and setbits8. X-Git-Tag: v2.6.24-rc1~1450^2~242 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a24e1a1773f284d19859d27f2ba7e50a533aaaf;p=linux-2.6 [PPC] Add clrbits8 and setbits8. These I/O accessors will be used in code under drivers/, which is expected to still work in arch/ppc. Signed-off-by: Scott Wood Signed-off-by: Kumar Gala --- diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h index 95d590423c..f776c49f55 100644 --- a/include/asm-ppc/io.h +++ b/include/asm-ppc/io.h @@ -553,4 +553,7 @@ extern void pci_iounmap(struct pci_dev *dev, void __iomem *); #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__ */