aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-09-05 14:48:35 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-09-12 14:17:07 +0200
commit28f160e76c3c53029bc6e8de101b2d7ee26eea16 (patch)
tree53ba9a527bda9de647d77c70803d092db0613aec /src/bts.h
parent45fdc44d683365b806b90e694cb7b960dc967b31 (diff)
Introduce osmo_tdef infra and timer VTY commands
This will allow for configuration of some of the timers by the user, and allow him to inspect current values being used. It will be also useful for TTCN3 tests which may want to test some of the timers without having to wait for lots of time. Timers are splitted into 2 groups: BTS controlled ones and PCU controlled ones. The BTS controlled ones are read-only by the user (hence no "timer" VTY command is provided to change them). TbfTest.err output changes due to timers being set up correctly as a consequence of changes. Other application such as pcu_emu.cpp and pcu_main.cpp had to previosuly set the initial values by hand (and did so), but apparently TbfTest.c was missing that part, which is now fixed for free. Depends: libosmocore.git Id56a1226d724a374f04231df85fe5b49ffd2c43c Change-Id: I5cfb9ef01706124be262d4536617b9edb4601dd5
Diffstat (limited to 'src/bts.h')
-rw-r--r--src/bts.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bts.h b/src/bts.h
index 45d52a9..6d92ae1 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -26,6 +26,7 @@ extern "C" {
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/rate_ctr.h>
#include <osmocom/core/stat_item.h>
+#include <osmocom/core/tdef.h>
#include <osmocom/gsm/l1sap.h>
#include <osmocom/gsm/protocol/gsm_04_08.h>
#include <mslot_class.h>
@@ -117,11 +118,9 @@ struct gprs_rlcmac_bts {
uint32_t llc_discard_csec;
uint32_t llc_idle_ack_csec;
uint32_t llc_codel_interval_msec; /* 0=disabled, -1=use default interval */
- uint8_t t3142;
- uint8_t t3169;
- uint8_t t3191;
- uint16_t t3193_msec;
- uint8_t t3195;
+ /* Timer defintions */
+ struct osmo_tdef *T_defs_bts; /* timers controlled by BTS, received through PCUIF */
+ struct osmo_tdef *T_defs_pcu; /* timers controlled by PCU */
uint8_t n3101;
uint8_t n3103;
uint8_t n3105;