summaryrefslogtreecommitdiff
path: root/include/asm-sh/bitops.h
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@rahute.(none)>2007-05-13 20:58:00 +0900
committerNobuhiro Iwamatsu <iwamatsu@rahute.(none)>2007-05-13 20:58:00 +0900
commit0b135cfc2e524dc249b75057b55dd4cc09842e27 (patch)
treea342e571738e4777bbb2b66246412e9d9aaa81c2 /include/asm-sh/bitops.h
parentabca901869c3760b6c5fecb825db6c1d91a78a93 (diff)
sh: First support code of SuperH.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'include/asm-sh/bitops.h')
-rw-r--r--include/asm-sh/bitops.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-sh/bitops.h b/include/asm-sh/bitops.h
new file mode 100644
index 000000000..44dca9ff6
--- /dev/null
+++ b/include/asm-sh/bitops.h
@@ -0,0 +1,13 @@
+#ifndef __ASM_SH_BITOPS_H_
+#define __ASM_SH_BITOPS_H_
+
+extern void set_bit(int nr, volatile void * a);
+extern void clear_bit(int nr, volatile void * a);
+extern int test_and_clear_bit(int nr, volatile void * a);
+extern void change_bit(unsigned long nr, volatile void *addr);
+extern int test_and_set_bit(int nr, volatile void * a);
+extern int test_and_change_bit(int nr, volatile void * addr);
+extern int test_bit(int nr, volatile void * a);
+extern int ffs(int i);
+
+#endif