diff options
author | Scott Wood <scottwood@freescale.com> | 2007-08-28 16:16:49 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-09-14 09:53:43 -0400 |
commit | 5a24e1a1773f284d19859d27f2ba7e50a533aaaf (patch) | |
tree | 9ec6bdbf142c703cc0e6b61c4a85dc916fd540fe /include/asm-ppc/io.h | |
parent | 748a768384e05c021ea6be221b80c62a83d7b520 (diff) |
[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 <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-ppc/io.h')
-rw-r--r-- | include/asm-ppc/io.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h index 95d590423cf2..f776c49f5579 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 *); | |||
553 | #define setbits16(_addr, _v) out_be16((_addr), in_be16(_addr) | (_v)) | 553 | #define setbits16(_addr, _v) out_be16((_addr), in_be16(_addr) | (_v)) |
554 | #define clrbits16(_addr, _v) out_be16((_addr), in_be16(_addr) & ~(_v)) | 554 | #define clrbits16(_addr, _v) out_be16((_addr), in_be16(_addr) & ~(_v)) |
555 | 555 | ||
556 | #define setbits8(_addr, _v) out_8((_addr), in_8(_addr) | (_v)) | ||
557 | #define clrbits8(_addr, _v) out_8((_addr), in_8(_addr) & ~(_v)) | ||
558 | |||
556 | #endif /* __KERNEL__ */ | 559 | #endif /* __KERNEL__ */ |