2012-03-05 15:24:57 +00:00
|
|
|
/* gprs_bssgp_pcu.h
|
2012-02-04 22:27:17 +00:00
|
|
|
*
|
2012-03-05 15:24:57 +00:00
|
|
|
* Copyright (C) 2012 Ivan Klyuchnikov
|
2012-02-04 22:27:17 +00:00
|
|
|
*
|
|
|
|
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2012-03-05 15:24:57 +00:00
|
|
|
|
|
|
|
#ifndef GPRS_BSSGP_PCU_H
|
|
|
|
#define GPRS_BSSGP_PCU_H
|
|
|
|
|
2012-02-04 22:27:17 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#include <osmocom/core/talloc.h>
|
|
|
|
#include <osmocom/core/rate_ctr.h>
|
2012-05-24 18:25:06 +00:00
|
|
|
#include <osmocom/core/logging.h>
|
2012-06-18 04:21:03 +00:00
|
|
|
#include <osmocom/core/signal.h>
|
2012-02-04 22:27:17 +00:00
|
|
|
#include <osmocom/core/application.h>
|
2012-06-18 04:21:03 +00:00
|
|
|
#include <osmocom/gprs/gprs_ns.h>
|
|
|
|
#include <osmocom/gprs/gprs_bssgp.h>
|
2012-09-23 03:03:56 +00:00
|
|
|
#include <osmocom/gprs/gprs_bssgp_bss.h>
|
2012-06-18 04:21:03 +00:00
|
|
|
#include <osmocom/gprs/gprs_msgb.h>
|
2012-02-04 22:27:17 +00:00
|
|
|
|
|
|
|
struct bssgp_bvc_ctx *btsctx_alloc(uint16_t bvci, uint16_t nsei);
|
|
|
|
}
|
2012-05-24 18:25:06 +00:00
|
|
|
#include <gprs_debug.h>
|
2012-02-04 22:27:17 +00:00
|
|
|
|
2012-09-23 03:03:56 +00:00
|
|
|
#define QOS_PROFILE 4
|
2012-06-04 15:07:25 +00:00
|
|
|
#define BSSGP_HDR_LEN 53
|
2012-03-05 15:24:57 +00:00
|
|
|
#define NS_HDR_LEN 4
|
2012-06-06 21:51:49 +00:00
|
|
|
#define IE_LLC_PDU 14
|
2012-02-04 22:27:17 +00:00
|
|
|
|
2013-07-28 16:55:14 +00:00
|
|
|
int gprs_bssgp_create_and_connect(struct gprs_rlcmac_bts *bts, uint16_t local_port,
|
|
|
|
uint32_t sgsn_ip, uint16_t sgsn_port, uint16_t nsei,
|
|
|
|
uint16_t nsvci, uint16_t bvci, uint16_t mcc, uint16_t mnc,
|
|
|
|
uint16_t lac, uint16_t rac, uint16_t cell_id);
|
2012-07-06 06:58:22 +00:00
|
|
|
|
2013-07-11 14:13:38 +00:00
|
|
|
void gprs_bssgp_exit_on_destroy(void);
|
|
|
|
void gprs_bssgp_destroy_or_exit(void);
|
2012-07-06 06:58:22 +00:00
|
|
|
|
2013-07-13 10:51:16 +00:00
|
|
|
struct bssgp_bvc_ctx *gprs_bssgp_pcu_current_bctx(void);
|
|
|
|
|
2012-03-05 15:24:57 +00:00
|
|
|
#endif // GPRS_BSSGP_PCU_H
|