Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * bitext.h: Bit string operations on the sparc, specific to architecture.
0004  *
0005  * Copyright 2002 Pete Zaitcev <zaitcev@yahoo.com>
0006  */
0007 
0008 #ifndef _SPARC_BITEXT_H
0009 #define _SPARC_BITEXT_H
0010 
0011 #include <linux/spinlock.h>
0012 
0013 struct bit_map {
0014     spinlock_t lock;
0015     unsigned long *map;
0016     int size;
0017     int used;
0018     int last_off;
0019     int last_size;
0020     int first_free;
0021     int num_colors;
0022 };
0023 
0024 int bit_map_string_get(struct bit_map *t, int len, int align);
0025 void bit_map_clear(struct bit_map *t, int offset, int len);
0026 void bit_map_init(struct bit_map *t, unsigned long *map, int size);
0027 
0028 #endif /* defined(_SPARC_BITEXT_H) */