OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [mm0/] [tests/] [idpool_test/] [idpool.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef __MM0_IDPOOL_H__
2
#define __MM0_IDPOOL_H__
3
 
4
#include "bit.h"
5
 
6
struct id_pool {
7
        int nwords;
8
        u32 bitmap[];
9
};
10
 
11
struct id_pool *id_pool_new_init(int mapsize);
12
int id_new(struct id_pool *pool);
13
int id_del(struct id_pool *pool, int id);
14
 
15
int ids_new_contiguous(struct id_pool *pool, int numids);
16
int ids_del_contiguous(struct id_pool *pool, int first, int numids);
17
#endif /* __MM0_IDPOOL_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.