~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/asm-generic/bitops/ext2-non-atomic.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_
2
 
#define _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_
3
 
 
4
 
#include <asm-generic/bitops/le.h>
5
 
 
6
 
#define ext2_set_bit(nr,addr)   \
7
 
        generic___test_and_set_le_bit((nr),(unsigned long *)(addr))
8
 
#define ext2_clear_bit(nr,addr) \
9
 
        generic___test_and_clear_le_bit((nr),(unsigned long *)(addr))
10
 
 
11
 
#define ext2_test_bit(nr,addr)  \
12
 
        generic_test_le_bit((nr),(unsigned long *)(addr))
13
 
#define ext2_find_first_zero_bit(addr, size) \
14
 
        generic_find_first_zero_le_bit((unsigned long *)(addr), (size))
15
 
#define ext2_find_next_zero_bit(addr, size, off) \
16
 
        generic_find_next_zero_le_bit((unsigned long *)(addr), (size), (off))
17
 
#define ext2_find_next_bit(addr, size, off) \
18
 
        generic_find_next_le_bit((unsigned long *)(addr), (size), (off))
19
 
 
20
 
#endif /* _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_ */