/*1* bitext.h: Bit string operations on the sparc, specific to architecture.2*3* Copyright 2002 Pete Zaitcev <[email protected]>4*/56#ifndef _SPARC_BITEXT_H7#define _SPARC_BITEXT_H89#include <linux/spinlock.h>1011struct bit_map {12spinlock_t lock;13unsigned long *map;14int size;15int used;16int last_off;17int last_size;18int first_free;19int num_colors;20};2122extern int bit_map_string_get(struct bit_map *t, int len, int align);23extern void bit_map_clear(struct bit_map *t, int offset, int len);24extern void bit_map_init(struct bit_map *t, unsigned long *map, int size);2526#endif /* defined(_SPARC_BITEXT_H) */272829