summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-08-21 02:36:58 +1000
committerPaul Mackerras <paulus@samba.org>2007-08-22 15:21:47 +1000
commit12cdac34c6e90d887de23ab9747185731cba254a (patch)
tree6dabbfab6b23dca60e95e51fe1d15295a9b634b3
parent4b218e9bb2fbbc57b5a05de41d77c056a134528c (diff)
downloadop-kernel-dev-12cdac34c6e90d887de23ab9747185731cba254a.zip
op-kernel-dev-12cdac34c6e90d887de23ab9747185731cba254a.tar.gz
[POWERPC] Add clrbits8 and setbits8
Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--include/asm-powerpc/io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/io.h b/include/asm-powerpc/io.h
index bb8d965..4c0b550 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 */
OpenPOWER on IntegriCloud