summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-12-28 13:37:01 +0100
committerHarald Welte <laforge@gnumonks.org>2014-12-28 13:37:01 +0100
commit1b12d16c4c6a2914e4d3def56b304cb0da9246b0 (patch)
tree7d2416e621784ef94411497ea7d690db551f4e22
parenta6be224b889baa8aecc4e7247e596583bbcfc8cb (diff)
libosmo-gsm: Add PCHAN/LCHAN types for CBCH
-rw-r--r--include/osmocom/gsm/gsm_utils.h3
-rw-r--r--src/gsm/abis_nm.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h
index 6eab7acb..c3085c04 100644
--- a/include/osmocom/gsm/gsm_utils.h
+++ b/include/osmocom/gsm/gsm_utils.h
@@ -178,6 +178,8 @@ enum gsm_phys_chan_config {
GSM_PCHAN_PDCH, /* GPRS PDCH */
GSM_PCHAN_TCH_F_PDCH, /* TCH/F if used, PDCH otherwise */
GSM_PCHAN_UNKNOWN,
+ GSM_PCHAN_CCCH_SDCCH4_CBCH,
+ GSM_PCHAN_SDCCH8_SACCH8C_CBCH,
_GSM_PCHAN_MAX
};
@@ -190,6 +192,7 @@ enum gsm_chan_t {
GSM_LCHAN_UNKNOWN,
GSM_LCHAN_CCCH,
GSM_LCHAN_PDTCH,
+ GSM_LCHAN_CBCH,
_GSM_LCHAN_MAX
};
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index bd586248..6a1831c7 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -436,6 +436,8 @@ static const enum abis_nm_chan_comb chcomb4pchan[] = {
[GSM_PCHAN_PDCH] = NM_CHANC_IPAC_PDCH,
[GSM_PCHAN_TCH_F_PDCH] = NM_CHANC_IPAC_TCHFull_PDCH,
[GSM_PCHAN_UNKNOWN] = 0xff,
+ [GSM_PCHAN_CCCH_SDCCH4_CBCH] = NM_CHANC_BCCH_CBCH,
+ [GSM_PCHAN_SDCCH8_SACCH8C_CBCH] = NM_CHANC_SDCCH_CBCH,
/* FIXME: bounds check */
};