diff options
author | Scott Wood <scottwood@freescale.com> | 2007-08-20 12:36:58 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-22 01:21:47 -0400 |
commit | 12cdac34c6e90d887de23ab9747185731cba254a (patch) | |
tree | 6dabbfab6b23dca60e95e51fe1d15295a9b634b3 /include/asm-powerpc | |
parent | 4b218e9bb2fbbc57b5a05de41d77c056a134528c (diff) |
[POWERPC] Add clrbits8 and setbits8
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/io.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/io.h b/include/asm-powerpc/io.h index bb8d965f96c6..4c0b55087dc7 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) | |||
734 | #define setbits16(_addr, _v) out_be16((_addr), in_be16(_addr) | (_v)) | 734 | #define setbits16(_addr, _v) out_be16((_addr), in_be16(_addr) | (_v)) |
735 | #define clrbits16(_addr, _v) out_be16((_addr), in_be16(_addr) & ~(_v)) | 735 | #define clrbits16(_addr, _v) out_be16((_addr), in_be16(_addr) & ~(_v)) |
736 | 736 | ||
737 | #define setbits8(_addr, _v) out_8((_addr), in_8(_addr) | (_v)) | ||
738 | #define clrbits8(_addr, _v) out_8((_addr), in_8(_addr) & ~(_v)) | ||
739 | |||
737 | #endif /* __KERNEL__ */ | 740 | #endif /* __KERNEL__ */ |
738 | 741 | ||
739 | #endif /* _ASM_POWERPC_IO_H */ | 742 | #endif /* _ASM_POWERPC_IO_H */ |