summaryrefslogtreecommitdiffstats
path: root/port.h
diff options
context:
space:
mode:
authorAndreas Eversberg2010-05-31 18:45:02 +0200
committerAndreas Eversberg2010-05-31 18:45:02 +0200
commita12d7eee22a72f4c999535892763dde15212e89e (patch)
tree32e20ad128c8bba3c80441ca771da8aa0c4fd5f2 /port.h
parentFixed LCR to work with the current API of OpenBSC. (diff)
downloadlcr-a12d7eee22a72f4c999535892763dde15212e89e.tar.gz
lcr-a12d7eee22a72f4c999535892763dde15212e89e.tar.xz
lcr-a12d7eee22a72f4c999535892763dde15212e89e.zip
Splitted GSM support into BS (network) and MS (mobile) part.
Diffstat (limited to 'port.h')
-rw-r--r--port.h40
1 files changed, 24 insertions, 16 deletions
diff --git a/port.h b/port.h
index d71771f..d7c0580 100644
--- a/port.h
+++ b/port.h
@@ -14,27 +14,35 @@
/* type of port */
#define PORT_TYPE_NULL 0x0000
-#define PORT_CLASS_mISDN 0x0100
-#define PORT_CLASS_MASK 0xff00
-#define PORT_CLASS_mISDN_DSS1 0x0110
-#define PORT_CLASS_mISDN_GSM 0x0120
-#define PORT_CLASS_mISDN_SS5 0x0130
-#define PORT_CLASS_mISDN_MASK 0xfff0
+#define PORT_CLASS_mISDN 0x1000
+#define PORT_CLASS_DSS1 0x1100
+#define PORT_CLASS_DSS1_NT 0x1110
+#define PORT_CLASS_DSS1_TE 0x1120
+#define PORT_CLASS_GSM 0x1200
+#define PORT_CLASS_GSM_BS 0x1210
+#define PORT_CLASS_GSM_MS 0x1220
+#define PORT_CLASS_SS5 0x1300
+#define PORT_CLASS_MASK 0xf000
+#define PORT_CLASS_mISDN_MASK 0xff00
+#define PORT_CLASS_DSS1_MASK 0xfff0
+#define PORT_CLASS_GSM_MASK 0xfff0
/* nt-mode */
-#define PORT_TYPE_DSS1_NT_IN 0x0111
-#define PORT_TYPE_DSS1_NT_OUT 0x0112
+#define PORT_TYPE_DSS1_NT_IN 0x1111
+#define PORT_TYPE_DSS1_NT_OUT 0x1112
/* te-mode */
-#define PORT_TYPE_DSS1_TE_IN 0x0113
-#define PORT_TYPE_DSS1_TE_OUT 0x0114
+#define PORT_TYPE_DSS1_TE_IN 0x1121
+#define PORT_TYPE_DSS1_TE_OUT 0x1122
/* gsm */
-#define PORT_TYPE_GSM_IN 0x0121
-#define PORT_TYPE_GSM_OUT 0x0122
+#define PORT_TYPE_GSM_BS_IN 0x1211
+#define PORT_TYPE_GSM_BS_OUT 0x1212
+#define PORT_TYPE_GSM_MS_IN 0x1221
+#define PORT_TYPE_GSM_MS_OUT 0x1222
/* ss5 */
-#define PORT_TYPE_SS5_IN 0x0131
-#define PORT_TYPE_SS5_OUT 0x0132
-#define PORT_TYPE_SS5_IDLE 0x0133
+#define PORT_TYPE_SS5_IN 0x1311
+#define PORT_TYPE_SS5_OUT 0x1312
+#define PORT_TYPE_SS5_IDLE 0x1313
/* answering machine */
-#define PORT_TYPE_VBOX_OUT 0x0311
+#define PORT_TYPE_VBOX_OUT 0x3111
enum { /* states of call */