Subversion Repositories Kolibri OS

Rev

Rev 6082 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6082 Rev 7143
Line 57... Line 57...
57
 * bitmap_parselist(buf, dst, nbits)		Parse bitmap dst from kernel buf
57
 * bitmap_parselist(buf, dst, nbits)		Parse bitmap dst from kernel buf
58
 * bitmap_parselist_user(buf, dst, nbits)	Parse bitmap dst from user buf
58
 * bitmap_parselist_user(buf, dst, nbits)	Parse bitmap dst from user buf
59
 * bitmap_find_free_region(bitmap, bits, order)	Find and allocate bit region
59
 * bitmap_find_free_region(bitmap, bits, order)	Find and allocate bit region
60
 * bitmap_release_region(bitmap, pos, order)	Free specified bit region
60
 * bitmap_release_region(bitmap, pos, order)	Free specified bit region
61
 * bitmap_allocate_region(bitmap, pos, order)	Allocate specified bit region
61
 * bitmap_allocate_region(bitmap, pos, order)	Allocate specified bit region
-
 
62
 * bitmap_from_u32array(dst, nbits, buf, nwords) *dst = *buf (nwords 32b words)
-
 
63
 * bitmap_to_u32array(buf, nwords, src, nbits)	*buf = *dst (nwords 32b words)
62
 */
64
 */
Line 63... Line 65...
63
 
65
 
64
/*
66
/*
65
 * Also the following operations in asm/bitops.h apply to bitmaps.
67
 * Also the following operations in asm/bitops.h apply to bitmaps.
Line 161... Line 163...
161
extern void bitmap_fold(unsigned long *dst, const unsigned long *orig,
163
extern void bitmap_fold(unsigned long *dst, const unsigned long *orig,
162
		unsigned int sz, unsigned int nbits);
164
		unsigned int sz, unsigned int nbits);
163
extern int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order);
165
extern int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order);
164
extern void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order);
166
extern void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order);
165
extern int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order);
167
extern int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order);
-
 
168
extern unsigned int bitmap_from_u32array(unsigned long *bitmap,
-
 
169
					 unsigned int nbits,
-
 
170
					 const u32 *buf,
-
 
171
					 unsigned int nwords);
-
 
172
extern unsigned int bitmap_to_u32array(u32 *buf,
-
 
173
				       unsigned int nwords,
-
 
174
				       const unsigned long *bitmap,
-
 
175
				       unsigned int nbits);
166
#ifdef __BIG_ENDIAN
176
#ifdef __BIG_ENDIAN
167
extern void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits);
177
extern void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits);
168
#else
178
#else
169
#define bitmap_copy_le bitmap_copy
179
#define bitmap_copy_le bitmap_copy
170
#endif
180
#endif