Lines Matching refs:byte
77 static byte test_group_ind_mask_bit(PLCI *plci, word b);
82 static word api_parse(byte *, word, byte *, API_PARSE *);
83 static void api_save_msg(API_PARSE *in, byte *format, API_SAVE *out);
95 static void control_rc(PLCI *, byte, byte, byte, byte, byte);
96 static void data_rc(PLCI *, byte);
97 static void data_ack(PLCI *, byte);
99 static void SendInfo(PLCI *, dword, byte **, byte);
100 static void SendSetupInfo(APPL *, PLCI *, dword, byte **, byte);
101 static void SendSSExtInd(APPL *, PLCI *plci, dword Id, byte **parms);
103 static void VSwitchReqInd(PLCI *plci, dword Id, byte **parms);
107 static byte connect_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
108 static byte connect_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
109 static byte connect_a_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
110 static byte disconnect_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
111 static byte disconnect_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
112 static byte listen_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
113 static byte info_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
114 static byte info_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
115 static byte alert_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
116 static byte facility_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
117 static byte facility_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
118 static byte connect_b3_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
119 static byte connect_b3_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
120 static byte connect_b3_a_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
121 static byte disconnect_b3_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
122 static byte disconnect_b3_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
123 static byte data_b3_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
124 static byte data_b3_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
125 static byte reset_b3_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
126 static byte reset_b3_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
127 static byte connect_b3_t90_a_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
128 static byte select_b_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
129 static byte manufacturer_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
130 static byte manufacturer_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
133 static void add_p(PLCI *, byte, byte *);
134 static void add_s(PLCI *plci, byte code, API_PARSE *p);
135 static void add_ss(PLCI *plci, byte code, API_PARSE *p);
136 static void add_ie(PLCI *plci, byte code, byte *p, word p_length);
137 static void add_d(PLCI *, word, byte *);
142 static void sig_req(PLCI *, byte, byte);
143 static void nl_req_ncci(PLCI *, byte, byte);
148 static byte AddInfo(byte **, byte **, byte *, byte *);
149 static byte getChannel(API_PARSE *);
150 static void IndParse(PLCI *, word *, byte **, byte);
151 static byte ie_compare(byte *, byte *);
152 static word find_cip(DIVA_CAPI_ADAPTER *, byte *, byte *);
153 static word CPN_filter_ok(byte *cpn, DIVA_CAPI_ADAPTER *, word);
159 static void channel_x_off(PLCI *plci, byte ch, byte flag);
160 static void channel_x_on(PLCI *plci, byte ch);
161 static void channel_request_xon(PLCI *plci, byte ch);
163 static int channel_can_xon(PLCI *plci, byte ch);
166 static byte SendMultiIE(PLCI *plci, dword Id, byte **parms, byte ie_type, dword info_mask, byte set…
167 static word AdvCodecSupport(DIVA_CAPI_ADAPTER *, PLCI *, APPL *, byte);
169 static void SetVoiceChannel(PLCI *, byte *, DIVA_CAPI_ADAPTER *);
174 static word get_b1_facilities(PLCI *plci, byte b1_resource);
175 static byte add_b1_facilities(PLCI *plci, byte b1_resource, word b1_facilities);
176 static void adjust_b1_facilities(PLCI *plci, byte new_b1_resource, word new_b1_facilities);
177 static word adjust_b_process(dword Id, PLCI *plci, byte Rc);
179 static void adjust_b_restore(dword Id, PLCI *plci, byte Rc);
180 static void reset_b3_command(dword Id, PLCI *plci, byte Rc);
181 static void select_b_command(dword Id, PLCI *plci, byte Rc);
182 static void fax_connect_ack_command(dword Id, PLCI *plci, byte Rc);
183 static void fax_edata_ack_command(dword Id, PLCI *plci, byte Rc);
184 static void fax_connect_info_command(dword Id, PLCI *plci, byte Rc);
185 static void fax_adjust_b23_command(dword Id, PLCI *plci, byte Rc);
186 static void fax_disconnect_command(dword Id, PLCI *plci, byte Rc);
187 static void hold_save_command(dword Id, PLCI *plci, byte Rc);
188 static void retrieve_restore_command(dword Id, PLCI *plci, byte Rc);
192 static void dtmf_command(dword Id, PLCI *plci, byte Rc);
193 static byte dtmf_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_P…
195 static void dtmf_indication(dword Id, PLCI *plci, byte *msg, word length);
199 static void mixer_set_bchannel_id_esc(PLCI *plci, byte bchannel_id);
200 static void mixer_set_bchannel_id(PLCI *plci, byte *chi);
202 static void mixer_notify_update(PLCI *plci, byte others);
203 static void mixer_command(dword Id, PLCI *plci, byte Rc);
204 static byte mixer_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_…
206 static void mixer_indication_xconnect_from(dword Id, PLCI *plci, byte *msg, word length);
207 static void mixer_indication_xconnect_to(dword Id, PLCI *plci, byte *msg, word length);
211 static void ec_command(dword Id, PLCI *plci, byte Rc);
212 static byte ec_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_PAR…
213 static void ec_indication(dword Id, PLCI *plci, byte *msg, word length);
216 static void rtp_connect_b3_req_command(dword Id, PLCI *plci, byte Rc);
217 static void rtp_connect_b3_res_command(dword Id, PLCI *plci, byte Rc);
227 extern byte MapController(byte);
228 extern byte UnMapController(byte);
229 #define MapId(Id)(((Id) & 0xffffff00L) | MapController((byte)(Id)))
230 #define UnMapId(Id)(((Id) & 0xffffff00L) | UnMapController((byte)(Id)))
232 void sendf(APPL *, word, dword, word, byte *, ...);
244 extern byte max_adapter;
245 extern byte max_appl;
255 static byte remove_started = false;
261 byte *format;
262 byte (*function)(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
292 static byte *cip_bc[29][2] = {
325 static byte *cip_hlc[29] = {
367 static byte v120_default_header[] =
374 static byte v120_break_header[] =
390 byte c; in api_put()
391 byte controller; in api_put()
405 controller = (byte)((msg->header.controller & 0x7f) - 1); in api_put()
459 if ((((byte *) msg) < ((byte *)(plci->msg_in_queue))) in api_put()
460 || (((byte *) msg) >= ((byte *)(plci->msg_in_queue)) + sizeof(plci->msg_in_queue))) in api_put()
480 if ((((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[k]))->header.command == _DATA_B3_R) in api_put()
481 && (((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[k]))->header.ncci == ncci)) in api_put()
484 if (((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[k]))->info.data_b3_req.Flags & 0x0004) in api_put()
488 k += (((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[k]))->header.length + in api_put()
501 if ((((byte *) msg) >= ((byte *)(plci->msg_in_queue))) in api_put()
502 && (((byte *) msg) < ((byte *)(plci->msg_in_queue)) + sizeof(plci->msg_in_queue))) in api_put()
529 m = (CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[j]); in api_put()
531 ((byte *)(plci->msg_in_queue))[j++] = ((byte *) msg)[i]; in api_put()
541 *((APPL **)(&((byte *)(plci->msg_in_queue))[j])) = appl; in api_put()
593 static word api_parse(byte *msg, word length, byte *format, API_PARSE *parms) in api_parse()
632 static void api_save_msg(API_PARSE *in, byte *format, API_SAVE *out) in api_save_msg()
635 byte *p; in api_save_msg()
778 static word get_ncci(PLCI *plci, byte ch, word force_ncci) in get_ncci()
841 a->ncci_next[plci->ncci_ring_list] = (byte) ncci; in get_ncci()
844 a->ch_ncci[ch] = (byte) ncci; in get_ncci()
878 && (((byte)(appl->DataFlags[i] >> 8)) == plci->Id)) in ncci_free_receive_buffers()
905 && (((byte)(appl->DataFlags[i] >> 8)) == plci->Id)) in ncci_free_receive_buffers()
944 static void ncci_remove(PLCI *plci, word ncci, byte preserve_ncci) in ncci_remove()
1028 if (((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[i]))->header.command == _DATA_B3_R) in plci_free_msg_in_queue()
1032 (byte *)(long)(((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[i]))->info.data_b3_req.Data)); in plci_free_msg_in_queue()
1036 i += (((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[i]))->header.length + in plci_free_msg_in_queue()
1106 static byte test_group_ind_mask_bit(PLCI *plci, word b) in test_group_ind_mask_bit()
1123 static byte c_ind_mask_empty(PLCI *plci) in c_ind_mask_empty()
1143 static byte test_c_ind_mask_bit(PLCI *plci, word b) in test_c_ind_mask_bit()
1195 static byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_req()
1201 byte LinkLayer; in connect_req()
1207 byte m; in connect_req()
1208 static byte esc_chi[35] = {0x02, 0x18, 0x01}; in connect_req()
1209 static byte lli[2] = {0x01, 0x00}; in connect_req()
1210 byte noCh = 0; in connect_req()
1212 byte *p_chi = ""; in connect_req()
1307 esc_chi[0] = (byte)(ai_parms[0].length - 2); in connect_req()
1313 esc_chi[2] = (byte)channel; in connect_req()
1314 plci->b_channel = (byte)channel; /* not correct for ETSI ch 17..31 */ in connect_req()
1411 static byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_res()
1416 static byte cau_t[] = {0, 0, 0x90, 0x91, 0xac, 0x9d, 0x86, 0xd8, 0x9b}; in connect_res()
1417 static byte esc_t[] = {0x03, 0x08, 0x00, 0x00}; in connect_res()
1472 esc_t[2] = ((byte)(Reject & 0x00ff)) | 0x80; in connect_res()
1568 static byte connect_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_a_res()
1575 static byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in disconnect_req()
1631 static byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in disconnect_res()
1659 static byte listen_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in listen_req()
1663 byte i; in listen_req()
1682 a->TelOAD[0] = (byte)(parms[3].length); in listen_req()
1687 a->TelOSA[0] = (byte)(parms[4].length); in listen_req()
1709 static byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in info_req()
1819 static byte info_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in info_res()
1826 static byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in alert_req()
1830 byte ret; in alert_req()
1857 static byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in facility_req()
1867 byte *SSparms = ""; in facility_req()
1868 byte RCparms[] = "\x05\x00\x00\x02\x00\x00"; in facility_req()
1869 byte SSstruct[] = "\x09\x00\x00\x06\x00\x00\x00\x00\x00\x00"; in facility_req()
1873 byte cai[15]; in facility_req()
1922 SSparms = (byte *)SSstruct; in facility_req()
2105 plci->ptyState = (byte)SSreq; in facility_req()
2127 cai[2] = (byte)d; /* Conference Size resp. PartyId */ in facility_req()
2178 || (MapController((byte)(relatedPLCIvalue & 0x7f)) == 0) in facility_req()
2179 || (MapController((byte)(relatedPLCIvalue & 0x7f)) > max_adapter)) in facility_req()
2194 relatedadapter = &adapter[MapController((byte)(relatedPLCIvalue & 0x7f)) - 1]; in facility_req()
2199 if (relatedadapter->plci[i].Id == (byte)relatedPLCIvalue) in facility_req()
2234 rplci->ptyState = (byte)SSreq; in facility_req()
2256 cai[1] = (byte)(SSreq - 3); in facility_req()
2296 ss_parms[3].info[3] = (byte)GET_WORD(&(ss_parms[2].info[0])); in facility_req()
2338 cai[1] = 0x70 | (byte)GET_WORD(&(ss_parms[3].info[0])); /* Function */ in facility_req()
2339 cai[2] = (byte)GET_WORD(&(ss_parms[4].info[0])); /* Basic Service */ in facility_req()
2395 cai[1] = 0x60 | (byte)GET_WORD(&(ss_parms[3].info[0])); /* Function */ in facility_req()
2404 cai[1] = 0x80 | (byte)GET_WORD(&(ss_parms[3].info[0])); /* Function */ in facility_req()
2456 cai[2] = (byte)GET_WORD(&(ss_parms[4].info[0])); /* Basic Service */ in facility_req()
2608 static byte facility_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in facility_res()
2615 static byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_b3_req()
2619 byte req; in connect_b3_req()
2620 byte len; in connect_b3_req()
2624 byte pvc[2]; in connect_b3_req()
2701 …(byte)((((T30_INFO *)(plci->fax_connect_info_buffer))->resolution & ~T30_RESOLUTION_R8_0770_OR_200… in connect_b3_req()
2716 if (((byte) w) != ((T30_INFO *)(plci->fax_connect_info_buffer))->data_format) in connect_b3_req()
2718 ((T30_INFO *)(plci->fax_connect_info_buffer))->data_format = (byte) w; in connect_b3_req()
2751 ((T30_INFO *)(plci->fax_connect_info_buffer))->station_id_len = (byte) w; in connect_b3_req()
2759 plci->fax_connect_info_buffer[len++] = (byte) w; in connect_b3_req()
2765 plci->fax_connect_info_buffer[len++] = (byte) w; in connect_b3_req()
2780 plci->fax_connect_info_buffer[len++] = (byte)(fax_parms[7].length); in connect_b3_req()
2850 static byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_b3_res()
2855 byte req; in connect_b3_res()
2862 byte len; in connect_b3_res()
2876 nl_req_ncci(plci, N_DISC, (byte)ncci); in connect_b3_res()
2913 plci->fax_connect_info_buffer[len++] = (byte)(fax_parms[7].length); in connect_b3_res()
2924 nl_req_ncci(plci, req, (byte)ncci); in connect_b3_res()
2952 nl_req_ncci(plci, req, (byte)ncci); in connect_b3_res()
2966 static byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_b3_a_res()
2987 static byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in disconnect_b3_req()
3015 plci->send_disc = (byte)ncci; in disconnect_b3_req()
3028 add_d(plci, (word)(ncpi->length - 3), (byte *)&(ncpi->info[4])); in disconnect_b3_req()
3031 nl_req_ncci(plci, N_DISC, (byte)ncci); in disconnect_b3_req()
3044 static byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in disconnect_b3_res()
3061 for (i = 0; i < MAX_CHANNELS_PER_PLCI && plci->inc_dis_ncci_table[i] != (byte)ncci; i++); in disconnect_b3_res()
3090 nl_req_ncci(plci, N_EDATA, (byte)ncci); in disconnect_b3_res()
3101 static byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in data_b3_req()
3129 if ((((byte *)(parms[0].info)) >= ((byte *)(plci->msg_in_queue))) in data_b3_req()
3130 && (((byte *)(parms[0].info)) < ((byte *)(plci->msg_in_queue)) + sizeof(plci->msg_in_queue))) in data_b3_req()
3133 data->P = (byte *)(long)(*((dword *)(parms[0].info))); in data_b3_req()
3162 if ((((byte *)(parms[0].info)) >= ((byte *)(plci->msg_in_queue))) in data_b3_req()
3163 && (((byte *)(parms[0].info)) < ((byte *)(plci->msg_in_queue)) + sizeof(plci->msg_in_queue))) in data_b3_req()
3166 TransmitBufferFree(appl, (byte *)(long)(*((dword *)(parms[0].info)))); in data_b3_req()
3179 static byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in data_b3_res()
3195 (byte)(appl->DataFlags[n] >> 8) == plci->Id) { in data_b3_res()
3205 nl_req_ncci(plci, N_DATA_ACK, (byte)ncci); in data_b3_res()
3213 static byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in reset_b3_req()
3232 nl_req_ncci(plci, N_RESET, (byte)ncci); in reset_b3_req()
3255 static byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in reset_b3_res()
3271 nl_req_ncci(plci, N_RESET_ACK, (byte)ncci); in reset_b3_res()
3280 static byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_b3_t90_a_res()
3285 byte req; in connect_b3_t90_a_res()
3307 nl_req_ncci(plci, req, (byte)ncci); in connect_b3_t90_a_res()
3315 static byte select_b_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in select_b_req()
3320 byte tel; in select_b_req()
3435 static byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in manufacturer_req()
3444 byte req; in manufacturer_req()
3445 byte ch; in manufacturer_req()
3446 byte dir; in manufacturer_req()
3447 static byte chi[2] = {0x01, 0x00}; in manufacturer_req()
3448 static byte lli[2] = {0x01, 0x00}; in manufacturer_req()
3449 static byte codec_cai[2] = {0x01, 0x01}; in manufacturer_req()
3450 static byte null_msg = {0}; in manufacturer_req()
3485 chi[1] = (byte)(0x80 | ch); in manufacturer_req()
3611 nl_req_ncci(plci, N_DISC, (byte)ncci); in manufacturer_req()
3687 a->adv_voice_coef_length = (byte)(m->length - 3); in manufacturer_req()
3706 plci->dtmf_parameter_length = (byte)(m->length - 3); in manufacturer_req()
3764 static byte manufacturer_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in manufacturer_res()
3773 byte len; in manufacturer_res()
3823 plci->fax_connect_info_buffer[len++] = (byte)(fax_parms[7].length); in manufacturer_res()
3847 byte rc; in callback()
3848 byte ch; in callback()
3849 byte req; in callback()
3850 byte global_req; in callback()
3856 a = &(adapter[(byte)e->user[0]]); in callback()
4019 byte Ind = e->Ind & 0x0f; in callback()
4020 byte Ch = e->IndCh; in callback()
4049 i = (((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[j]))->header.length + 3) & 0xfffc; in callback()
4051 m = (CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[j]); in callback()
4052 appl = *((APPL **)(&((byte *)(plci->msg_in_queue))[j + i])); in callback()
4079 TransmitBufferFree(appl, (byte *)(long)(m->info.data_b3_req.Data)); in callback()
4097 static void control_rc(PLCI *plci, byte req, byte rc, byte ch, byte global_req, in control_rc()
4098 byte nl_rc) in control_rc()
4109 byte SSparms[] = "\x05\x00\x00\x02\x00\x00"; in control_rc()
4110 byte SSstruct[] = "\x09\x00\x00\x06\x00\x00\x00\x00\x00\x00"; in control_rc()
4153 SSparms[1] = (byte)S_HOLD; in control_rc()
4164 SSparms[1] = (byte)S_RETRIEVE; in control_rc()
4477 nl_req_ncci(plci, N_DISC, (byte)ncci); in control_rc()
4764 static void data_rc(PLCI *plci, byte ch) in data_rc()
4800 static void data_ack(PLCI *plci, byte ch) in data_ack()
4834 byte *ie; in sig_ind()
4838 byte *parms[MAXPARMSIDS]; in sig_ind()
4839 byte *add_i[4]; in sig_ind()
4840 byte *multi_fac_parms[MAX_MULTI_IE]; in sig_ind()
4841 byte *multi_pi_parms[MAX_MULTI_IE]; in sig_ind()
4842 byte *multi_ssext_parms[MAX_MULTI_IE]; in sig_ind()
4843 byte *multi_CiPN_parms[MAX_MULTI_IE]; in sig_ind()
4845 byte *multi_vswitch_parms[MAX_MULTI_IE]; in sig_ind()
4847 byte ai_len; in sig_ind()
4848 byte *esc_chi = ""; in sig_ind()
4849 byte *esc_law = ""; in sig_ind()
4850 byte *pty_cai = ""; in sig_ind()
4851 byte *esc_cr = ""; in sig_ind()
4852 byte *esc_profile = ""; in sig_ind()
4854 byte facility[256]; in sig_ind()
4856 byte chi[] = "\x02\x18\x01"; in sig_ind()
4857 byte voice_cai[] = "\x06\x14\x00\x00\x00\x00\x08"; in sig_ind()
4858 byte resume_cau[] = "\x05\x05\x00\x02\x00\x00"; in sig_ind()
4878 byte *cau; in sig_ind()
4880 byte SS_Ind[] = "\x05\x02\x00\x02\x00\x00"; /* Hold_Ind struct*/ in sig_ind()
4881 byte CF_Ind[] = "\x09\x02\x00\x06\x00\x00\x00\x00\x00\x00"; in sig_ind()
4882 byte Interr_Err_Ind[] = "\x0a\x02\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; in sig_ind()
4883 byte CONF_Ind[] = "\x09\x16\x00\x06\x00\x00\x00\x00\x00\x00"; in sig_ind()
4884 byte force_mt_info = false; in sig_ind()
4885 byte dir; in sig_ind()
6118 static void SendSetupInfo(APPL *appl, PLCI *plci, dword Id, byte **parms, byte Info_Sent_Flag) in SendSetupInfo()
6121 byte *ie; in SendSetupInfo()
6123 byte *Info_Element; in SendSetupInfo()
6192 static void SendInfo(PLCI *plci, dword Id, byte **parms, byte iesent) in SendInfo()
6197 byte *ie; in SendInfo()
6199 byte *Info_Element; in SendInfo()
6201 static byte charges[5] = {4, 0, 0, 0, 0}; in SendInfo()
6202 static byte cause[] = {0x02, 0x80, 0x00}; in SendInfo()
6368 static byte SendMultiIE(PLCI *plci, dword Id, byte **parms, byte ie_type, in SendMultiIE()
6369 dword info_mask, byte setupParse) in SendMultiIE()
6373 byte *ie; in SendMultiIE()
6375 byte *Info_Element; in SendMultiIE()
6378 byte iesent = 0; in SendMultiIE()
6442 static void SendSSExtInd(APPL *appl, PLCI *plci, dword Id, byte **parms) in SendSSExtInd()
6490 byte ch; in nl_ind()
6499 byte len, ncci_state; in nl_ind()
6503 byte fax_send_edata_ack; in nl_ind()
6504 static byte v120_header_buffer[2 + 3]; in nl_ind()
6555 byte dtmf_code_buffer[CAPIDTMF_RECV_DIGIT_BUFFER_SIZE + 1]; in nl_ind()
6621 byte *data = &plci->NL.RBuffer->P[0]; in nl_ind()
6793 plci->ncpi_buffer[0] = (byte)(i + 3); in nl_ind()
6794 plci->ncpi_buffer[1] = (byte)(plci->NL.Ind & N_D_BIT ? 1 : 0); in nl_ind()
6906 (byte)(plci->ncpi_buffer[0] + 1), plci->ncpi_buffer); in nl_ind()
7070 plci->inc_dis_ncci_table[i] = (byte) ncci; in nl_ind()
7282 plci->Id = (byte)(i + 1); in get_plci()
7348 static void add_p(PLCI *plci, byte code, byte *p) in add_p()
7360 static void add_s(PLCI *plci, byte code, API_PARSE *p) in add_s()
7368 static void add_ss(PLCI *plci, byte code, API_PARSE *p) in add_ss()
7370 byte i; in add_ss()
7374 for (i = 2; i < (byte)p->length; i += p->info[i] + 2) { in add_ss()
7376 add_ie(plci, p->info[i - 1], (byte *)&(p->info[i]), (word)p->info[i]); in add_ss()
7384 static byte getChannel(API_PARSE *p) in getChannel()
7386 byte i; in getChannel()
7389 for (i = 2; i < (byte)p->length; i += p->info[i] + 2) { in getChannel()
7403 static void add_ie(PLCI *plci, byte code, byte *p, word p_length) in add_ie()
7418 plci->RBuffer[plci->req_in++] = (byte)p_length; in add_ie()
7429 static void add_d(PLCI *plci, word length, byte *p) in add_d()
7474 byte cai[256]; in add_b1()
7475 byte resource[] = {5, 9, 13, 12, 16, 39, 9, 17, 17, 18}; in add_b1()
7476 byte voice_cai[] = "\x06\x14\x00\x00\x00\x00\x08"; in add_b1()
7754 cai[7] |= (byte) d; /* line taking options */ in add_b1()
7755 cai[9] |= (byte)(d >> 8); /* modulation options */ in add_b1()
7756 cai[++i] = (byte)(d >> 16); /* vown modulation options */ in add_b1()
7757 cai[++i] = (byte)(d >> 24); in add_b1()
7761 cai[10] |= (byte) d; /* disabled modulations mask */ in add_b1()
7762 cai[11] |= (byte)(d >> 8); in add_b1()
7766 cai[12] = (byte) d; /* enabled modulations mask */ in add_b1()
7767 cai[++i] = (byte)(d >> 8); /* vown enabled modulations */ in add_b1()
7768 cai[++i] = (byte)(d >> 16); in add_b1()
7769 cai[++i] = (byte)(d >> 24); in add_b1()
7794 cai[23] = (byte)(-((short) w)); /* transmit level */ in add_b1()
7798 cai[22] |= (byte) w; /* info options mask */ in add_b1()
7799 cai[21] |= (byte)(w >> 8); /* disabled symbol rates */ in add_b1()
7817 cai[i] = (byte)(mdm_cfg_v18[n].length); in add_b1()
7824 cai[0] = (byte)(i - 1); in add_b1()
7936 byte pos, len; in add_b23()
7937 byte SAPI = 0x40; /* default SAPI 16 for x.31 */ in add_b23()
7946 static byte llc[3] = {2,0,0}; in add_b23()
7947 static byte dlc[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; in add_b23()
7948 static byte nlc[256]; in add_b23()
7949 static byte lli[12] = {1,1}; in add_b23()
7951 const byte llc2_out[] = {1,2,4,6,2,0,0,0, X75_V42BIS,V120_L2,V120_V42BIS,V120_L2,6}; in add_b23()
7952 const byte llc2_in[] = {1,3,4,6,3,0,0,0, X75_V42BIS,V120_L2,V120_V42BIS,V120_L2,6}; in add_b23()
7954 const byte llc3[] = {4,3,2,2,6,6,0}; in add_b23()
7955 const byte header[] = {0,2,3,3,0,0,0}; in add_b23()
7978 lli[2] = (byte)(plci->rx_dma_descriptor - 1); in add_b23()
7979 lli[3] = (byte)plci->rx_dma_magic; in add_b23()
7980 lli[4] = (byte)(plci->rx_dma_magic >> 8); in add_b23()
7981 lli[5] = (byte)(plci->rx_dma_magic >> 16); in add_b23()
7982 lli[6] = (byte)(plci->rx_dma_magic >> 24); in add_b23()
8055 plci->B2_prot = (byte) GET_WORD(bp_parms[1].info); in add_b23()
8056 plci->B3_prot = (byte) GET_WORD(bp_parms[2].info); in add_b23()
8070 dlc[0] = (byte)(8 + bp_parms[4].length); in add_b23()
8074 nlc[0] = (byte)(bp_parms[5].length); in add_b23()
8104 plci->B2_prot = (byte)GET_WORD(bp_parms[1].info); in add_b23()
8105 plci->B3_prot = (byte)GET_WORD(bp_parms[2].info); in add_b23()
8155 ((T30_INFO *)&nlc[1])->rate_div_2400 = (byte)(GET_WORD(&b1_config->info[1]) / 2400); in add_b23()
8227 dlc[3] = (byte)((b2_config->info[2] << 3) | ((b2_config->info[1] >> 5) & 0x04)); in add_b23()
8228 dlc[4] = (byte)((b2_config->info[1] << 1) | 0x01); in add_b23()
8234 dlc[5] = (byte)(b2_config->info[3] - 1); in add_b23()
8301 dlc[0] = (byte)(b2_config_parms[4].length + 6); in add_b23()
8309 dlc[5] = (byte)(b2_config->info[3] - 1); in add_b23()
8356 i = GET_WORD((byte *)(b3_config_parms[0].info)); in add_b23()
8357 ((T30_INFO *)&nlc[1])->resolution = (byte)(((i & 0x0001) || in add_b23()
8358 …((plci->B3_prot == 4) && (((byte)(GET_WORD((byte *)b3_config_parms[1].info))) != 5))) ? T30_RESOLU… in add_b23()
8359 ((T30_INFO *)&nlc[1])->data_format = (byte)(GET_WORD((byte *)b3_config_parms[1].info)); in add_b23()
8403 ((T30_INFO *)&nlc[1])->station_id[i] = ((byte *)b3_config_parms[2].info)[1 + i]; in add_b23()
8415 … pos = (byte)(fax_head_line_time(&(((T30_INFO *)&nlc[1])->station_id[T30_MAX_STATION_ID_LENGTH]))); in add_b23()
8424 len = (byte)b3_config_parms[2].length; in add_b23()
8430 …nlc[1 + offsetof(T30_INFO, station_id) + T30_MAX_STATION_ID_LENGTH + pos++] = ((byte *)b3_config_p… in add_b23()
8437 len = (byte)b3_config_parms[3].length; in add_b23()
8439 len = (byte)(CAPI_MAX_HEAD_LINE_SPACE - pos); in add_b23()
8440 ((T30_INFO *)&nlc[1])->head_line_len = (byte)(pos + len); in add_b23()
8441 nlc[0] += (byte)(pos + len); in add_b23()
8443 …nlc[1 + offsetof(T30_INFO, station_id) + T30_MAX_STATION_ID_LENGTH + pos++] = ((byte *)b3_config_… in add_b23()
8451 && (GET_WORD((byte *)b3_config_parms[1].info) & 0x8000)) /* Private SUB/SEP/PWD enable */ in add_b23()
8456 …&& (GET_WORD((byte *)b3_config_parms[1].info) & 0x4000)) /* Private non-standard facilities enable… in add_b23()
8507 nlc[++len] = (byte)(b3_config_parms[4].length); in add_b23()
8572 static byte lli[12] = {1,1}; in add_modem_b23()
8573 static byte llc[3] = {2,0,0}; in add_modem_b23()
8574 static byte dlc[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; in add_modem_b23()
8595 plci->B2_prot = (byte) GET_WORD(bp_parms[1].info); in add_modem_b23()
8596 plci->B3_prot = (byte) GET_WORD(bp_parms[2].info); in add_modem_b23()
8628 lli[2] = (byte)(plci->rx_dma_descriptor - 1); in add_modem_b23()
8629 lli[3] = (byte)plci->rx_dma_magic; in add_modem_b23()
8630 lli[4] = (byte)(plci->rx_dma_magic >> 8); in add_modem_b23()
8631 lli[5] = (byte)(plci->rx_dma_magic >> 16); in add_modem_b23()
8632 lli[6] = (byte)(plci->rx_dma_magic >> 24); in add_modem_b23()
8696 dlc[0] = (byte)(i - 1); in add_modem_b23()
8707 static void sig_req(PLCI *plci, byte req, byte Id) in sig_req()
8729 static void nl_req_ncci(PLCI *plci, byte req, byte ncci) in nl_req_ncci()
8737 ncci_remove(plci, 0, (byte)(ncci != 0)); in nl_req_ncci()
8844 plci->NL.Req = plci->nl_req = (byte)((data->Flags & 0x07) << 4 | N_DATA); in send_data()
8851 plci->NL.Req = plci->nl_req = (byte)N_UDATA; in send_data()
8854 plci->NL.Req = plci->nl_req = (byte)N_BDATA; in send_data()
8857 plci->NL.Req = plci->nl_req = (byte)((data->Flags & 0x07) << 4 | N_DATA); in send_data()
8890 byte activnotifiedcalls = 0; in listen_check()
8929 static void IndParse(PLCI *plci, word *parms_id, byte **parms, byte multiIEsize) in IndParse()
8932 byte w; in IndParse()
8933 byte wlen; in IndParse()
8934 byte codeset, lock; in IndParse()
8935 byte *in; in IndParse()
8946 parms[i] = (byte *)""; in IndParse()
8950 parms[i] = (byte *)""; in IndParse()
8964 wlen = (byte)(in[ploc + 1] + 1); in IndParse()
8973 if (!(codeset & 0x08)) lock = (byte)(codeset & 7); in IndParse()
8995 in[ploc + 0] = (byte)(in[ploc + 1] + 1); in IndParse()
8996 in[ploc + 1] = (byte)(in[ploc + 2] & 0x7f); in IndParse()
9014 static byte ie_compare(byte *ie1, byte *ie2) in ie_compare()
9023 static word find_cip(DIVA_CAPI_ADAPTER *a, byte *bc, byte *hlc) in find_cip()
9037 static byte AddInfo(byte **add_i, in AddInfo()
9038 byte **fty_i, in AddInfo()
9039 byte *esc_chi, in AddInfo()
9040 byte *facility) in AddInfo()
9042 byte i; in AddInfo()
9043 byte j; in AddInfo()
9044 byte k; in AddInfo()
9045 byte flen; in AddInfo()
9046 byte len = 0; in AddInfo()
9052 add_i[0] = (byte *)"\x02\x02\x00"; /* use neither b nor d channel */ in AddInfo()
9057 add_i[0] = (byte *)""; in AddInfo()
9061 add_i[3] = (byte *)""; in AddInfo()
9091 static void SetVoiceChannel(PLCI *plci, byte *chi, DIVA_CAPI_ADAPTER *a) in SetVoiceChannel()
9093 byte voice_chi[] = "\x02\x18\x01"; in SetVoiceChannel()
9094 byte channel; in SetVoiceChannel()
9123 byte hook_listen) in AdvCodecSupport()
9488 static byte plci_nl_busy(PLCI *plci) in plci_nl_busy()
9505 byte send_mask;
9506 byte listen_mask;
9507 byte character;
9508 byte code;
9590 static void dtmf_enable_receiver(PLCI *plci, byte enable_mask) in dtmf_enable_receiver()
9623 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in dtmf_enable_receiver()
9628 static void dtmf_send_digits(PLCI *plci, byte *digit_buffer, word digit_count) in dtmf_send_digits()
9656 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in dtmf_send_digits()
9701 static word dtmf_save_config(dword Id, PLCI *plci, byte Rc) in dtmf_save_config()
9711 static word dtmf_restore_config(dword Id, PLCI *plci, byte Rc) in dtmf_restore_config()
9748 static void dtmf_command(dword Id, PLCI *plci, byte Rc) in dtmf_command()
9751 byte mask; in dtmf_command()
9752 byte result[4]; in dtmf_command()
9796 dtmf_enable_receiver(plci, (byte)(plci->dtmf_rec_active | mask)); in dtmf_command()
9919 static byte dtmf_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API… in dtmf_request()
9923 byte mask; in dtmf_request()
9925 byte result[40]; in dtmf_request()
10119 byte result[4]; in dtmf_confirmation()
10137 static void dtmf_indication(dword Id, PLCI *plci, byte *msg, word length) in dtmf_indication()
10177 msg[0] = (byte) n; in dtmf_indication()
10190 byte parameter_buffer[DTMF_PARAMETER_BUFFER_SIZE + 2]; in dtmf_parameter_write()
10226 static word dtmf_parameter_save_config(dword Id, PLCI *plci, byte Rc) in dtmf_parameter_save_config()
10236 static word dtmf_parameter_restore_config(dword Id, PLCI *plci, byte Rc) in dtmf_parameter_restore_config()
10293 static byte chi_to_channel(byte *chi, dword *pchannelmap) in chi_to_channel()
10298 byte excl; in chi_to_channel()
10299 byte ofs; in chi_to_channel()
10300 byte ch; in chi_to_channel()
10353 if ((byte)(chi[0] - p) > 30) return 0xfe; in chi_to_channel()
10369 return (byte)(excl | ch); in chi_to_channel()
10392 static void mixer_set_bchannel_id_esc(PLCI *plci, byte bchannel_id) in mixer_set_bchannel_id_esc()
10396 byte old_id; in mixer_set_bchannel_id_esc()
10447 static void mixer_set_bchannel_id(PLCI *plci, byte *chi) in mixer_set_bchannel_id()
10451 byte ch, old_id; in mixer_set_bchannel_id()
10759 byte mask;
10760 byte line_flags;
10771 byte from_ch;
10772 byte to_ch;
10773 byte mask;
10774 byte xconnect_override;
10815 static byte mixer_swapped_index_bri[] =
10857 byte mask;
10858 byte from_pc;
10859 byte to_pc;
10873 byte *p; in xconnect_query_addresses()
10892 *(p++) = (byte) w; in xconnect_query_addresses()
10893 *(p++) = (byte)(w >> 8); in xconnect_query_addresses()
10895 *(p++) = (byte) w; in xconnect_query_addresses()
10896 *(p++) = (byte)(w >> 8); in xconnect_query_addresses()
10901 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in xconnect_query_addresses()
10918 static byte xconnect_write_coefs_process(dword Id, PLCI *plci, byte Rc) in xconnect_write_coefs_process()
10923 byte *p; in xconnect_write_coefs_process()
10925 byte ch_map[MIXER_CHANNELS_BRI]; in xconnect_write_coefs_process()
11012 *(p++) = (byte) d; in xconnect_write_coefs_process()
11013 *(p++) = (byte)(d >> 8); in xconnect_write_coefs_process()
11014 *(p++) = (byte)(d >> 16); in xconnect_write_coefs_process()
11015 *(p++) = (byte)(d >> 24); in xconnect_write_coefs_process()
11017 *(p++) = (byte) d; in xconnect_write_coefs_process()
11018 *(p++) = (byte)(d >> 8); in xconnect_write_coefs_process()
11019 *(p++) = (byte)(d >> 16); in xconnect_write_coefs_process()
11020 *(p++) = (byte)(d >> 24); in xconnect_write_coefs_process()
11022 *(p++) = (byte) d; in xconnect_write_coefs_process()
11023 *(p++) = (byte)(d >> 8); in xconnect_write_coefs_process()
11024 *(p++) = (byte)(d >> 16); in xconnect_write_coefs_process()
11025 *(p++) = (byte)(d >> 24); in xconnect_write_coefs_process()
11027 *(p++) = (byte) w; in xconnect_write_coefs_process()
11028 *(p++) = (byte)(w >> 8); in xconnect_write_coefs_process()
11033 *(p++) = (byte) w; in xconnect_write_coefs_process()
11034 *(p++) = (byte) 0; in xconnect_write_coefs_process()
11079 *(p++) = (byte) w; in xconnect_write_coefs_process()
11080 *(p++) = (byte)(w >> 8); in xconnect_write_coefs_process()
11095 *(p++) = (byte) w; in xconnect_write_coefs_process()
11096 *(p++) = (byte)(w >> 8); in xconnect_write_coefs_process()
11101 ch_map[j] = (byte)(j + 1); in xconnect_write_coefs_process()
11102 ch_map[j + 1] = (byte) j; in xconnect_write_coefs_process()
11106 ch_map[j] = (byte) j; in xconnect_write_coefs_process()
11107 ch_map[j + 1] = (byte)(j + 1); in xconnect_write_coefs_process()
11158 *(p++) = (byte) w; in xconnect_write_coefs_process()
11159 *(p++) = (byte)(w >> 8); in xconnect_write_coefs_process()
11162 *(p++) = (byte)((plci->li_bchannel_id - 1) | mixer_write_prog_pri[n].line_flags); in xconnect_write_coefs_process()
11174 …*(p++) = (byte)((plci->li_bchannel_id - 1) | MIXER_COEF_LINE_ROW_FLAG | mixer_write_prog_pri[n].li… in xconnect_write_coefs_process()
11201 *(p++) = (byte) w; in xconnect_write_coefs_process()
11202 *(p++) = (byte)(w >> 8); in xconnect_write_coefs_process()
11207 ch_map[j] = (byte)(j + 1); in xconnect_write_coefs_process()
11208 ch_map[j + 1] = (byte) j; in xconnect_write_coefs_process()
11212 ch_map[j] = (byte) j; in xconnect_write_coefs_process()
11213 ch_map[j + 1] = (byte)(j + 1); in xconnect_write_coefs_process()
11249 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in xconnect_write_coefs_process()
11256 static void mixer_notify_update(PLCI *plci, byte others) in mixer_notify_update()
11261 byte msg[sizeof(CAPI_MSG_HEADER) + 6]; in mixer_notify_update()
11406 static word mixer_save_config(dword Id, PLCI *plci, byte Rc) in mixer_save_config()
11431 static word mixer_restore_config(dword Id, PLCI *plci, byte Rc) in mixer_restore_config()
11514 static void mixer_command(dword Id, PLCI *plci, byte Rc) in mixer_command()
11638 dword plci_b_id, byte connect, dword li_flags) in li_update_connect()
11644 a_b = &(adapter[MapController((byte)(plci_b_id & 0x7f)) - 1]); in li_update_connect()
11781 dword plci_b_id, byte connect, dword li_flags) in li2_update_connect()
11787 a_b = &(adapter[MapController((byte)(plci_b_id & 0x7f)) - 1]); in li2_update_connect()
11910 dword plci_b_id, word plci_b_write_pos, byte *p_result) in li_check_plci_b()
11912 byte ctlr_b; in li_check_plci_b()
11926 ctlr_b = MapController((byte)(plci_b_id & 0x7f)); in li_check_plci_b()
11950 if (((byte)(plci_b_id & ~EXT_CONTROLLER)) != in li_check_plci_b()
11951 ((byte)(UnMapController(plci->adapter->Id) & ~EXT_CONTROLLER)) in li_check_plci_b()
11973 dword plci_b_id, word plci_b_write_pos, byte *p_result) in li2_check_plci_b()
11975 byte ctlr_b; in li2_check_plci_b()
11989 ctlr_b = MapController((byte)(plci_b_id & 0x7f)); in li2_check_plci_b()
12013 if (((byte)(plci_b_id & ~EXT_CONTROLLER)) != in li2_check_plci_b()
12014 ((byte)(UnMapController(plci->adapter->Id) & ~EXT_CONTROLLER)) in li2_check_plci_b()
12035 static byte mixer_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, AP… in mixer_request()
12046 byte result_buffer[32]; in mixer_request()
12047 byte *result; in mixer_request()
12249 result[0] = (byte)(result_pos - 1); in mixer_request()
12250 result[3] = (byte)(result_pos - 4); in mixer_request()
12251 result[6] = (byte)(result_pos - 7); in mixer_request()
12368 result[0] = (byte)(result_pos - 1); in mixer_request()
12369 result[3] = (byte)(result_pos - 4); in mixer_request()
12370 result[6] = (byte)(result_pos - 7); in mixer_request()
12441 byte result[12]; in mixer_indication_coefs_set()
12498 static void mixer_indication_xconnect_from(dword Id, PLCI *plci, byte *msg, word length) in mixer_indication_xconnect_from()
12541 static void mixer_indication_xconnect_to(dword Id, PLCI *plci, byte *msg, word length) in mixer_indication_xconnect_to()
12550 static byte mixer_notify_source_removed(PLCI *plci, dword plci_b_id) in mixer_notify_source_removed()
12627 byte parameter_buffer[6]; in ec_write_parameters()
12667 static word ec_save_config(dword Id, PLCI *plci, byte Rc) in ec_save_config()
12677 static word ec_restore_config(dword Id, PLCI *plci, byte Rc) in ec_restore_config()
12714 static void ec_command(dword Id, PLCI *plci, byte Rc) in ec_command()
12717 byte result[8]; in ec_command()
12827 static byte ec_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_P… in ec_request()
12832 byte result[16]; in ec_request()
13017 static void ec_indication(dword Id, PLCI *plci, byte *msg, word length) in ec_indication()
13019 byte result[8]; in ec_indication()
13077 byte *p; in adv_voice_write_coefs()
13080 byte ch_map[MIXER_CHANNELS_BRI]; in adv_voice_write_coefs()
13082 byte coef_buffer[ADV_VOICE_COEF_BUFFER_SIZE + 2]; in adv_voice_write_coefs()
13185 *(p++) = (byte) w; in adv_voice_write_coefs()
13186 *(p++) = (byte)(w >> 8); in adv_voice_write_coefs()
13189 ch_map[j] = (byte)(j + (plci->li_bchannel_id - 1)); in adv_voice_write_coefs()
13190 ch_map[j + 1] = (byte)(j + (2 - plci->li_bchannel_id)); in adv_voice_write_coefs()
13299 static word adv_voice_save_config(dword Id, PLCI *plci, byte Rc) in adv_voice_save_config()
13309 static word adv_voice_restore_config(dword Id, PLCI *plci, byte Rc) in adv_voice_restore_config()
13355 static byte b1_facilities_table[] =
13399 static word get_b1_facilities(PLCI *plci, byte b1_resource) in get_b1_facilities()
13431 static byte add_b1_facilities(PLCI *plci, byte b1_resource, word b1_facilities) in add_b1_facilities()
13433 byte b; in add_b1_facilities()
13536 static void adjust_b1_facilities(PLCI *plci, byte new_b1_resource, word new_b1_facilities) in adjust_b1_facilities()
13581 static word adjust_b_process(dword Id, PLCI *plci, byte Rc) in adjust_b_process()
13584 byte b1_resource; in adjust_b_process()
13670 (byte)((plci->adjust_b_mode & ADJUST_B_MODE_CONNECT) ? plci->adjust_b_ncci : 0)); in adjust_b_process()
13877 get_ncci(plci, (byte)(Id >> 16), plci->adjust_b_ncci); in adjust_b_process()
13955 static void adjust_b_restore(dword Id, PLCI *plci, byte Rc) in adjust_b_restore()
14001 static void reset_b3_command(dword Id, PLCI *plci, byte Rc) in reset_b3_command()
14041 static void select_b_command(dword Id, PLCI *plci, byte Rc) in select_b_command()
14045 byte esc_chi[3]; in select_b_command()
14100 static void fax_connect_ack_command(dword Id, PLCI *plci, byte Rc) in fax_connect_ack_command()
14124 plci->NL.Req = plci->nl_req = (byte) N_CONNECT_ACK; in fax_connect_ack_command()
14147 static void fax_edata_ack_command(dword Id, PLCI *plci, byte Rc) in fax_edata_ack_command()
14171 plci->NL.Req = plci->nl_req = (byte) N_EDATA; in fax_edata_ack_command()
14185 static void fax_connect_info_command(dword Id, PLCI *plci, byte Rc) in fax_connect_info_command()
14211 plci->NL.Req = plci->nl_req = (byte) N_EDATA; in fax_connect_info_command()
14236 static void fax_adjust_b23_command(dword Id, PLCI *plci, byte Rc) in fax_adjust_b23_command()
14284 static void fax_disconnect_command(dword Id, PLCI *plci, byte Rc) in fax_disconnect_command()
14327 static void rtp_connect_b3_req_command(dword Id, PLCI *plci, byte Rc) in rtp_connect_b3_req_command()
14370 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in rtp_connect_b3_req_command()
14380 static void rtp_connect_b3_res_command(dword Id, PLCI *plci, byte Rc) in rtp_connect_b3_res_command()
14400 nl_req_ncci(plci, N_CONNECT_ACK, (byte)(Id >> 16)); in rtp_connect_b3_res_command()
14421 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in rtp_connect_b3_res_command()
14431 static void hold_save_command(dword Id, PLCI *plci, byte Rc) in hold_save_command()
14433 byte SS_Ind[] = "\x05\x02\x00\x02\x00\x00"; /* Hold_Ind struct*/ in hold_save_command()
14472 static void retrieve_restore_command(dword Id, PLCI *plci, byte Rc) in retrieve_restore_command()
14474 byte SS_Ind[] = "\x05\x03\x00\x02\x00\x00"; /* Retrieve_Ind struct*/ in retrieve_restore_command()
14582 static void channel_x_on(PLCI *plci, byte ch) { in channel_x_on()
14589 static void channel_x_off(PLCI *plci, byte ch, byte flag) { in channel_x_off()
14598 static void channel_request_xon(PLCI *plci, byte ch) { in channel_request_xon()
14621 channel_request_xon(plci, (byte)i); in channel_xmit_extended_xon()
14666 byte ch; in channel_xmit_xon()
14671 if ((ch = (byte)find_channel_with_pending_x_on(a, plci)) == 0) { in channel_xmit_xon()
14677 plci->NL.Req = plci->nl_req = (byte)N_XON; in channel_xmit_xon()
14687 static int channel_can_xon(PLCI *plci, byte ch) { in channel_can_xon()
14721 static word CPN_filter_ok(byte *cpn, DIVA_CAPI_ADAPTER *a, word offset) in CPN_filter_ok()
14903 static void VSwitchReqInd(PLCI *plci, dword Id, byte **parms) in VSwitchReqInd()