summaryrefslogtreecommitdiff
path: root/include/asm-nios2/bitops.h
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2010-03-20 07:05:46 +0800
committerScott McNutt <smcnutt@psyent.com>2010-04-02 12:28:40 -0400
commit3bef253f0802c6292b8e2acc0089894019e99e62 (patch)
tree4117b2da164130ffc4ee38b35f472e853142427c /include/asm-nios2/bitops.h
parentd8b73dffa9866d6de3c05c8a2d07ecd4bc0d5d7e (diff)
downloadu-boot-imx-3bef253f0802c6292b8e2acc0089894019e99e62.zip
u-boot-imx-3bef253f0802c6292b8e2acc0089894019e99e62.tar.gz
u-boot-imx-3bef253f0802c6292b8e2acc0089894019e99e62.tar.bz2
nios2: use bitops from linux-2.6 asm-generic
These are needed to use ubi/ubifs. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Diffstat (limited to 'include/asm-nios2/bitops.h')
-rw-r--r--include/asm-nios2/bitops.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/asm-nios2/bitops.h b/include/asm-nios2/bitops.h
index 5776bda..cf48ff7 100644
--- a/include/asm-nios2/bitops.h
+++ b/include/asm-nios2/bitops.h
@@ -24,15 +24,9 @@
#ifndef __ASM_NIOS2_BITOPS_H_
#define __ASM_NIOS2_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);
-#define PLATFORM_FFS
+/* copied from linux-2.6/include/asm-generic/bitops */
+#include <asm/bitops/atomic.h>
+#include <asm/bitops/non-atomic.h>
+#include <asm/bitops/ffs.h>
#endif /* __ASM_NIOS2_BITOPS_H */