aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-19 21:10:38 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:10 +0100
commit34bd8bdf30769b5aab50b87045ff2b621429c7be (patch)
tree2f3fcf6daeacb0666a09bacff10cb30275f31720 /src/bts.h
parent9f0c1d216a0596f733c55d787ef0eb0693362d49 (diff)
bts/tbf: Move the lists into the BTS and do the look-up from the BTS
The list belongs to the BTS. This makes cleaning this up more easy and establishes a hierachy of resources that start from the BTS. The debug_diagram code is now broken.
Diffstat (limited to 'src/bts.h')
-rw-r--r--src/bts.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bts.h b/src/bts.h
index deaadcd7..05f22000 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -30,11 +30,11 @@ extern "C" {
#include "poll_controller.h"
#include "sba.h"
#include "ta.h"
+#include "tbf.h"
#endif
#include <stdint.h>
-struct gprs_rlcmac_tbf;
struct BTS;
/*
@@ -104,6 +104,13 @@ struct gprs_rlcmac_bts {
uint8_t force_two_phase;
uint8_t alpha, gamma;
+ /* TBF handling, make private or move into TBFController */
+ /* list of uplink TBFs */
+ struct llist_head ul_tbfs;
+ /* list of downlink TBFs */
+ struct llist_head dl_tbfs;
+
+
/**
* Point back to the C++ object. This is used during the transition
* period.
@@ -134,6 +141,9 @@ public:
/** add paging to paging queue(s) */
int add_paging(uint8_t chan_needed, uint8_t *identity_lv);
+ gprs_rlcmac_tbf *tbf_by_tlli(uint32_t tlli, enum gprs_rlcmac_tbf_direction dir);
+ gprs_rlcmac_tbf *tbf_by_poll_fn(uint32_t fn, uint8_t trx, uint8_t ts);
+
private:
int m_cur_fn;
struct gprs_rlcmac_bts m_bts;