aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/l1_if.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-11-13 19:31:50 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-11-20 10:37:58 +0100
commit9d17840f83fa0c460098fc5b142d2f8b767fa501 (patch)
treef9a0bd5150450da78f8ae4055e73afd24150cb53 /src/osmo-bts-trx/l1_if.h
parentfc2ff394e0a1b2325bdadaa0699bf8e8d0c716bb (diff)
bts-trx: setup timer once at creation time
The setup is only needed once, so no need to set it every time we want to schedule it. Furthermore, it will ease new code introduced in follow-up patches, which will schedule this timer under some circumstances without need to send a message at the same time (because re-try of a cmd after a delay is wanted). This commit adds an alloc function and an init function to keep different parts of the code decoupled and avoid exposing more implementation details between them (like exposing the trx_if timer). Change-Id: I3b6461d0130d25284e673c5efce0b3832c48bbb5
Diffstat (limited to 'src/osmo-bts-trx/l1_if.h')
-rw-r--r--src/osmo-bts-trx/l1_if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/l1_if.h b/src/osmo-bts-trx/l1_if.h
index 77c5936c..165f9d81 100644
--- a/src/osmo-bts-trx/l1_if.h
+++ b/src/osmo-bts-trx/l1_if.h
@@ -64,6 +64,7 @@ struct trx_l1h {
struct l1sched_trx l1s;
};
+struct trx_l1h *trx_l1h_alloc(void *tall_ctx, struct phy_instance *pinst);
int check_transceiver_availability(struct gsm_bts *bts, int avail);
int l1if_provision_transceiver_trx(struct trx_l1h *l1h);
int l1if_provision_transceiver(struct gsm_bts *bts);