2 * Copyright (C) Eicon Technology Corporation, 2000.
4 * Eicon File Revision : 1.0
6 * This software may be used and distributed according to the terms
7 * of the GNU General Public License, incorporated herein by reference.
11 /*------------------------------------------------------------------*/
12 /* Q.931 information elements maximum length */
13 /* excluding the identifier, including the length field */
14 /*------------------------------------------------------------------*/
17 #define MAX_LEN_LLC 19 /* ctr3 */
18 #define MAX_LEN_HLC 6 /* ctr3 */
19 #define MAX_LEN_UUI 200 /* Hicom USBS req */
20 #define MAX_LEN_NUM 24
21 #define MAX_LEN_DSP 83 /* ctr3 */
27 #define MAX_LEN_SPID 32
29 #define MAX_LEN_CHI 35 /* ctr3 */
30 #define MAX_LEN_CAU 33
31 #define MAX_LEN_FTY 130
32 #define MAX_LEN_KEY 83 /* ctr3 */
34 #define MAX_LEN_CAI 11
35 #define MAX_NUM_SPID 4
36 #define MAX_LEN_USERID 9
37 #define MAX_LEN_APPLID 5
38 #define MAX_LEN_NTTCIF 15
40 /*------------------------------------------------------------------*/
41 /* decision return values */
42 /*------------------------------------------------------------------*/
48 /*-------------------------------------------------------------------*/
49 /* w element coding */
50 /*-------------------------------------------------------------------*/
87 #define SCR 0x7A /* internal unscreened CPN */
88 #define MIE 0x7a /* internal management info element */
98 /* information elements used on the spid interface */
100 #define SPID_LINK 0x10
103 #define SPID_SWITCH 0x11
105 /*------------------------------------------------------------------*/
106 /* global configuration parameters, defined in exec.c */
107 /* these parameters are configured with program loading */
108 /*------------------------------------------------------------------*/
120 #define PROT_ITALY 10
122 #define PROT_AUSTRAL 12
124 #define INIT_PROT_1TR6 0x80|PROT_1TR6
125 #define INIT_PROT_ETSI 0x80|PROT_ETSI
126 #define INIT_PROT_FRANC 0x80|PROT_FRANC
127 #define INIT_PROT_BELG 0x80|PROT_BELG
128 #define INIT_PROT_SWED 0x80|PROT_SWED
129 #define INIT_PROT_NI 0x80|PROT_NI
130 #define INIT_PROT_5ESS 0x80|PROT_5ESS
131 #define INIT_PROT_JAPAN 0x80|PROT_JAPAN
132 #define INIT_PROT_ATEL 0x80|PROT_ATEL
133 #define INIT_PROT_ITALY 0x80|PROT_ITALY
134 #define INIT_PROT_TWAN 0x80|PROT_TWAN
135 #define INIT_PROT_AUSTRAL 0x80|PROT_AUSTRAL
138 /* -----------------------------------------------------------**
139 ** The PROTOCOL_FEATURE_STRING in feature.h (included **
140 ** in prstart.sx and astart.sx) defines capabilities and **
141 ** features of the actual protocol code. It's used as a bit **
143 ** The following Bits are defined: **
144 ** -----------------------------------------------------------*/
146 #define PROTCAP_TELINDUS 0x0001 /* Telindus Variant of protocol code */
147 #define PROTCAP_MANIF 0x0002 /* Management interface implemented */
148 #define PROTCAP_V_42 0x0004 /* V42 implemented */
149 #define PROTCAP_V90D 0x0008 /* V.90D (implies up to 384k DSP code) */
150 #define PROTCAP_EXTD_FAX 0x0010 /* Extended FAX (ECM, 2D, T6, Polling) */
151 #define PROTCAP_FREE4 0x0020 /* not used */
152 #define PROTCAP_FREE5 0x0040 /* not used */
153 #define PROTCAP_FREE6 0x0080 /* not used */
154 #define PROTCAP_FREE7 0x0100 /* not used */
155 #define PROTCAP_FREE8 0x0200 /* not used */
156 #define PROTCAP_FREE9 0x0400 /* not used */
157 #define PROTCAP_FREE10 0x0800 /* not used */
158 #define PROTCAP_FREE11 0x1000 /* not used */
159 #define PROTCAP_FREE12 0x2000 /* not used */
160 #define PROTCAP_FREE13 0x4000 /* not used */
161 #define PROTCAP_EXTENSION 0x8000 /* used for future extentions */