summaryrefslogtreecommitdiffstats
path: root/src/host/layer2/include/osmocom/rslms.h
diff options
context:
space:
mode:
authorHarald Welte2010-03-02 23:02:16 +0100
committerHarald Welte2010-03-02 23:02:16 +0100
commit3b32efb40ad870873c257a27f23df4783d612759 (patch)
tree0a8edab56611ea93f7391e7a20e2f748af78ba11 /src/host/layer2/include/osmocom/rslms.h
parentMerge commit 'f08eabf2341de43993918246e89ce30c3651f378' (diff)
downloadosmocom-3b32efb40ad870873c257a27f23df4783d612759.tar.gz
osmocom-3b32efb40ad870873c257a27f23df4783d612759.tar.xz
osmocom-3b32efb40ad870873c257a27f23df4783d612759.zip
layer2 program: Use new RSL utility routines, split code in more files
Diffstat (limited to 'src/host/layer2/include/osmocom/rslms.h')
-rw-r--r--src/host/layer2/include/osmocom/rslms.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/host/layer2/include/osmocom/rslms.h b/src/host/layer2/include/osmocom/rslms.h
new file mode 100644
index 0000000..7327c11
--- /dev/null
+++ b/src/host/layer2/include/osmocom/rslms.h
@@ -0,0 +1,23 @@
+#ifndef _OSMOCOM_RSLMS_H
+#define _OSMOCOM_RSLMS_H
+
+#include <osmocore/msgb.h>
+#include <osmocom/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 */