blob: 0cbd03e726d0785226d123aa010883bb68fe0ed6 [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
22#endif /* _CHAN_ALLOC_H */