diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-01-18 17:47:32 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-01-18 17:47:32 +0000 |
commit | 85770c7aa4efe5bb3645baf77a53b187e3dc173d (patch) | |
tree | 3809ffacbc62c478a720caf8fe95ba08ec51da8d /include/openbsc/gsm_data.h | |
parent | 6f676a35419510ed815015575500b19d7ffcb743 (diff) |
* use #define for number of TS in one TRX
* use data structure to indicate E1 timeslot/subslot for every TRX:TS
Diffstat (limited to 'include/openbsc/gsm_data.h')
-rw-r--r-- | include/openbsc/gsm_data.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/openbsc/gsm_data.h b/include/openbsc/gsm_data.h index 5ab4c61d1..494b0d1e2 100644 --- a/include/openbsc/gsm_data.h +++ b/include/openbsc/gsm_data.h @@ -9,6 +9,7 @@ #define GSM_MAX_BTS 8 #define BTS_MAX_TRX 8 +#define TRX_NR_TS 8 #define TS_MAX_LCHAN 8 #define HARDCODED_ARFCN 123 @@ -123,6 +124,15 @@ struct gsm_lchan { unsigned int use_count; }; +struct gsm_e1_subslot { + /* Number of E1 link */ + u_int8_t e1_nr; + /* Number of E1 TS inside E1 link */ + u_int8_t e1_ts; + /* Sub-slot within the E1 TS, 0xff if full TS */ + u_int8_t e1_ts_ss; +}; + #define BTS_TRX_F_ACTIVATED 0x0001 /* One Timeslot in a TRX */ struct gsm_bts_trx_ts { @@ -134,6 +144,9 @@ struct gsm_bts_trx_ts { unsigned int flags; + /* To which E1 subslot are we connected */ + struct gsm_e1_subslot e1_link; + struct gsm_lchan lchan[TS_MAX_LCHAN]; }; @@ -144,7 +157,7 @@ struct gsm_bts_trx { u_int8_t nr; u_int16_t arfcn; - struct gsm_bts_trx_ts ts[8]; + struct gsm_bts_trx_ts ts[TRX_NR_TS]; }; /* One BTS */ |