diff options
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/misc')
-rw-r--r-- | src/host/layer23/include/osmocom/bb/misc/Makefile.am | 1 | ||||
-rw-r--r-- | src/host/layer23/include/osmocom/bb/misc/cell_log.h | 25 | ||||
-rw-r--r-- | src/host/layer23/include/osmocom/bb/misc/layer3.h | 17 | ||||
-rw-r--r-- | src/host/layer23/include/osmocom/bb/misc/rslms.h | 23 |
4 files changed, 66 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/misc/Makefile.am b/src/host/layer23/include/osmocom/bb/misc/Makefile.am new file mode 100644 index 00000000..71c9d389 --- /dev/null +++ b/src/host/layer23/include/osmocom/bb/misc/Makefile.am @@ -0,0 +1 @@ +noinst_HEADERS = layer3.h rslms.h diff --git a/src/host/layer23/include/osmocom/bb/misc/cell_log.h b/src/host/layer23/include/osmocom/bb/misc/cell_log.h new file mode 100644 index 00000000..bce066eb --- /dev/null +++ b/src/host/layer23/include/osmocom/bb/misc/cell_log.h @@ -0,0 +1,25 @@ +/* Cell Scanning code for OsmocomBB */ + +/* (C) 2010 by Andreas Eversberg <jolly@eversberg.eu> + * + * 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. + * + */ + +int scan_init(struct osmocom_ms *_ms); +int scan_exit(void); + diff --git a/src/host/layer23/include/osmocom/bb/misc/layer3.h b/src/host/layer23/include/osmocom/bb/misc/layer3.h new file mode 100644 index 00000000..bbf242d5 --- /dev/null +++ b/src/host/layer23/include/osmocom/bb/misc/layer3.h @@ -0,0 +1,17 @@ +#ifndef _OSMOCOM_L3_H +#define _OSMOCOM_L3_H + +#include <osmocom/core/msgb.h> +#include <osmocom/bb/common/osmocom_data.h> + +int gsm48_rx_ccch(struct msgb *msg, struct osmocom_ms *ms); +int gsm48_rx_dcch(struct msgb *msg, struct osmocom_ms *ms); +int gsm48_rx_bcch(struct msgb *msg, struct osmocom_ms *ms); + +/* Initialize layer3 for the MS, hook it to L2 */ +int layer3_init(struct osmocom_ms *ms); + +/* Reset the 'aplication' state */ +void layer3_app_reset(void); + +#endif diff --git a/src/host/layer23/include/osmocom/bb/misc/rslms.h b/src/host/layer23/include/osmocom/bb/misc/rslms.h new file mode 100644 index 00000000..94fe99c8 --- /dev/null +++ b/src/host/layer23/include/osmocom/bb/misc/rslms.h @@ -0,0 +1,23 @@ +#ifndef _OSMOCOM_RSLMS_H +#define _OSMOCOM_RSLMS_H + +#include <osmocom/core/msgb.h> +#include <osmocom/bb/common/osmocom_data.h> + +/* From L3 into RSLMS (direction -> L2) */ + +/* Send a 'simple' RLL request to L2 */ +int rslms_tx_rll_req(struct osmocom_ms *ms, uint8_t msg_type, + uint8_t chan_nr, uint8_t link_id); + +/* Send a RLL request (including L3 info) to L2 */ +int rslms_tx_rll_req_l3(struct osmocom_ms *ms, uint8_t msg_type, + uint8_t chan_nr, uint8_t link_id, struct msgb *msg); + + +/* From L2 into RSLMS (direction -> L3) */ + +/* input function that L2 calls when sending messages up to L3 */ +//int rslms_sendmsg(struct msgb *msg, struct osmocom_ms *ms); + +#endif /* _OSMOCOM_RSLMS_H */ |