Harald Welte | 8470bf2 | 2008-12-25 23:28:35 +0000 | [diff] [blame] | 1 | #ifndef _CHAN_ALLOC_H |
| 2 | #define _CHAN_ALLOC_H |
| 3 | |
| 4 | /* Special allocator for C0 of BTS */ |
| 5 | struct gsm_bts_trx_ts *ts_c0_alloc(struct gsm_bts *bts, |
| 6 | enum gsm_phys_chan_config pchan); |
| 7 | |
| 8 | /* Regular physical channel allocator */ |
| 9 | struct gsm_bts_trx_ts *ts_alloc(struct gsm_bts *bts, |
| 10 | enum gsm_phys_chan_config pchan); |
| 11 | |
| 12 | /* Regular physical channel (TS) */ |
| 13 | void ts_free(struct gsm_bts_trx_ts *ts); |
| 14 | |
| 15 | |
| 16 | /* Allocate a logical channel (SDCCH, TCH, ...) */ |
| 17 | struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type); |
| 18 | |
| 19 | /* Free a logical channel (SDCCH, TCH, ...) */ |
| 20 | void lchan_free(struct gsm_lchan *lchan); |
| 21 | |
| 22 | #endif /* _CHAN_ALLOC_H */ |