projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b218e9
)
[POWERPC] Add clrbits8 and setbits8
author
Scott Wood
<scottwood@freescale.com>
Mon, 20 Aug 2007 16:36:58 +0000
(
02:36
+1000)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 22 Aug 2007 05:21:47 +0000
(15:21 +1000)
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/io.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-powerpc/io.h
b/include/asm-powerpc/io.h
index bb8d965f96c6bc42969c51009fe38ba7f12b371d..4c0b55087dc7b2087d8a1c452a45ea0891f5cc32 100644
(file)
--- 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 */