1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#ifndef _GANC_DATA_H
#define _GANC_DATA_H
#include <osmocom/core/linuxlist.h>
#include "conn.h"
struct ganc_bts;
struct gan_peer {
struct llist_head list;
struct osmo_conn *conn;
struct ganc_bts *bts;
uint8_t gan_release;
};
enum ganc_net_timer {
T3212,
TU3901,
TU3902,
TU3903,
TU3904,
TU3905,
TU3906,
TU3907,
TU3908,
//TU3909,
TU3910,
TU3920,
TU4001,
TU4002,
TU4003,
_NUM_GANC_TIMER
};
struct ganc_net {
uint8_t country_code;
uint8_t network_code;
uint16_t timer[_NUM_GANC_TIMER];
int emergency_gan_preferred;
struct {
int mode;
} gprs;
};
struct ganc_bts {
struct ganc_net *net;
uint16_t location_area_code;
uint16_t routing_area_code;
uint16_t cell_identity;
uint8_t bsic;
uint16_t arfcn;
};
void ganc_net_init(struct ganc_net *net);
void ganc_bts_init(struct ganc_bts *bts, struct ganc_net *net);
extern struct ganc_bts *g_ganc_bts;
#endif
|