]> err.no Git - linux-2.6/commitdiff
[PPC] Add clrbits8 and setbits8.
authorScott Wood <scottwood@freescale.com>
Tue, 28 Aug 2007 20:16:49 +0000 (15:16 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 14 Sep 2007 13:53:43 +0000 (08:53 -0500)
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 <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
include/asm-ppc/io.h

index 95d590423cf2d1fde47616bb4c09ee64022459ad..f776c49f5579442f229ac2795766f68ab18ab5fe 100644 (file)
@@ -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__ */