Subversion Repositories HelenOS

Rev

Rev 1787 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1787 Rev 1888
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
 /** @addtogroup genericadt
29
/** @addtogroup genericadt
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#ifndef __BITMAP_H__
35
#ifndef KERN_BITMAP_H_
36
#define __BITMAP_H__
36
#define KERN_BITMAP_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <typedefs.h>
39
#include <typedefs.h>
40
 
40
 
41
#define BITS2BYTES(bits)    (bits ? ((((bits)-1)>>3)+1) : 0)
41
#define BITS2BYTES(bits)    (bits ? ((((bits)-1)>>3)+1) : 0)
Line 50... Line 50...
50
extern void bitmap_clear_range(bitmap_t *bitmap, index_t start, count_t bits);
50
extern void bitmap_clear_range(bitmap_t *bitmap, index_t start, count_t bits);
51
extern void bitmap_copy(bitmap_t *dst, bitmap_t *src, count_t bits);
51
extern void bitmap_copy(bitmap_t *dst, bitmap_t *src, count_t bits);
52
 
52
 
53
#endif
53
#endif
54
 
54
 
55
 /** @}
55
/** @}
56
 */
56
 */
57
 
-