2010-01-10 17:01:52 +00:00
|
|
|
/* Siemens BS-11 specific code */
|
|
|
|
|
|
|
|
/* (C) 2009-2010 by Harald Welte <laforge@gnumonks.org>
|
|
|
|
*
|
|
|
|
* All Rights Reserved
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
#include <openbsc/gsm_data.h>
|
split 'libosmocore' from openbsc codebase
This library is intended to collect all generic/common funcitionality
of all Osmocom.org projects, including OpenBSC but also OsmocomBB
The library currently includes the following modules:
bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer,
tlv_parse, linuxlist
msgb allocation error debugging had to be temporarily disabled as it depends on
'debug.c' functionality which at the moment remains in OpenBSC
2010-02-20 15:24:02 +00:00
|
|
|
#include <osmocore/tlv.h>
|
2010-01-10 17:01:52 +00:00
|
|
|
#include <openbsc/abis_nm.h>
|
|
|
|
|
|
|
|
static struct gsm_bts_model model_bs11 = {
|
|
|
|
.type = GSM_BTS_TYPE_BS11,
|
|
|
|
.nm_att_tlvdef = {
|
|
|
|
.def = {
|
|
|
|
[NM_ATT_AVAIL_STATUS] = { TLV_TYPE_TLV },
|
|
|
|
/* BS11 specifics */
|
|
|
|
[NM_ATT_BS11_ESN_FW_CODE_NO] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_ESN_HW_CODE_NO] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_ESN_PCB_SERIAL] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_BOOT_SW_VERS] = { TLV_TYPE_TLV },
|
|
|
|
[0xd5] = { TLV_TYPE_TLV },
|
|
|
|
[0xa8] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_PASSWORD] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_TXPWR] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_RSSI_OFFS] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_LINE_CFG] = { TLV_TYPE_TV },
|
|
|
|
[NM_ATT_BS11_L1_PROT_TYPE] = { TLV_TYPE_TV },
|
|
|
|
[NM_ATT_BS11_BIT_ERR_THESH] = { TLV_TYPE_FIXED, 2 },
|
|
|
|
[NM_ATT_BS11_DIVERSITY] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_LMT_LOGON_SESSION]={ TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_LMT_LOGIN_TIME] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_LMT_USER_ACC_LEV] ={ TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_LMT_USER_NAME] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_BTS_STATE] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_E1_STATE] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_PLL_MODE] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_PLL] = { TLV_TYPE_TLV },
|
|
|
|
[NM_ATT_BS11_CCLK_ACCURACY] = { TLV_TYPE_TV },
|
|
|
|
[NM_ATT_BS11_CCLK_TYPE] = { TLV_TYPE_TV },
|
|
|
|
[0x95] = { TLV_TYPE_FIXED, 2 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
int bts_model_bs11_init(void)
|
|
|
|
{
|
|
|
|
return gsm_bts_model_register(&model_bs11);
|
|
|
|
}
|