blob: 0c6d63e643561cdbb38bcee3c2ca15be4558c25e [file] [log] [blame]
Harald Welte8470bf22008-12-25 23:28:35 +00001#ifndef _CHAN_ALLOC_H
2#define _CHAN_ALLOC_H
3
4/* Special allocator for C0 of BTS */
5struct gsm_bts_trx_ts *ts_c0_alloc(struct gsm_bts *bts,
6 enum gsm_phys_chan_config pchan);
7
8/* Regular physical channel allocator */
9struct gsm_bts_trx_ts *ts_alloc(struct gsm_bts *bts,
10 enum gsm_phys_chan_config pchan);
11
12/* Regular physical channel (TS) */
13void ts_free(struct gsm_bts_trx_ts *ts);
14
15
16/* Allocate a logical channel (SDCCH, TCH, ...) */
17struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type);
18
19/* Free a logical channel (SDCCH, TCH, ...) */
20void lchan_free(struct gsm_lchan *lchan);
21
Holger Freyther67b4b9a2009-01-01 03:46:11 +000022/* Consider releasing the channel */
23int lchan_auto_release(struct gsm_lchan *lchan);
24
Harald Welte8470bf22008-12-25 23:28:35 +000025#endif /* _CHAN_ALLOC_H */