summaryrefslogtreecommitdiffstats
path: root/src/host/layer2/include/osmocom
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/layer2/include/osmocom')
-rw-r--r--src/host/layer2/include/osmocom/Makefile.am2
-rw-r--r--src/host/layer2/include/osmocom/l1ctl.h25
-rw-r--r--src/host/layer2/include/osmocom/layer2.h16
3 files changed, 26 insertions, 17 deletions
diff --git a/src/host/layer2/include/osmocom/Makefile.am b/src/host/layer2/include/osmocom/Makefile.am
index 30c9896..6014195 100644
--- a/src/host/layer2/include/osmocom/Makefile.am
+++ b/src/host/layer2/include/osmocom/Makefile.am
@@ -1,3 +1,3 @@
# headers from OpenBSC
noinst_HEADERS = debug.h
-noinst_HEADERS += layer2.h osmocom_data.h lapdm.h rslms.h layer3.h
+noinst_HEADERS += l1ctl.h osmocom_data.h lapdm.h rslms.h layer3.h
diff --git a/src/host/layer2/include/osmocom/l1ctl.h b/src/host/layer2/include/osmocom/l1ctl.h
new file mode 100644
index 0000000..0d5cba6
--- /dev/null
+++ b/src/host/layer2/include/osmocom/l1ctl.h
@@ -0,0 +1,25 @@
+#ifndef osmocom_l1ctl_h
+#define osmocom_l1ctl_h
+
+#include <osmocore/msgb.h>
+#include <osmocom/osmocom_data.h>
+
+struct osmocom_ms;
+
+/* Receive incoming data from L1 using L1CTL format */
+int l1ctl_recv(struct osmocom_ms *ms, struct msgb *msg);
+
+/* Transmit L1CTL_DATA_REQ */
+int tx_ph_data_req(struct osmocom_ms *ms, struct msgb *msg,
+ uint8_t chan_nr, uint8_t link_id);
+
+/* Transmit L1CTL_RACH_REQ */
+int tx_ph_rach_req(struct osmocom_ms *ms);
+
+/* Transmit L1CTL_DM_EST_REQ */
+int tx_ph_dm_est_req(struct osmocom_ms *ms, uint16_t band_arfcn, uint8_t chan_nr);
+
+extern int osmo_send_l1(struct osmocom_ms *ms, struct msgb *msg);
+
+
+#endif
diff --git a/src/host/layer2/include/osmocom/layer2.h b/src/host/layer2/include/osmocom/layer2.h
deleted file mode 100644
index 97bd9e1..0000000
--- a/src/host/layer2/include/osmocom/layer2.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef osmocom_layer2_h
-#define osmocom_layer2_h
-
-#include <osmocore/msgb.h>
-
-struct osmocom_ms;
-
-int osmo_recv(struct osmocom_ms *ms, struct msgb *msg);
-
-int tx_ph_rach_req(struct osmocom_ms *ms);
-int tx_ph_dm_est_req(struct osmocom_ms *ms, uint16_t band_arfcn, uint8_t chan_nr);
-
-extern int osmo_send_l1(struct osmocom_ms *ms, struct msgb *msg);
-
-
-#endif