blob: e4b6cdc78e96c5ebd948fb64ce4687fd12817c19 [file] [log] [blame]
Harald Weltef383aa12012-07-02 19:51:55 +02001/* sysmocom sysmoBTS specific code */
2
3/* (C) 2010-2012 by Harald Welte <laforge@gnumonks.org>
4 *
5 * All Rights Reserved
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#include <arpa/inet.h>
23
24#include <osmocom/gsm/tlv.h>
25
26#include <openbsc/gsm_data.h>
27#include <openbsc/signal.h>
28#include <openbsc/abis_nm.h>
29#include <osmocom/abis/e1_input.h>
30#include <osmocom/gsm/tlv.h>
31#include <osmocom/core/msgb.h>
32#include <osmocom/core/talloc.h>
33#include <openbsc/gsm_data.h>
34#include <openbsc/abis_nm.h>
35#include <openbsc/abis_rsl.h>
36#include <openbsc/debug.h>
37#include <osmocom/abis/subchan_demux.h>
38#include <osmocom/abis/ipaccess.h>
39#include <osmocom/core/logging.h>
40
Harald Weltef383aa12012-07-02 19:51:55 +020041extern struct gsm_bts_model bts_model_nanobts;
42
43static struct gsm_bts_model model_sysmobts;
44
Holger Hans Peter Freythere84dd982013-04-24 10:54:02 +020045int bts_model_sysmobts_init(void)
Harald Weltef383aa12012-07-02 19:51:55 +020046{
Holger Hans Peter Freythere84dd982013-04-24 10:54:02 +020047 model_sysmobts = bts_model_nanobts;
48 model_sysmobts.name = "sysmobts";
Maxf9685c12017-03-23 12:01:07 +010049 model_sysmobts.type = GSM_BTS_TYPE_OSMOBTS;
Holger Hans Peter Freythere84dd982013-04-24 10:54:02 +020050
Harald Weltef383aa12012-07-02 19:51:55 +020051 model_sysmobts.features.data = &model_sysmobts._features_data[0];
52 model_sysmobts.features.data_len =
53 sizeof(model_sysmobts._features_data);
Harald Welte903aaea2014-01-19 17:10:50 +010054 memset(model_sysmobts.features.data, 0, sizeof(model_sysmobts.features.data_len));
Harald Weltef383aa12012-07-02 19:51:55 +020055
56 gsm_btsmodel_set_feature(&model_sysmobts, BTS_FEAT_GPRS);
57 gsm_btsmodel_set_feature(&model_sysmobts, BTS_FEAT_EGPRS);
58
Harald Weltef383aa12012-07-02 19:51:55 +020059 return gsm_bts_model_register(&model_sysmobts);
60}