diff options
-rw-r--r-- | drivers/isdn/hardware/eicon/capifunc.c | 4 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/di.c | 16 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/message.c | 360 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/os_pri.c | 4 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/platform.h | 8 |
5 files changed, 192 insertions, 200 deletions
diff --git a/drivers/isdn/hardware/eicon/capifunc.c b/drivers/isdn/hardware/eicon/capifunc.c index 0afd7633556d..ff284aeb8fbb 100644 --- a/drivers/isdn/hardware/eicon/capifunc.c +++ b/drivers/isdn/hardware/eicon/capifunc.c | |||
@@ -187,7 +187,7 @@ static diva_card *find_card_by_ctrl(word controller) | |||
187 | */ | 187 | */ |
188 | void *TransmitBufferSet(APPL * appl, dword ref) | 188 | void *TransmitBufferSet(APPL * appl, dword ref) |
189 | { | 189 | { |
190 | appl->xbuffer_used[ref] = TRUE; | 190 | appl->xbuffer_used[ref] = true; |
191 | DBG_PRV1(("%d:xbuf_used(%d)", appl->Id, ref + 1)) | 191 | DBG_PRV1(("%d:xbuf_used(%d)", appl->Id, ref + 1)) |
192 | return (void *) ref; | 192 | return (void *) ref; |
193 | } | 193 | } |
@@ -202,7 +202,7 @@ void *TransmitBufferGet(APPL * appl, void *p) | |||
202 | 202 | ||
203 | void TransmitBufferFree(APPL * appl, void *p) | 203 | void TransmitBufferFree(APPL * appl, void *p) |
204 | { | 204 | { |
205 | appl->xbuffer_used[(dword) p] = FALSE; | 205 | appl->xbuffer_used[(dword) p] = false; |
206 | DBG_PRV1(("%d:xbuf_free(%d)", appl->Id, ((dword) p) + 1)) | 206 | DBG_PRV1(("%d:xbuf_free(%d)", appl->Id, ((dword) p) + 1)) |
207 | } | 207 | } |
208 | 208 | ||
diff --git a/drivers/isdn/hardware/eicon/di.c b/drivers/isdn/hardware/eicon/di.c index e1df8d98c311..ce8df3878908 100644 --- a/drivers/isdn/hardware/eicon/di.c +++ b/drivers/isdn/hardware/eicon/di.c | |||
@@ -173,16 +173,16 @@ void pr_out(ADAPTER * a) | |||
173 | xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->MInd, | 173 | xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->MInd, |
174 | a->IdTypeTable[this->No]); | 174 | a->IdTypeTable[this->No]); |
175 | a->ram_out(a, &ReqOut->Req, this->MInd); | 175 | a->ram_out(a, &ReqOut->Req, this->MInd); |
176 | more = TRUE; | 176 | more = true; |
177 | } | 177 | } |
178 | else { | 178 | else { |
179 | xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->Req, | 179 | xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->Req, |
180 | a->IdTypeTable[this->No]); | 180 | a->IdTypeTable[this->No]); |
181 | this->More |=XMOREF; | 181 | this->More |=XMOREF; |
182 | a->ram_out(a, &ReqOut->Req, this->Req); | 182 | a->ram_out(a, &ReqOut->Req, this->Req); |
183 | more = FALSE; | 183 | more = false; |
184 | if (a->FlowControlIdTable[this->ReqCh] == this->Id) | 184 | if (a->FlowControlIdTable[this->ReqCh] == this->Id) |
185 | a->FlowControlSkipTable[this->ReqCh] = TRUE; | 185 | a->FlowControlSkipTable[this->ReqCh] = true; |
186 | /* | 186 | /* |
187 | Note that remove request was sent to the card | 187 | Note that remove request was sent to the card |
188 | */ | 188 | */ |
@@ -311,7 +311,7 @@ byte pr_dpc(ADAPTER * a) | |||
311 | /* are marked RNR */ | 311 | /* are marked RNR */ |
312 | if(RNRId && RNRId==a->ram_in(a, &IndIn->IndId)) { | 312 | if(RNRId && RNRId==a->ram_in(a, &IndIn->IndId)) { |
313 | a->ram_out(a, &IndIn->Ind, 0); | 313 | a->ram_out(a, &IndIn->Ind, 0); |
314 | a->ram_out(a, &IndIn->RNR, TRUE); | 314 | a->ram_out(a, &IndIn->RNR, true); |
315 | } | 315 | } |
316 | else { | 316 | else { |
317 | Ind = a->ram_in(a, &IndIn->Ind); | 317 | Ind = a->ram_in(a, &IndIn->Ind); |
@@ -331,7 +331,7 @@ byte pr_dpc(ADAPTER * a) | |||
331 | dtrc(dprintf("RNR")); | 331 | dtrc(dprintf("RNR")); |
332 | a->ram_out(a, &IndIn->Ind, 0); | 332 | a->ram_out(a, &IndIn->Ind, 0); |
333 | RNRId = a->ram_in(a, &IndIn->IndId); | 333 | RNRId = a->ram_in(a, &IndIn->IndId); |
334 | a->ram_out(a, &IndIn->RNR, TRUE); | 334 | a->ram_out(a, &IndIn->RNR, true); |
335 | } | 335 | } |
336 | } | 336 | } |
337 | } | 337 | } |
@@ -340,7 +340,7 @@ byte pr_dpc(ADAPTER * a) | |||
340 | } | 340 | } |
341 | a->ram_out(a, &PR_RAM->IndOutput, 0); | 341 | a->ram_out(a, &PR_RAM->IndOutput, 0); |
342 | } | 342 | } |
343 | return FALSE; | 343 | return false; |
344 | } | 344 | } |
345 | byte scom_test_int(ADAPTER * a) | 345 | byte scom_test_int(ADAPTER * a) |
346 | { | 346 | { |
@@ -399,7 +399,7 @@ byte isdn_rc(ADAPTER * a, | |||
399 | return (0); | 399 | return (0); |
400 | } | 400 | } |
401 | if (extended_info_type == DIVA_RC_TYPE_REMOVE_COMPLETE) | 401 | if (extended_info_type == DIVA_RC_TYPE_REMOVE_COMPLETE) |
402 | a->RcExtensionSupported = TRUE; | 402 | a->RcExtensionSupported = true; |
403 | } | 403 | } |
404 | a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_REMOVE_PENDING; | 404 | a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_REMOVE_PENDING; |
405 | a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_NO_RC_CANCELLING; | 405 | a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_NO_RC_CANCELLING; |
@@ -428,7 +428,7 @@ byte isdn_rc(ADAPTER * a, | |||
428 | } | 428 | } |
429 | if (Rc==OK_FC) { | 429 | if (Rc==OK_FC) { |
430 | a->FlowControlIdTable[Ch] = Id; | 430 | a->FlowControlIdTable[Ch] = Id; |
431 | a->FlowControlSkipTable[Ch] = FALSE; | 431 | a->FlowControlSkipTable[Ch] = false; |
432 | this->Rc = Rc; | 432 | this->Rc = Rc; |
433 | this->More &= ~(XBUSY | XMOREC); | 433 | this->More &= ~(XBUSY | XMOREC); |
434 | this->complete=0xff; | 434 | this->complete=0xff; |
diff --git a/drivers/isdn/hardware/eicon/message.c b/drivers/isdn/hardware/eicon/message.c index f9b00f19afd2..ab1c112dfb7c 100644 --- a/drivers/isdn/hardware/eicon/message.c +++ b/drivers/isdn/hardware/eicon/message.c | |||
@@ -253,7 +253,7 @@ extern APPL * application; | |||
253 | 253 | ||
254 | 254 | ||
255 | 255 | ||
256 | static byte remove_started = FALSE; | 256 | static byte remove_started = false; |
257 | static PLCI dummy_plci; | 257 | static PLCI dummy_plci; |
258 | 258 | ||
259 | 259 | ||
@@ -456,12 +456,12 @@ word api_put(APPL * appl, CAPI_MSG * msg) | |||
456 | 456 | ||
457 | return _QUEUE_FULL; | 457 | return _QUEUE_FULL; |
458 | } | 458 | } |
459 | c = FALSE; | 459 | c = false; |
460 | if ((((byte *) msg) < ((byte *)(plci->msg_in_queue))) | 460 | if ((((byte *) msg) < ((byte *)(plci->msg_in_queue))) |
461 | || (((byte *) msg) >= ((byte *)(plci->msg_in_queue)) + sizeof(plci->msg_in_queue))) | 461 | || (((byte *) msg) >= ((byte *)(plci->msg_in_queue)) + sizeof(plci->msg_in_queue))) |
462 | { | 462 | { |
463 | if (plci->msg_in_write_pos != plci->msg_in_read_pos) | 463 | if (plci->msg_in_write_pos != plci->msg_in_read_pos) |
464 | c = TRUE; | 464 | c = true; |
465 | } | 465 | } |
466 | if (msg->header.command == _DATA_B3_R) | 466 | if (msg->header.command == _DATA_B3_R) |
467 | { | 467 | { |
@@ -506,13 +506,13 @@ word api_put(APPL * appl, CAPI_MSG * msg) | |||
506 | 506 | ||
507 | return _QUEUE_FULL; | 507 | return _QUEUE_FULL; |
508 | } | 508 | } |
509 | c = TRUE; | 509 | c = true; |
510 | } | 510 | } |
511 | } | 511 | } |
512 | else | 512 | else |
513 | { | 513 | { |
514 | if (plci->req_in || plci->internal_command) | 514 | if (plci->req_in || plci->internal_command) |
515 | c = TRUE; | 515 | c = true; |
516 | else | 516 | else |
517 | { | 517 | { |
518 | plci->command = msg->header.command; | 518 | plci->command = msg->header.command; |
@@ -626,10 +626,10 @@ word api_parse(byte * msg, word length, byte * format, API_PARSE * parms) | |||
626 | break; | 626 | break; |
627 | } | 627 | } |
628 | 628 | ||
629 | if(p>length) return TRUE; | 629 | if(p>length) return true; |
630 | } | 630 | } |
631 | if(parms) parms[i].info = NULL; | 631 | if(parms) parms[i].info = NULL; |
632 | return FALSE; | 632 | return false; |
633 | } | 633 | } |
634 | 634 | ||
635 | void api_save_msg(API_PARSE *in, byte *format, API_SAVE *out) | 635 | void api_save_msg(API_PARSE *in, byte *format, API_SAVE *out) |
@@ -687,7 +687,7 @@ word api_remove_start(void) | |||
687 | word j; | 687 | word j; |
688 | 688 | ||
689 | if(!remove_started) { | 689 | if(!remove_started) { |
690 | remove_started = TRUE; | 690 | remove_started = true; |
691 | for(i=0;i<max_adapter;i++) { | 691 | for(i=0;i<max_adapter;i++) { |
692 | if(adapter[i].request) { | 692 | if(adapter[i].request) { |
693 | for(j=0;j<adapter[i].max_plci;j++) { | 693 | for(j=0;j<adapter[i].max_plci;j++) { |
@@ -1080,7 +1080,7 @@ static void plci_remove(PLCI * plci) | |||
1080 | send_req(plci); | 1080 | send_req(plci); |
1081 | } | 1081 | } |
1082 | } | 1082 | } |
1083 | ncci_remove (plci, 0, FALSE); | 1083 | ncci_remove (plci, 0, false); |
1084 | plci_free_msg_in_queue (plci); | 1084 | plci_free_msg_in_queue (plci); |
1085 | 1085 | ||
1086 | plci->channels = 0; | 1086 | plci->channels = 0; |
@@ -1226,7 +1226,7 @@ byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1226 | Id = ((word)1<<8)|a->Id; | 1226 | Id = ((word)1<<8)|a->Id; |
1227 | sendf(appl,_CONNECT_R|CONFIRM,Id,Number,"w",0); | 1227 | sendf(appl,_CONNECT_R|CONFIRM,Id,Number,"w",0); |
1228 | sendf(appl, _DISCONNECT_I, Id, 0, "w", _L1_ERROR); | 1228 | sendf(appl, _DISCONNECT_I, Id, 0, "w", _L1_ERROR); |
1229 | return FALSE; | 1229 | return false; |
1230 | } | 1230 | } |
1231 | Info = _OUT_OF_PLCI; | 1231 | Info = _OUT_OF_PLCI; |
1232 | if((i=get_plci(a))) | 1232 | if((i=get_plci(a))) |
@@ -1330,7 +1330,7 @@ byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1330 | plci->command = _CONNECT_R; | 1330 | plci->command = _CONNECT_R; |
1331 | plci->number = Number; | 1331 | plci->number = Number; |
1332 | /* x.31 or D-ch free SAPI in LinkLayer? */ | 1332 | /* x.31 or D-ch free SAPI in LinkLayer? */ |
1333 | if(ch==1 && LinkLayer!=3 && LinkLayer!=12) noCh = TRUE; | 1333 | if(ch==1 && LinkLayer!=3 && LinkLayer!=12) noCh = true; |
1334 | if((ch==0 || ch==2 || noCh || ch==3 || ch==4) && !Info) | 1334 | if((ch==0 || ch==2 || noCh || ch==3 || ch==4) && !Info) |
1335 | { | 1335 | { |
1336 | /* B-channel used for B3 connections (ch==0), or no B channel */ | 1336 | /* B-channel used for B3 connections (ch==0), or no B channel */ |
@@ -1381,7 +1381,7 @@ byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1381 | plci->command = 0; | 1381 | plci->command = 0; |
1382 | dbug(1,dprintf("Spoof")); | 1382 | dbug(1,dprintf("Spoof")); |
1383 | send_req(plci); | 1383 | send_req(plci); |
1384 | return FALSE; | 1384 | return false; |
1385 | } | 1385 | } |
1386 | if(ch==4)add_p(plci,CHI,p_chi); | 1386 | if(ch==4)add_p(plci,CHI,p_chi); |
1387 | add_s(plci,CPN,&parms[1]); | 1387 | add_s(plci,CPN,&parms[1]); |
@@ -1395,11 +1395,11 @@ byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1395 | plci->appl = appl; | 1395 | plci->appl = appl; |
1396 | sig_req(plci,LISTEN_REQ,0); | 1396 | sig_req(plci,LISTEN_REQ,0); |
1397 | send_req(plci); | 1397 | send_req(plci); |
1398 | return FALSE; | 1398 | return false; |
1399 | } | 1399 | } |
1400 | } | 1400 | } |
1401 | send_req(plci); | 1401 | send_req(plci); |
1402 | return FALSE; | 1402 | return false; |
1403 | } | 1403 | } |
1404 | plci->Id = 0; | 1404 | plci->Id = 0; |
1405 | } | 1405 | } |
@@ -1571,7 +1571,7 @@ byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1571 | byte connect_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1571 | byte connect_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) |
1572 | { | 1572 | { |
1573 | dbug(1,dprintf("connect_a_res")); | 1573 | dbug(1,dprintf("connect_a_res")); |
1574 | return FALSE; | 1574 | return false; |
1575 | } | 1575 | } |
1576 | 1576 | ||
1577 | byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1577 | byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) |
@@ -1624,9 +1624,9 @@ byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
1624 | } | 1624 | } |
1625 | } | 1625 | } |
1626 | 1626 | ||
1627 | if(!appl) return FALSE; | 1627 | if(!appl) return false; |
1628 | sendf(appl, _DISCONNECT_R|CONFIRM, Id, Number, "w",Info); | 1628 | sendf(appl, _DISCONNECT_R|CONFIRM, Id, Number, "w",Info); |
1629 | return FALSE; | 1629 | return false; |
1630 | } | 1630 | } |
1631 | 1631 | ||
1632 | byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1632 | byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) |
@@ -1702,7 +1702,7 @@ byte listen_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, A | |||
1702 | "w",Info); | 1702 | "w",Info); |
1703 | 1703 | ||
1704 | if (a) listen_check(a); | 1704 | if (a) listen_check(a); |
1705 | return FALSE; | 1705 | return false; |
1706 | } | 1706 | } |
1707 | 1707 | ||
1708 | byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1708 | byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) |
@@ -1739,7 +1739,7 @@ byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APP | |||
1739 | add_s(plci,KEY,&ai_parms[1]); | 1739 | add_s(plci,KEY,&ai_parms[1]); |
1740 | sig_req(plci,INFO_REQ,0); | 1740 | sig_req(plci,INFO_REQ,0); |
1741 | send_req(plci); | 1741 | send_req(plci); |
1742 | return FALSE; | 1742 | return false; |
1743 | } | 1743 | } |
1744 | 1744 | ||
1745 | if(plci->State && ai_parms[2].length) | 1745 | if(plci->State && ai_parms[2].length) |
@@ -1769,7 +1769,7 @@ byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APP | |||
1769 | if((i=get_plci(a))) | 1769 | if((i=get_plci(a))) |
1770 | { | 1770 | { |
1771 | rc_plci = &a->plci[i-1]; | 1771 | rc_plci = &a->plci[i-1]; |
1772 | appl->NullCREnable = TRUE; | 1772 | appl->NullCREnable = true; |
1773 | rc_plci->internal_command = C_NCR_FAC_REQ; | 1773 | rc_plci->internal_command = C_NCR_FAC_REQ; |
1774 | rc_plci->appl = appl; | 1774 | rc_plci->appl = appl; |
1775 | add_p(rc_plci,CAI,"\x01\x80"); | 1775 | add_p(rc_plci,CAI,"\x01\x80"); |
@@ -1788,7 +1788,7 @@ byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APP | |||
1788 | add_ai(rc_plci, &msg[1]); | 1788 | add_ai(rc_plci, &msg[1]); |
1789 | sig_req(rc_plci,NCR_FACILITY,0); | 1789 | sig_req(rc_plci,NCR_FACILITY,0); |
1790 | send_req(rc_plci); | 1790 | send_req(rc_plci); |
1791 | return FALSE; | 1791 | return false; |
1792 | /* for application controlled supplementary services */ | 1792 | /* for application controlled supplementary services */ |
1793 | } | 1793 | } |
1794 | } | 1794 | } |
@@ -1811,13 +1811,13 @@ byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APP | |||
1811 | Number, | 1811 | Number, |
1812 | "w",Info); | 1812 | "w",Info); |
1813 | } | 1813 | } |
1814 | return FALSE; | 1814 | return false; |
1815 | } | 1815 | } |
1816 | 1816 | ||
1817 | byte info_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1817 | byte info_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) |
1818 | { | 1818 | { |
1819 | dbug(1,dprintf("info_res")); | 1819 | dbug(1,dprintf("info_res")); |
1820 | return FALSE; | 1820 | return false; |
1821 | } | 1821 | } |
1822 | 1822 | ||
1823 | byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1823 | byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) |
@@ -1828,7 +1828,7 @@ byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, AP | |||
1828 | dbug(1,dprintf("alert_req")); | 1828 | dbug(1,dprintf("alert_req")); |
1829 | 1829 | ||
1830 | Info = _WRONG_IDENTIFIER; | 1830 | Info = _WRONG_IDENTIFIER; |
1831 | ret = FALSE; | 1831 | ret = false; |
1832 | if(plci) { | 1832 | if(plci) { |
1833 | Info = _ALERT_IGNORED; | 1833 | Info = _ALERT_IGNORED; |
1834 | if(plci->State!=INC_CON_ALERT) { | 1834 | if(plci->State!=INC_CON_ALERT) { |
@@ -1922,7 +1922,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1922 | rplci->appl = appl; | 1922 | rplci->appl = appl; |
1923 | sig_req(rplci,S_SUPPORTED,0); | 1923 | sig_req(rplci,S_SUPPORTED,0); |
1924 | send_req(rplci); | 1924 | send_req(rplci); |
1925 | return FALSE; | 1925 | return false; |
1926 | break; | 1926 | break; |
1927 | 1927 | ||
1928 | case S_LISTEN: | 1928 | case S_LISTEN: |
@@ -1972,7 +1972,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1972 | add_s(plci,CAI,&ss_parms[1]); | 1972 | add_s(plci,CAI,&ss_parms[1]); |
1973 | sig_req(plci,CALL_HOLD,0); | 1973 | sig_req(plci,CALL_HOLD,0); |
1974 | send_req(plci); | 1974 | send_req(plci); |
1975 | return FALSE; | 1975 | return false; |
1976 | } | 1976 | } |
1977 | else Info = 0x3010; /* wrong state */ | 1977 | else Info = 0x3010; /* wrong state */ |
1978 | break; | 1978 | break; |
@@ -1997,13 +1997,13 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1997 | plci->internal_command = BLOCK_PLCI; | 1997 | plci->internal_command = BLOCK_PLCI; |
1998 | plci->command = 0; | 1998 | plci->command = 0; |
1999 | dbug(1,dprintf("Spoof")); | 1999 | dbug(1,dprintf("Spoof")); |
2000 | return FALSE; | 2000 | return false; |
2001 | } | 2001 | } |
2002 | else | 2002 | else |
2003 | { | 2003 | { |
2004 | sig_req(plci,CALL_RETRIEVE,0); | 2004 | sig_req(plci,CALL_RETRIEVE,0); |
2005 | send_req(plci); | 2005 | send_req(plci); |
2006 | return FALSE; | 2006 | return false; |
2007 | } | 2007 | } |
2008 | } | 2008 | } |
2009 | else Info = 0x3010; /* wrong state */ | 2009 | else Info = 0x3010; /* wrong state */ |
@@ -2123,7 +2123,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2123 | add_p(plci,CAI,cai); | 2123 | add_p(plci,CAI,cai); |
2124 | sig_req(plci,S_SERVICE,0); | 2124 | sig_req(plci,S_SERVICE,0); |
2125 | send_req(plci); | 2125 | send_req(plci); |
2126 | return FALSE; | 2126 | return false; |
2127 | } | 2127 | } |
2128 | else Info = 0x3010; /* wrong state */ | 2128 | else Info = 0x3010; /* wrong state */ |
2129 | break; | 2129 | break; |
@@ -2265,7 +2265,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2265 | add_p(rplci,CAI,cai); | 2265 | add_p(rplci,CAI,cai); |
2266 | sig_req(rplci,S_SERVICE,0); | 2266 | sig_req(rplci,S_SERVICE,0); |
2267 | send_req(rplci); | 2267 | send_req(rplci); |
2268 | return FALSE; | 2268 | return false; |
2269 | } | 2269 | } |
2270 | else | 2270 | else |
2271 | { | 2271 | { |
@@ -2291,14 +2291,14 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2291 | ss_parms[3].info[3] = (byte)GET_WORD(&(ss_parms[2].info[0])); | 2291 | ss_parms[3].info[3] = (byte)GET_WORD(&(ss_parms[2].info[0])); |
2292 | plci->command = 0; | 2292 | plci->command = 0; |
2293 | plci->internal_command = CD_REQ_PEND; | 2293 | plci->internal_command = CD_REQ_PEND; |
2294 | appl->CDEnable = TRUE; | 2294 | appl->CDEnable = true; |
2295 | cai[0] = 1; | 2295 | cai[0] = 1; |
2296 | cai[1] = CALL_DEFLECTION; | 2296 | cai[1] = CALL_DEFLECTION; |
2297 | add_p(plci,CAI,cai); | 2297 | add_p(plci,CAI,cai); |
2298 | add_p(plci,CPN,ss_parms[3].info); | 2298 | add_p(plci,CPN,ss_parms[3].info); |
2299 | sig_req(plci,S_SERVICE,0); | 2299 | sig_req(plci,S_SERVICE,0); |
2300 | send_req(plci); | 2300 | send_req(plci); |
2301 | return FALSE; | 2301 | return false; |
2302 | break; | 2302 | break; |
2303 | 2303 | ||
2304 | case S_CALL_FORWARDING_START: | 2304 | case S_CALL_FORWARDING_START: |
@@ -2337,7 +2337,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2337 | add_p(rplci,CPN,ss_parms[6].info); | 2337 | add_p(rplci,CPN,ss_parms[6].info); |
2338 | sig_req(rplci,S_SERVICE,0); | 2338 | sig_req(rplci,S_SERVICE,0); |
2339 | send_req(rplci); | 2339 | send_req(rplci); |
2340 | return FALSE; | 2340 | return false; |
2341 | break; | 2341 | break; |
2342 | 2342 | ||
2343 | case S_INTERROGATE_DIVERSION: | 2343 | case S_INTERROGATE_DIVERSION: |
@@ -2456,7 +2456,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2456 | 2456 | ||
2457 | sig_req(rplci,S_SERVICE,0); | 2457 | sig_req(rplci,S_SERVICE,0); |
2458 | send_req(rplci); | 2458 | send_req(rplci); |
2459 | return FALSE; | 2459 | return false; |
2460 | break; | 2460 | break; |
2461 | 2461 | ||
2462 | case S_MWI_ACTIVATE: | 2462 | case S_MWI_ACTIVATE: |
@@ -2472,7 +2472,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2472 | { | 2472 | { |
2473 | rplci = &a->plci[i-1]; | 2473 | rplci = &a->plci[i-1]; |
2474 | rplci->appl = appl; | 2474 | rplci->appl = appl; |
2475 | rplci->cr_enquiry=TRUE; | 2475 | rplci->cr_enquiry=true; |
2476 | add_p(rplci,CAI,"\x01\x80"); | 2476 | add_p(rplci,CAI,"\x01\x80"); |
2477 | add_p(rplci,UID,"\x06\x43\x61\x70\x69\x32\x30"); | 2477 | add_p(rplci,UID,"\x06\x43\x61\x70\x69\x32\x30"); |
2478 | sig_req(rplci,ASSIGN,DSIG_ID); | 2478 | sig_req(rplci,ASSIGN,DSIG_ID); |
@@ -2487,7 +2487,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2487 | else | 2487 | else |
2488 | { | 2488 | { |
2489 | rplci = plci; | 2489 | rplci = plci; |
2490 | rplci->cr_enquiry=FALSE; | 2490 | rplci->cr_enquiry=false; |
2491 | } | 2491 | } |
2492 | 2492 | ||
2493 | rplci->command = 0; | 2493 | rplci->command = 0; |
@@ -2509,7 +2509,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2509 | add_p(rplci,UID,ss_parms[10].info); /* Time */ | 2509 | add_p(rplci,UID,ss_parms[10].info); /* Time */ |
2510 | sig_req(rplci,S_SERVICE,0); | 2510 | sig_req(rplci,S_SERVICE,0); |
2511 | send_req(rplci); | 2511 | send_req(rplci); |
2512 | return FALSE; | 2512 | return false; |
2513 | 2513 | ||
2514 | case S_MWI_DEACTIVATE: | 2514 | case S_MWI_DEACTIVATE: |
2515 | if(api_parse(&parms->info[1],(word)parms->length,"wbwwss",ss_parms)) | 2515 | if(api_parse(&parms->info[1],(word)parms->length,"wbwwss",ss_parms)) |
@@ -2524,7 +2524,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2524 | { | 2524 | { |
2525 | rplci = &a->plci[i-1]; | 2525 | rplci = &a->plci[i-1]; |
2526 | rplci->appl = appl; | 2526 | rplci->appl = appl; |
2527 | rplci->cr_enquiry=TRUE; | 2527 | rplci->cr_enquiry=true; |
2528 | add_p(rplci,CAI,"\x01\x80"); | 2528 | add_p(rplci,CAI,"\x01\x80"); |
2529 | add_p(rplci,UID,"\x06\x43\x61\x70\x69\x32\x30"); | 2529 | add_p(rplci,UID,"\x06\x43\x61\x70\x69\x32\x30"); |
2530 | sig_req(rplci,ASSIGN,DSIG_ID); | 2530 | sig_req(rplci,ASSIGN,DSIG_ID); |
@@ -2539,7 +2539,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2539 | else | 2539 | else |
2540 | { | 2540 | { |
2541 | rplci = plci; | 2541 | rplci = plci; |
2542 | rplci->cr_enquiry=FALSE; | 2542 | rplci->cr_enquiry=false; |
2543 | } | 2543 | } |
2544 | 2544 | ||
2545 | rplci->command = 0; | 2545 | rplci->command = 0; |
@@ -2556,7 +2556,7 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2556 | add_p(rplci,OAD,ss_parms[5].info); /* Controlling User Number */ | 2556 | add_p(rplci,OAD,ss_parms[5].info); /* Controlling User Number */ |
2557 | sig_req(rplci,S_SERVICE,0); | 2557 | sig_req(rplci,S_SERVICE,0); |
2558 | send_req(rplci); | 2558 | send_req(rplci); |
2559 | return FALSE; | 2559 | return false; |
2560 | 2560 | ||
2561 | default: | 2561 | default: |
2562 | Info = 0x300E; /* not supported */ | 2562 | Info = 0x300E; /* not supported */ |
@@ -2597,13 +2597,13 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2597 | Id, | 2597 | Id, |
2598 | Number, | 2598 | Number, |
2599 | "wws",Info,selector,SSparms); | 2599 | "wws",Info,selector,SSparms); |
2600 | return FALSE; | 2600 | return false; |
2601 | } | 2601 | } |
2602 | 2602 | ||
2603 | byte facility_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 2603 | byte facility_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) |
2604 | { | 2604 | { |
2605 | dbug(1,dprintf("facility_res")); | 2605 | dbug(1,dprintf("facility_res")); |
2606 | return FALSE; | 2606 | return false; |
2607 | } | 2607 | } |
2608 | 2608 | ||
2609 | byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 2609 | byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -2649,7 +2649,7 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2649 | Id, | 2649 | Id, |
2650 | Number, | 2650 | Number, |
2651 | "w",Info); | 2651 | "w",Info); |
2652 | return FALSE; | 2652 | return false; |
2653 | } | 2653 | } |
2654 | plci->requested_options_conn = 0; | 2654 | plci->requested_options_conn = 0; |
2655 | 2655 | ||
@@ -2684,7 +2684,7 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2684 | || (fax_feature_bits & T30_FEATURE_BIT_MORE_DOCUMENTS)) | 2684 | || (fax_feature_bits & T30_FEATURE_BIT_MORE_DOCUMENTS)) |
2685 | { | 2685 | { |
2686 | len = (byte)(&(((T30_INFO *) 0)->universal_6)); | 2686 | len = (byte)(&(((T30_INFO *) 0)->universal_6)); |
2687 | fax_info_change = FALSE; | 2687 | fax_info_change = false; |
2688 | if (ncpi->length >= 4) | 2688 | if (ncpi->length >= 4) |
2689 | { | 2689 | { |
2690 | w = GET_WORD(&ncpi->info[3]); | 2690 | w = GET_WORD(&ncpi->info[3]); |
@@ -2693,7 +2693,7 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2693 | ((T30_INFO *)(plci->fax_connect_info_buffer))->resolution = | 2693 | ((T30_INFO *)(plci->fax_connect_info_buffer))->resolution = |
2694 | (byte)((((T30_INFO *)(plci->fax_connect_info_buffer))->resolution & ~T30_RESOLUTION_R8_0770_OR_200) | | 2694 | (byte)((((T30_INFO *)(plci->fax_connect_info_buffer))->resolution & ~T30_RESOLUTION_R8_0770_OR_200) | |
2695 | ((w & 0x0001) ? T30_RESOLUTION_R8_0770_OR_200 : 0)); | 2695 | ((w & 0x0001) ? T30_RESOLUTION_R8_0770_OR_200 : 0)); |
2696 | fax_info_change = TRUE; | 2696 | fax_info_change = true; |
2697 | } | 2697 | } |
2698 | fax_control_bits &= ~(T30_CONTROL_BIT_REQUEST_POLLING | T30_CONTROL_BIT_MORE_DOCUMENTS); | 2698 | fax_control_bits &= ~(T30_CONTROL_BIT_REQUEST_POLLING | T30_CONTROL_BIT_MORE_DOCUMENTS); |
2699 | if (w & 0x0002) /* Fax-polling request */ | 2699 | if (w & 0x0002) /* Fax-polling request */ |
@@ -2709,7 +2709,7 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2709 | if (((byte) w) != ((T30_INFO *)(plci->fax_connect_info_buffer))->data_format) | 2709 | if (((byte) w) != ((T30_INFO *)(plci->fax_connect_info_buffer))->data_format) |
2710 | { | 2710 | { |
2711 | ((T30_INFO *)(plci->fax_connect_info_buffer))->data_format = (byte) w; | 2711 | ((T30_INFO *)(plci->fax_connect_info_buffer))->data_format = (byte) w; |
2712 | fax_info_change = TRUE; | 2712 | fax_info_change = true; |
2713 | } | 2713 | } |
2714 | 2714 | ||
2715 | if ((a->man_profile.private_options & (1L << PRIVATE_FAX_SUB_SEP_PWD)) | 2715 | if ((a->man_profile.private_options & (1L << PRIVATE_FAX_SUB_SEP_PWD)) |
@@ -2781,13 +2781,13 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2781 | { | 2781 | { |
2782 | len = (byte)(&(((T30_INFO *) 0)->universal_6)); | 2782 | len = (byte)(&(((T30_INFO *) 0)->universal_6)); |
2783 | } | 2783 | } |
2784 | fax_info_change = TRUE; | 2784 | fax_info_change = true; |
2785 | 2785 | ||
2786 | } | 2786 | } |
2787 | if (fax_control_bits != GET_WORD(&((T30_INFO *)plci->fax_connect_info_buffer)->control_bits_low)) | 2787 | if (fax_control_bits != GET_WORD(&((T30_INFO *)plci->fax_connect_info_buffer)->control_bits_low)) |
2788 | { | 2788 | { |
2789 | PUT_WORD (&((T30_INFO *)plci->fax_connect_info_buffer)->control_bits_low, fax_control_bits); | 2789 | PUT_WORD (&((T30_INFO *)plci->fax_connect_info_buffer)->control_bits_low, fax_control_bits); |
2790 | fax_info_change = TRUE; | 2790 | fax_info_change = true; |
2791 | } | 2791 | } |
2792 | } | 2792 | } |
2793 | if (Info == GOOD) | 2793 | if (Info == GOOD) |
@@ -2798,12 +2798,12 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2798 | if (fax_feature_bits & T30_FEATURE_BIT_MORE_DOCUMENTS) | 2798 | if (fax_feature_bits & T30_FEATURE_BIT_MORE_DOCUMENTS) |
2799 | { | 2799 | { |
2800 | start_internal_command (Id, plci, fax_connect_info_command); | 2800 | start_internal_command (Id, plci, fax_connect_info_command); |
2801 | return FALSE; | 2801 | return false; |
2802 | } | 2802 | } |
2803 | else | 2803 | else |
2804 | { | 2804 | { |
2805 | start_internal_command (Id, plci, fax_adjust_b23_command); | 2805 | start_internal_command (Id, plci, fax_adjust_b23_command); |
2806 | return FALSE; | 2806 | return false; |
2807 | } | 2807 | } |
2808 | } | 2808 | } |
2809 | } | 2809 | } |
@@ -2820,7 +2820,7 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2820 | for (w = 0; w < ncpi->length; w++) | 2820 | for (w = 0; w < ncpi->length; w++) |
2821 | plci->internal_req_buffer[2+w] = ncpi->info[1+w]; | 2821 | plci->internal_req_buffer[2+w] = ncpi->info[1+w]; |
2822 | start_internal_command (Id, plci, rtp_connect_b3_req_command); | 2822 | start_internal_command (Id, plci, rtp_connect_b3_req_command); |
2823 | return FALSE; | 2823 | return false; |
2824 | } | 2824 | } |
2825 | 2825 | ||
2826 | if(!Info) | 2826 | if(!Info) |
@@ -2837,7 +2837,7 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2837 | Id, | 2837 | Id, |
2838 | Number, | 2838 | Number, |
2839 | "w",Info); | 2839 | "w",Info); |
2840 | return FALSE; | 2840 | return false; |
2841 | } | 2841 | } |
2842 | 2842 | ||
2843 | byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 2843 | byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -2909,7 +2909,7 @@ byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2909 | plci->fax_connect_info_length = len; | 2909 | plci->fax_connect_info_length = len; |
2910 | ((T30_INFO *)(plci->fax_connect_info_buffer))->code = 0; | 2910 | ((T30_INFO *)(plci->fax_connect_info_buffer))->code = 0; |
2911 | start_internal_command (Id, plci, fax_connect_ack_command); | 2911 | start_internal_command (Id, plci, fax_connect_ack_command); |
2912 | return FALSE; | 2912 | return false; |
2913 | } | 2913 | } |
2914 | } | 2914 | } |
2915 | 2915 | ||
@@ -2932,7 +2932,7 @@ byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2932 | for (w = 0; w < ncpi->length; w++) | 2932 | for (w = 0; w < ncpi->length; w++) |
2933 | plci->internal_req_buffer[2+w] = ncpi->info[1+w]; | 2933 | plci->internal_req_buffer[2+w] = ncpi->info[1+w]; |
2934 | start_internal_command (Id, plci, rtp_connect_b3_res_command); | 2934 | start_internal_command (Id, plci, rtp_connect_b3_res_command); |
2935 | return FALSE; | 2935 | return false; |
2936 | } | 2936 | } |
2937 | 2937 | ||
2938 | else | 2938 | else |
@@ -2945,14 +2945,14 @@ byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2945 | sendf(appl,_CONNECT_B3_ACTIVE_I,Id,0,"s",""); | 2945 | sendf(appl,_CONNECT_B3_ACTIVE_I,Id,0,"s",""); |
2946 | if (plci->adjust_b_restore) | 2946 | if (plci->adjust_b_restore) |
2947 | { | 2947 | { |
2948 | plci->adjust_b_restore = FALSE; | 2948 | plci->adjust_b_restore = false; |
2949 | start_internal_command (Id, plci, adjust_b_restore); | 2949 | start_internal_command (Id, plci, adjust_b_restore); |
2950 | } | 2950 | } |
2951 | } | 2951 | } |
2952 | return 1; | 2952 | return 1; |
2953 | } | 2953 | } |
2954 | } | 2954 | } |
2955 | return FALSE; | 2955 | return false; |
2956 | } | 2956 | } |
2957 | 2957 | ||
2958 | byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 2958 | byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -2972,7 +2972,7 @@ byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p | |||
2972 | channel_xmit_xon (plci); | 2972 | channel_xmit_xon (plci); |
2973 | } | 2973 | } |
2974 | } | 2974 | } |
2975 | return FALSE; | 2975 | return false; |
2976 | } | 2976 | } |
2977 | 2977 | ||
2978 | byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 2978 | byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -3004,7 +3004,7 @@ byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * | |||
3004 | { | 3004 | { |
3005 | plci->send_disc = (byte)ncci; | 3005 | plci->send_disc = (byte)ncci; |
3006 | plci->command = 0; | 3006 | plci->command = 0; |
3007 | return FALSE; | 3007 | return false; |
3008 | } | 3008 | } |
3009 | else | 3009 | else |
3010 | { | 3010 | { |
@@ -3028,7 +3028,7 @@ byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * | |||
3028 | Id, | 3028 | Id, |
3029 | Number, | 3029 | Number, |
3030 | "w",Info); | 3030 | "w",Info); |
3031 | return FALSE; | 3031 | return false; |
3032 | } | 3032 | } |
3033 | 3033 | ||
3034 | byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3034 | byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -3084,7 +3084,7 @@ byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * | |||
3084 | } | 3084 | } |
3085 | } | 3085 | } |
3086 | } | 3086 | } |
3087 | return FALSE; | 3087 | return false; |
3088 | } | 3088 | } |
3089 | 3089 | ||
3090 | byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3090 | byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -3140,7 +3140,7 @@ byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3140 | } | 3140 | } |
3141 | 3141 | ||
3142 | send_data(plci); | 3142 | send_data(plci); |
3143 | return FALSE; | 3143 | return false; |
3144 | } | 3144 | } |
3145 | } | 3145 | } |
3146 | if (appl) | 3146 | if (appl) |
@@ -3161,7 +3161,7 @@ byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3161 | Number, | 3161 | Number, |
3162 | "ww",GET_WORD(parms[2].info),Info); | 3162 | "ww",GET_WORD(parms[2].info),Info); |
3163 | } | 3163 | } |
3164 | return FALSE; | 3164 | return false; |
3165 | } | 3165 | } |
3166 | 3166 | ||
3167 | byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3167 | byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -3194,7 +3194,7 @@ byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3194 | } | 3194 | } |
3195 | } | 3195 | } |
3196 | } | 3196 | } |
3197 | return FALSE; | 3197 | return false; |
3198 | } | 3198 | } |
3199 | 3199 | ||
3200 | byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3200 | byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -3235,7 +3235,7 @@ byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3235 | Id, | 3235 | Id, |
3236 | Number, | 3236 | Number, |
3237 | "w",Info); | 3237 | "w",Info); |
3238 | return FALSE; | 3238 | return false; |
3239 | } | 3239 | } |
3240 | 3240 | ||
3241 | byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3241 | byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -3254,12 +3254,12 @@ byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3254 | { | 3254 | { |
3255 | a->ncci_state[ncci] = CONNECTED; | 3255 | a->ncci_state[ncci] = CONNECTED; |
3256 | nl_req_ncci(plci,N_RESET_ACK,(byte)ncci); | 3256 | nl_req_ncci(plci,N_RESET_ACK,(byte)ncci); |
3257 | return TRUE; | 3257 | return true; |
3258 | } | 3258 | } |
3259 | break; | 3259 | break; |
3260 | } | 3260 | } |
3261 | } | 3261 | } |
3262 | return FALSE; | 3262 | return false; |
3263 | } | 3263 | } |
3264 | 3264 | ||
3265 | byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3265 | byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -3292,7 +3292,7 @@ byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI | |||
3292 | return 1; | 3292 | return 1; |
3293 | } | 3293 | } |
3294 | } | 3294 | } |
3295 | return FALSE; | 3295 | return false; |
3296 | } | 3296 | } |
3297 | 3297 | ||
3298 | 3298 | ||
@@ -3378,7 +3378,7 @@ byte select_b_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3378 | plci->internal_command = BLOCK_PLCI; /* lock other commands */ | 3378 | plci->internal_command = BLOCK_PLCI; /* lock other commands */ |
3379 | plci->command = 0; | 3379 | plci->command = 0; |
3380 | dbug(1,dprintf("continue if codec loaded")); | 3380 | dbug(1,dprintf("continue if codec loaded")); |
3381 | return FALSE; | 3381 | return false; |
3382 | } | 3382 | } |
3383 | } | 3383 | } |
3384 | } | 3384 | } |
@@ -3407,12 +3407,12 @@ byte select_b_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3407 | else if (plci->call_dir & CALL_DIR_IN) | 3407 | else if (plci->call_dir & CALL_DIR_IN) |
3408 | plci->call_dir = CALL_DIR_IN | CALL_DIR_ANSWER; | 3408 | plci->call_dir = CALL_DIR_IN | CALL_DIR_ANSWER; |
3409 | start_internal_command (Id, plci, select_b_command); | 3409 | start_internal_command (Id, plci, select_b_command); |
3410 | return FALSE; | 3410 | return false; |
3411 | } | 3411 | } |
3412 | } | 3412 | } |
3413 | } | 3413 | } |
3414 | sendf(appl, _SELECT_B_REQ|CONFIRM, Id, Number, "w", Info); | 3414 | sendf(appl, _SELECT_B_REQ|CONFIRM, Id, Number, "w", Info); |
3415 | return FALSE; | 3415 | return false; |
3416 | } | 3416 | } |
3417 | 3417 | ||
3418 | byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3418 | byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) |
@@ -3489,7 +3489,7 @@ byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p | |||
3489 | } | 3489 | } |
3490 | 3490 | ||
3491 | plci->State = LOCAL_CONNECT; | 3491 | plci->State = LOCAL_CONNECT; |
3492 | plci->manufacturer = TRUE; | 3492 | plci->manufacturer = true; |
3493 | plci->command = _MANUFACTURER_R; | 3493 | plci->command = _MANUFACTURER_R; |
3494 | plci->m_command = command; | 3494 | plci->m_command = command; |
3495 | plci->number = Number; | 3495 | plci->number = Number; |
@@ -3520,7 +3520,7 @@ byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p | |||
3520 | plci->internal_command = BLOCK_PLCI; /* reject other req meanwhile */ | 3520 | plci->internal_command = BLOCK_PLCI; /* reject other req meanwhile */ |
3521 | plci->command = 0; | 3521 | plci->command = 0; |
3522 | send_req(plci); | 3522 | send_req(plci); |
3523 | return FALSE; | 3523 | return false; |
3524 | } | 3524 | } |
3525 | if(dir==1) { | 3525 | if(dir==1) { |
3526 | sig_req(plci,CALL_REQ,0); | 3526 | sig_req(plci,CALL_REQ,0); |
@@ -3573,7 +3573,7 @@ byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p | |||
3573 | } | 3573 | } |
3574 | else if(req==LAW_REQ) | 3574 | else if(req==LAW_REQ) |
3575 | { | 3575 | { |
3576 | plci->cr_enquiry = TRUE; | 3576 | plci->cr_enquiry = true; |
3577 | } | 3577 | } |
3578 | add_ss(plci,FTY,&m_parms[1]); | 3578 | add_ss(plci,FTY,&m_parms[1]); |
3579 | sig_req(plci,req,0); | 3579 | sig_req(plci,req,0); |
@@ -3739,7 +3739,7 @@ byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p | |||
3739 | Id, | 3739 | Id, |
3740 | Number, | 3740 | Number, |
3741 | "dww",_DI_MANU_ID,command,Info); | 3741 | "dww",_DI_MANU_ID,command,Info); |
3742 | return FALSE; | 3742 | return false; |
3743 | } | 3743 | } |
3744 | 3744 | ||
3745 | 3745 | ||
@@ -3760,7 +3760,7 @@ byte manufacturer_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p | |||
3760 | || (msg[1].length == 0) | 3760 | || (msg[1].length == 0) |
3761 | || (GET_DWORD(msg[0].info)!=_DI_MANU_ID)) | 3761 | || (GET_DWORD(msg[0].info)!=_DI_MANU_ID)) |
3762 | { | 3762 | { |
3763 | return FALSE; | 3763 | return false; |
3764 | } | 3764 | } |
3765 | indication = GET_WORD(msg[1].info); | 3765 | indication = GET_WORD(msg[1].info); |
3766 | switch (indication) | 3766 | switch (indication) |
@@ -3811,7 +3811,7 @@ byte manufacturer_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p | |||
3811 | break; | 3811 | break; |
3812 | 3812 | ||
3813 | } | 3813 | } |
3814 | return FALSE; | 3814 | return false; |
3815 | } | 3815 | } |
3816 | 3816 | ||
3817 | /*------------------------------------------------------------------*/ | 3817 | /*------------------------------------------------------------------*/ |
@@ -3908,14 +3908,14 @@ void callback(ENTITY * e) | |||
3908 | plci->nl_req = 0; | 3908 | plci->nl_req = 0; |
3909 | } | 3909 | } |
3910 | if (plci->nl_req) | 3910 | if (plci->nl_req) |
3911 | control_rc (plci, 0, rc, ch, 0, TRUE); | 3911 | control_rc (plci, 0, rc, ch, 0, true); |
3912 | else | 3912 | else |
3913 | { | 3913 | { |
3914 | if (req == N_XON) | 3914 | if (req == N_XON) |
3915 | { | 3915 | { |
3916 | channel_x_on (plci, ch); | 3916 | channel_x_on (plci, ch); |
3917 | if (plci->internal_command) | 3917 | if (plci->internal_command) |
3918 | control_rc (plci, req, rc, ch, 0, TRUE); | 3918 | control_rc (plci, req, rc, ch, 0, true); |
3919 | } | 3919 | } |
3920 | else | 3920 | else |
3921 | { | 3921 | { |
@@ -3931,21 +3931,21 @@ void callback(ENTITY * e) | |||
3931 | } | 3931 | } |
3932 | } | 3932 | } |
3933 | channel_xmit_xon (plci); | 3933 | channel_xmit_xon (plci); |
3934 | control_rc (plci, 0, rc, ch, global_req, TRUE); | 3934 | control_rc (plci, 0, rc, ch, global_req, true); |
3935 | } | 3935 | } |
3936 | else if (plci->data_sent) | 3936 | else if (plci->data_sent) |
3937 | { | 3937 | { |
3938 | channel_xmit_xon (plci); | 3938 | channel_xmit_xon (plci); |
3939 | plci->data_sent = FALSE; | 3939 | plci->data_sent = false; |
3940 | plci->NL.XNum = 1; | 3940 | plci->NL.XNum = 1; |
3941 | data_rc (plci, ch); | 3941 | data_rc (plci, ch); |
3942 | if (plci->internal_command) | 3942 | if (plci->internal_command) |
3943 | control_rc (plci, req, rc, ch, 0, TRUE); | 3943 | control_rc (plci, req, rc, ch, 0, true); |
3944 | } | 3944 | } |
3945 | else | 3945 | else |
3946 | { | 3946 | { |
3947 | channel_xmit_xon (plci); | 3947 | channel_xmit_xon (plci); |
3948 | control_rc (plci, req, rc, ch, 0, TRUE); | 3948 | control_rc (plci, req, rc, ch, 0, true); |
3949 | } | 3949 | } |
3950 | } | 3950 | } |
3951 | } | 3951 | } |
@@ -3974,12 +3974,12 @@ void callback(ENTITY * e) | |||
3974 | if (rc != ASSIGN_OK) | 3974 | if (rc != ASSIGN_OK) |
3975 | e->Id = 0; | 3975 | e->Id = 0; |
3976 | channel_xmit_xon (plci); | 3976 | channel_xmit_xon (plci); |
3977 | control_rc (plci, 0, rc, ch, global_req, FALSE); | 3977 | control_rc (plci, 0, rc, ch, global_req, false); |
3978 | } | 3978 | } |
3979 | else | 3979 | else |
3980 | { | 3980 | { |
3981 | channel_xmit_xon (plci); | 3981 | channel_xmit_xon (plci); |
3982 | control_rc (plci, req, rc, ch, 0, FALSE); | 3982 | control_rc (plci, req, rc, ch, 0, false); |
3983 | } | 3983 | } |
3984 | } | 3984 | } |
3985 | /* | 3985 | /* |
@@ -4065,8 +4065,8 @@ capi_callback_suffix: | |||
4065 | 4065 | ||
4066 | if (plci->li_notify_update) | 4066 | if (plci->li_notify_update) |
4067 | { | 4067 | { |
4068 | plci->li_notify_update = FALSE; | 4068 | plci->li_notify_update = false; |
4069 | mixer_notify_update (plci, FALSE); | 4069 | mixer_notify_update (plci, false); |
4070 | } | 4070 | } |
4071 | 4071 | ||
4072 | } | 4072 | } |
@@ -4428,7 +4428,7 @@ void control_rc(PLCI * plci, byte req, byte rc, byte ch, byte global_req, byte | |||
4428 | else | 4428 | else |
4429 | { | 4429 | { |
4430 | sendf(appl,_INFO_R|CONFIRM,Id&0xf,Number,"w",_WRONG_STATE); | 4430 | sendf(appl,_INFO_R|CONFIRM,Id&0xf,Number,"w",_WRONG_STATE); |
4431 | appl->NullCREnable = FALSE; | 4431 | appl->NullCREnable = false; |
4432 | plci_remove(plci); | 4432 | plci_remove(plci); |
4433 | } | 4433 | } |
4434 | } | 4434 | } |
@@ -4441,7 +4441,7 @@ void control_rc(PLCI * plci, byte req, byte rc, byte ch, byte global_req, byte | |||
4441 | else | 4441 | else |
4442 | { | 4442 | { |
4443 | sendf(appl,_INFO_R|CONFIRM,Id&0xf,Number,"w",_WRONG_STATE); | 4443 | sendf(appl,_INFO_R|CONFIRM,Id&0xf,Number,"w",_WRONG_STATE); |
4444 | appl->NullCREnable = FALSE; | 4444 | appl->NullCREnable = false; |
4445 | } | 4445 | } |
4446 | plci_remove(plci); | 4446 | plci_remove(plci); |
4447 | } | 4447 | } |
@@ -4862,7 +4862,7 @@ void sig_ind(PLCI * plci) | |||
4862 | byte CF_Ind[] = "\x09\x02\x00\x06\x00\x00\x00\x00\x00\x00"; | 4862 | byte CF_Ind[] = "\x09\x02\x00\x06\x00\x00\x00\x00\x00\x00"; |
4863 | byte Interr_Err_Ind[] = "\x0a\x02\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; | 4863 | byte Interr_Err_Ind[] = "\x0a\x02\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; |
4864 | byte CONF_Ind[] = "\x09\x16\x00\x06\x00\x00\0x00\0x00\0x00\0x00"; | 4864 | byte CONF_Ind[] = "\x09\x16\x00\x06\x00\x00\0x00\0x00\0x00\0x00"; |
4865 | byte force_mt_info = FALSE; | 4865 | byte force_mt_info = false; |
4866 | byte dir; | 4866 | byte dir; |
4867 | dword d; | 4867 | dword d; |
4868 | word w; | 4868 | word w; |
@@ -4933,7 +4933,7 @@ void sig_ind(PLCI * plci) | |||
4933 | { | 4933 | { |
4934 | if(plci->cr_enquiry && plci->appl) | 4934 | if(plci->cr_enquiry && plci->appl) |
4935 | { | 4935 | { |
4936 | plci->cr_enquiry = FALSE; | 4936 | plci->cr_enquiry = false; |
4937 | /* d = MANU_ID */ | 4937 | /* d = MANU_ID */ |
4938 | /* w = m_command */ | 4938 | /* w = m_command */ |
4939 | /* b = total length */ | 4939 | /* b = total length */ |
@@ -5158,7 +5158,7 @@ void sig_ind(PLCI * plci) | |||
5158 | if(application[i].CDEnable) | 5158 | if(application[i].CDEnable) |
5159 | { | 5159 | { |
5160 | if(application[i].Id) sendf(&application[i],_FACILITY_I,Id,0,"ws",3, SS_Ind); | 5160 | if(application[i].Id) sendf(&application[i],_FACILITY_I,Id,0,"ws",3, SS_Ind); |
5161 | application[i].CDEnable = FALSE; | 5161 | application[i].CDEnable = false; |
5162 | } | 5162 | } |
5163 | } | 5163 | } |
5164 | break; | 5164 | break; |
@@ -5375,7 +5375,7 @@ void sig_ind(PLCI * plci) | |||
5375 | if(application[i].CDEnable) | 5375 | if(application[i].CDEnable) |
5376 | { | 5376 | { |
5377 | if(application[i].Id) sendf(&application[i],_FACILITY_I,Id,0,"ws",3, SS_Ind); | 5377 | if(application[i].Id) sendf(&application[i],_FACILITY_I,Id,0,"ws",3, SS_Ind); |
5378 | application[i].CDEnable = FALSE; | 5378 | application[i].CDEnable = false; |
5379 | } | 5379 | } |
5380 | } | 5380 | } |
5381 | break; | 5381 | break; |
@@ -5730,7 +5730,7 @@ void sig_ind(PLCI * plci) | |||
5730 | plci, | 5730 | plci, |
5731 | Id, | 5731 | Id, |
5732 | parms, | 5732 | parms, |
5733 | SendMultiIE(plci,Id,multi_pi_parms, PI, 0x210, TRUE)); | 5733 | SendMultiIE(plci,Id,multi_pi_parms, PI, 0x210, true)); |
5734 | } | 5734 | } |
5735 | } | 5735 | } |
5736 | clear_c_ind_mask_bit (plci, MAX_APPL); | 5736 | clear_c_ind_mask_bit (plci, MAX_APPL); |
@@ -6117,38 +6117,38 @@ static void SendSetupInfo(APPL * appl, PLCI * plci, dword Id, byte * * par | |||
6117 | dbug(1,dprintf("CPN ")); | 6117 | dbug(1,dprintf("CPN ")); |
6118 | Info_Number = 0x0070; | 6118 | Info_Number = 0x0070; |
6119 | Info_Mask = 0x80; | 6119 | Info_Mask = 0x80; |
6120 | Info_Sent_Flag = TRUE; | 6120 | Info_Sent_Flag = true; |
6121 | break; | 6121 | break; |
6122 | case 8: /* display */ | 6122 | case 8: /* display */ |
6123 | dbug(1,dprintf("display(%d)",i)); | 6123 | dbug(1,dprintf("display(%d)",i)); |
6124 | Info_Number = 0x0028; | 6124 | Info_Number = 0x0028; |
6125 | Info_Mask = 0x04; | 6125 | Info_Mask = 0x04; |
6126 | Info_Sent_Flag = TRUE; | 6126 | Info_Sent_Flag = true; |
6127 | break; | 6127 | break; |
6128 | case 16: /* Channel Id */ | 6128 | case 16: /* Channel Id */ |
6129 | dbug(1,dprintf("CHI")); | 6129 | dbug(1,dprintf("CHI")); |
6130 | Info_Number = 0x0018; | 6130 | Info_Number = 0x0018; |
6131 | Info_Mask = 0x100; | 6131 | Info_Mask = 0x100; |
6132 | Info_Sent_Flag = TRUE; | 6132 | Info_Sent_Flag = true; |
6133 | mixer_set_bchannel_id (plci, Info_Element); | 6133 | mixer_set_bchannel_id (plci, Info_Element); |
6134 | break; | 6134 | break; |
6135 | case 19: /* Redirected Number */ | 6135 | case 19: /* Redirected Number */ |
6136 | dbug(1,dprintf("RDN")); | 6136 | dbug(1,dprintf("RDN")); |
6137 | Info_Number = 0x0074; | 6137 | Info_Number = 0x0074; |
6138 | Info_Mask = 0x400; | 6138 | Info_Mask = 0x400; |
6139 | Info_Sent_Flag = TRUE; | 6139 | Info_Sent_Flag = true; |
6140 | break; | 6140 | break; |
6141 | case 20: /* Redirected Number extended */ | 6141 | case 20: /* Redirected Number extended */ |
6142 | dbug(1,dprintf("RDX")); | 6142 | dbug(1,dprintf("RDX")); |
6143 | Info_Number = 0x0073; | 6143 | Info_Number = 0x0073; |
6144 | Info_Mask = 0x400; | 6144 | Info_Mask = 0x400; |
6145 | Info_Sent_Flag = TRUE; | 6145 | Info_Sent_Flag = true; |
6146 | break; | 6146 | break; |
6147 | case 22: /* Redirecing Number */ | 6147 | case 22: /* Redirecing Number */ |
6148 | dbug(1,dprintf("RIN")); | 6148 | dbug(1,dprintf("RIN")); |
6149 | Info_Number = 0x0076; | 6149 | Info_Number = 0x0076; |
6150 | Info_Mask = 0x400; | 6150 | Info_Mask = 0x400; |
6151 | Info_Sent_Flag = TRUE; | 6151 | Info_Sent_Flag = true; |
6152 | break; | 6152 | break; |
6153 | default: | 6153 | default: |
6154 | Info_Number = 0; | 6154 | Info_Number = 0; |
@@ -6312,7 +6312,7 @@ void SendInfo(PLCI * plci, dword Id, byte * * parms, byte iesent) | |||
6312 | && plci->adapter->Info_Mask[appl->Id-1] &Info_Mask) | 6312 | && plci->adapter->Info_Mask[appl->Id-1] &Info_Mask) |
6313 | { | 6313 | { |
6314 | dbug(1,dprintf("NCR_Ind")); | 6314 | dbug(1,dprintf("NCR_Ind")); |
6315 | iesent=TRUE; | 6315 | iesent=true; |
6316 | sendf(&application[j],_INFO_I,Id&0x0f,0,"wS",Info_Number,Info_Element); | 6316 | sendf(&application[j],_INFO_I,Id&0x0f,0,"wS",Info_Number,Info_Element); |
6317 | } | 6317 | } |
6318 | } | 6318 | } |
@@ -6330,7 +6330,7 @@ void SendInfo(PLCI * plci, dword Id, byte * * parms, byte iesent) | |||
6330 | if(test_c_ind_mask_bit (plci, j)) | 6330 | if(test_c_ind_mask_bit (plci, j)) |
6331 | { | 6331 | { |
6332 | dbug(1,dprintf("Ovl_Ind")); | 6332 | dbug(1,dprintf("Ovl_Ind")); |
6333 | iesent=TRUE; | 6333 | iesent=true; |
6334 | sendf(&application[j],_INFO_I,Id,0,"wS",Info_Number,Info_Element); | 6334 | sendf(&application[j],_INFO_I,Id,0,"wS",Info_Number,Info_Element); |
6335 | } | 6335 | } |
6336 | } | 6336 | } |
@@ -6340,7 +6340,7 @@ void SendInfo(PLCI * plci, dword Id, byte * * parms, byte iesent) | |||
6340 | && plci->adapter->Info_Mask[plci->appl->Id-1] &Info_Mask) | 6340 | && plci->adapter->Info_Mask[plci->appl->Id-1] &Info_Mask) |
6341 | { | 6341 | { |
6342 | dbug(1,dprintf("Std_Ind")); | 6342 | dbug(1,dprintf("Std_Ind")); |
6343 | iesent=TRUE; | 6343 | iesent=true; |
6344 | sendf(plci->appl,_INFO_I,Id,0,"wS",Info_Number,Info_Element); | 6344 | sendf(plci->appl,_INFO_I,Id,0,"wS",Info_Number,Info_Element); |
6345 | } | 6345 | } |
6346 | } | 6346 | } |
@@ -6391,7 +6391,7 @@ byte SendMultiIE(PLCI * plci, dword Id, byte * * parms, byte ie_type, dword | |||
6391 | && appl->Id | 6391 | && appl->Id |
6392 | && plci->adapter->Info_Mask[appl->Id-1] &Info_Mask) | 6392 | && plci->adapter->Info_Mask[appl->Id-1] &Info_Mask) |
6393 | { | 6393 | { |
6394 | iesent = TRUE; | 6394 | iesent = true; |
6395 | dbug(1,dprintf("Mlt_NCR_Ind")); | 6395 | dbug(1,dprintf("Mlt_NCR_Ind")); |
6396 | sendf(&application[j],_INFO_I,Id&0x0f,0,"wS",Info_Number,Info_Element); | 6396 | sendf(&application[j],_INFO_I,Id&0x0f,0,"wS",Info_Number,Info_Element); |
6397 | } | 6397 | } |
@@ -6403,7 +6403,7 @@ byte SendMultiIE(PLCI * plci, dword Id, byte * * parms, byte ie_type, dword | |||
6403 | { | 6403 | { |
6404 | if(test_c_ind_mask_bit (plci, j)) | 6404 | if(test_c_ind_mask_bit (plci, j)) |
6405 | { | 6405 | { |
6406 | iesent = TRUE; | 6406 | iesent = true; |
6407 | dbug(1,dprintf("Mlt_Ovl_Ind")); | 6407 | dbug(1,dprintf("Mlt_Ovl_Ind")); |
6408 | sendf(&application[j],_INFO_I,Id,0,"wS",Info_Number,Info_Element); | 6408 | sendf(&application[j],_INFO_I,Id,0,"wS",Info_Number,Info_Element); |
6409 | } | 6409 | } |
@@ -6412,7 +6412,7 @@ byte SendMultiIE(PLCI * plci, dword Id, byte * * parms, byte ie_type, dword | |||
6412 | else if(Info_Number | 6412 | else if(Info_Number |
6413 | && plci->adapter->Info_Mask[plci->appl->Id-1] &Info_Mask) | 6413 | && plci->adapter->Info_Mask[plci->appl->Id-1] &Info_Mask) |
6414 | { | 6414 | { |
6415 | iesent = TRUE; | 6415 | iesent = true; |
6416 | dbug(1,dprintf("Mlt_Std_Ind")); | 6416 | dbug(1,dprintf("Mlt_Std_Ind")); |
6417 | sendf(plci->appl,_INFO_I,Id,0,"wS",Info_Number,Info_Element); | 6417 | sendf(plci->appl,_INFO_I,Id,0,"wS",Info_Number,Info_Element); |
6418 | } | 6418 | } |
@@ -6887,7 +6887,7 @@ void nl_ind(PLCI * plci) | |||
6887 | (byte)(plci->ncpi_buffer[0] + 1), plci->ncpi_buffer); | 6887 | (byte)(plci->ncpi_buffer[0] + 1), plci->ncpi_buffer); |
6888 | plci->ncpi_state |= NCPI_NEGOTIATE_B3_SENT; | 6888 | plci->ncpi_state |= NCPI_NEGOTIATE_B3_SENT; |
6889 | if (plci->nsf_control_bits & T30_NSF_CONTROL_BIT_NEGOTIATE_RESP) | 6889 | if (plci->nsf_control_bits & T30_NSF_CONTROL_BIT_NEGOTIATE_RESP) |
6890 | fax_send_edata_ack = FALSE; | 6890 | fax_send_edata_ack = false; |
6891 | } | 6891 | } |
6892 | 6892 | ||
6893 | if (a->manufacturer_features & MANUFACTURER_FEATURE_FAX_PAPER_FORMATS) | 6893 | if (a->manufacturer_features & MANUFACTURER_FEATURE_FAX_PAPER_FORMATS) |
@@ -6928,7 +6928,7 @@ void nl_ind(PLCI * plci) | |||
6928 | sendf(plci->appl,_DISCONNECT_B3_I,Id,0,"wS",GOOD,plci->ncpi_buffer); | 6928 | sendf(plci->appl,_DISCONNECT_B3_I,Id,0,"wS",GOOD,plci->ncpi_buffer); |
6929 | a->ncci_state[ncci] = INC_DIS_PENDING; | 6929 | a->ncci_state[ncci] = INC_DIS_PENDING; |
6930 | plci->ncpi_state = 0; | 6930 | plci->ncpi_state = 0; |
6931 | fax_send_edata_ack = FALSE; | 6931 | fax_send_edata_ack = false; |
6932 | } | 6932 | } |
6933 | break; | 6933 | break; |
6934 | } | 6934 | } |
@@ -7025,7 +7025,7 @@ void nl_ind(PLCI * plci) | |||
7025 | } | 7025 | } |
7026 | if (plci->adjust_b_restore) | 7026 | if (plci->adjust_b_restore) |
7027 | { | 7027 | { |
7028 | plci->adjust_b_restore = FALSE; | 7028 | plci->adjust_b_restore = false; |
7029 | start_internal_command (Id, plci, adjust_b_restore); | 7029 | start_internal_command (Id, plci, adjust_b_restore); |
7030 | } | 7030 | } |
7031 | break; | 7031 | break; |
@@ -7041,7 +7041,7 @@ void nl_ind(PLCI * plci) | |||
7041 | next_internal_command (Id, plci); | 7041 | next_internal_command (Id, plci); |
7042 | } | 7042 | } |
7043 | ncci_state = a->ncci_state[ncci]; | 7043 | ncci_state = a->ncci_state[ncci]; |
7044 | ncci_remove (plci, ncci, FALSE); | 7044 | ncci_remove (plci, ncci, false); |
7045 | 7045 | ||
7046 | /* with N_DISC or N_DISC_ACK the IDI frees the respective */ | 7046 | /* with N_DISC or N_DISC_ACK the IDI frees the respective */ |
7047 | /* channel, so we cannot store the state in ncci_state! The */ | 7047 | /* channel, so we cannot store the state in ncci_state! The */ |
@@ -7288,18 +7288,18 @@ word get_plci(DIVA_CAPI_ADAPTER * a) | |||
7288 | plci->msg_in_read_pos = MSG_IN_QUEUE_SIZE; | 7288 | plci->msg_in_read_pos = MSG_IN_QUEUE_SIZE; |
7289 | plci->msg_in_wrap_pos = MSG_IN_QUEUE_SIZE; | 7289 | plci->msg_in_wrap_pos = MSG_IN_QUEUE_SIZE; |
7290 | 7290 | ||
7291 | plci->data_sent = FALSE; | 7291 | plci->data_sent = false; |
7292 | plci->send_disc = 0; | 7292 | plci->send_disc = 0; |
7293 | plci->sig_global_req = 0; | 7293 | plci->sig_global_req = 0; |
7294 | plci->sig_remove_id = 0; | 7294 | plci->sig_remove_id = 0; |
7295 | plci->nl_global_req = 0; | 7295 | plci->nl_global_req = 0; |
7296 | plci->nl_remove_id = 0; | 7296 | plci->nl_remove_id = 0; |
7297 | plci->adv_nl = 0; | 7297 | plci->adv_nl = 0; |
7298 | plci->manufacturer = FALSE; | 7298 | plci->manufacturer = false; |
7299 | plci->call_dir = CALL_DIR_OUT | CALL_DIR_ORIGINATE; | 7299 | plci->call_dir = CALL_DIR_OUT | CALL_DIR_ORIGINATE; |
7300 | plci->spoofed_msg = 0; | 7300 | plci->spoofed_msg = 0; |
7301 | plci->ptyState = 0; | 7301 | plci->ptyState = 0; |
7302 | plci->cr_enquiry = FALSE; | 7302 | plci->cr_enquiry = false; |
7303 | plci->hangup_flow_ctrl_timer = 0; | 7303 | plci->hangup_flow_ctrl_timer = 0; |
7304 | 7304 | ||
7305 | plci->ncci_ring_list = 0; | 7305 | plci->ncci_ring_list = 0; |
@@ -7972,7 +7972,7 @@ word add_b23(PLCI * plci, API_PARSE * bp) | |||
7972 | 7972 | ||
7973 | if(!bp->length && plci->tel) | 7973 | if(!bp->length && plci->tel) |
7974 | { | 7974 | { |
7975 | plci->adv_nl = TRUE; | 7975 | plci->adv_nl = true; |
7976 | dbug(1,dprintf("Default adv.Nl")); | 7976 | dbug(1,dprintf("Default adv.Nl")); |
7977 | add_p(plci,LLI,lli); | 7977 | add_p(plci,LLI,lli); |
7978 | plci->B2_prot = 1 /*XPARENT*/; | 7978 | plci->B2_prot = 1 /*XPARENT*/; |
@@ -8022,7 +8022,7 @@ word add_b23(PLCI * plci, API_PARSE * bp) | |||
8022 | { | 8022 | { |
8023 | if(GET_WORD(bp_parms[1].info)!=1 | 8023 | if(GET_WORD(bp_parms[1].info)!=1 |
8024 | || GET_WORD(bp_parms[2].info)!=0) return _B2_NOT_SUPPORTED; | 8024 | || GET_WORD(bp_parms[2].info)!=0) return _B2_NOT_SUPPORTED; |
8025 | plci->adv_nl = TRUE; | 8025 | plci->adv_nl = true; |
8026 | } | 8026 | } |
8027 | else if(plci->tel) return _B2_NOT_SUPPORTED; | 8027 | else if(plci->tel) return _B2_NOT_SUPPORTED; |
8028 | 8028 | ||
@@ -8840,7 +8840,7 @@ void send_data(PLCI * plci) | |||
8840 | plci->NL.X = plci->NData; | 8840 | plci->NL.X = plci->NData; |
8841 | plci->NL.ReqCh = a->ncci_ch[ncci]; | 8841 | plci->NL.ReqCh = a->ncci_ch[ncci]; |
8842 | dbug(1,dprintf("%x:DREQ(%x:%x)",a->Id,plci->NL.Id,plci->NL.Req)); | 8842 | dbug(1,dprintf("%x:DREQ(%x:%x)",a->Id,plci->NL.Id,plci->NL.Req)); |
8843 | plci->data_sent = TRUE; | 8843 | plci->data_sent = true; |
8844 | plci->data_sent_ptr = data->P; | 8844 | plci->data_sent_ptr = data->P; |
8845 | a->request(&plci->NL); | 8845 | a->request(&plci->NL); |
8846 | } | 8846 | } |
@@ -8995,10 +8995,10 @@ void IndParse(PLCI * plci, word * parms_id, byte ** parms, byte multiIEsize) | |||
8995 | byte ie_compare(byte * ie1, byte * ie2) | 8995 | byte ie_compare(byte * ie1, byte * ie2) |
8996 | { | 8996 | { |
8997 | word i; | 8997 | word i; |
8998 | if(!ie1 || ! ie2) return FALSE; | 8998 | if(!ie1 || ! ie2) return false; |
8999 | if(!ie1[0]) return FALSE; | 8999 | if(!ie1[0]) return false; |
9000 | for(i=0;i<(word)(ie1[0]+1);i++) if(ie1[i]!=ie2[i]) return FALSE; | 9000 | for(i=0;i<(word)(ie1[0]+1);i++) if(ie1[i]!=ie2[i]) return false; |
9001 | return TRUE; | 9001 | return true; |
9002 | } | 9002 | } |
9003 | 9003 | ||
9004 | word find_cip(DIVA_CAPI_ADAPTER * a, byte * bc, byte * hlc) | 9004 | word find_cip(DIVA_CAPI_ADAPTER * a, byte * bc, byte * hlc) |
@@ -9151,7 +9151,7 @@ word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, byte ho | |||
9151 | plci->tel=ADV_VOICE; | 9151 | plci->tel=ADV_VOICE; |
9152 | } | 9152 | } |
9153 | a->AdvSignalAppl = appl; | 9153 | a->AdvSignalAppl = appl; |
9154 | a->AdvCodecFLAG = TRUE; | 9154 | a->AdvCodecFLAG = true; |
9155 | a->AdvCodecPLCI = splci; | 9155 | a->AdvCodecPLCI = splci; |
9156 | add_p(splci,CAI,"\x01\x15"); | 9156 | add_p(splci,CAI,"\x01\x15"); |
9157 | add_p(splci,LLI,"\x01\x00"); | 9157 | add_p(splci,LLI,"\x01\x00"); |
@@ -9183,7 +9183,7 @@ word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, byte ho | |||
9183 | add_p(splci,UID,"\x06\x43\x61\x70\x69\x32\x30"); | 9183 | add_p(splci,UID,"\x06\x43\x61\x70\x69\x32\x30"); |
9184 | sig_req(splci,ASSIGN,0xC0); /* 0xc0 is the TEL_ID */ | 9184 | sig_req(splci,ASSIGN,0xC0); /* 0xc0 is the TEL_ID */ |
9185 | send_req(splci); | 9185 | send_req(splci); |
9186 | a->scom_appl_disable = TRUE; | 9186 | a->scom_appl_disable = true; |
9187 | } | 9187 | } |
9188 | else{ | 9188 | else{ |
9189 | return 0x2001; /* wrong state, no more plcis */ | 9189 | return 0x2001; /* wrong state, no more plcis */ |
@@ -9411,7 +9411,7 @@ word CapiRelease(word Id) | |||
9411 | } | 9411 | } |
9412 | if(a->AdvSignalAppl==this) | 9412 | if(a->AdvSignalAppl==this) |
9413 | { | 9413 | { |
9414 | this->NullCREnable = FALSE; | 9414 | this->NullCREnable = false; |
9415 | if (a->AdvCodecPLCI) | 9415 | if (a->AdvCodecPLCI) |
9416 | { | 9416 | { |
9417 | plci_remove(a->AdvCodecPLCI); | 9417 | plci_remove(a->AdvCodecPLCI); |
@@ -9433,7 +9433,7 @@ word CapiRelease(word Id) | |||
9433 | 9433 | ||
9434 | static word plci_remove_check(PLCI *plci) | 9434 | static word plci_remove_check(PLCI *plci) |
9435 | { | 9435 | { |
9436 | if(!plci) return TRUE; | 9436 | if(!plci) return true; |
9437 | if(!plci->NL.Id && c_ind_mask_empty (plci)) | 9437 | if(!plci->NL.Id && c_ind_mask_empty (plci)) |
9438 | { | 9438 | { |
9439 | if(plci->Sig.Id == 0xff) | 9439 | if(plci->Sig.Id == 0xff) |
@@ -9446,7 +9446,7 @@ static word plci_remove_check(PLCI *plci) | |||
9446 | { | 9446 | { |
9447 | CodecIdCheck(plci->adapter, plci); | 9447 | CodecIdCheck(plci->adapter, plci); |
9448 | clear_b1_config (plci); | 9448 | clear_b1_config (plci); |
9449 | ncci_remove (plci, 0, FALSE); | 9449 | ncci_remove (plci, 0, false); |
9450 | plci_free_msg_in_queue (plci); | 9450 | plci_free_msg_in_queue (plci); |
9451 | channel_flow_control_remove (plci); | 9451 | channel_flow_control_remove (plci); |
9452 | plci->Id = 0; | 9452 | plci->Id = 0; |
@@ -9456,10 +9456,10 @@ static word plci_remove_check(PLCI *plci) | |||
9456 | plci->notifiedcall = 0; | 9456 | plci->notifiedcall = 0; |
9457 | } | 9457 | } |
9458 | listen_check(plci->adapter); | 9458 | listen_check(plci->adapter); |
9459 | return TRUE; | 9459 | return true; |
9460 | } | 9460 | } |
9461 | } | 9461 | } |
9462 | return FALSE; | 9462 | return false; |
9463 | } | 9463 | } |
9464 | 9464 | ||
9465 | 9465 | ||
@@ -9815,7 +9815,7 @@ static void dtmf_command (dword Id, PLCI *plci, byte Rc) | |||
9815 | } | 9815 | } |
9816 | plci->dtmf_rec_active &= ~mask; | 9816 | plci->dtmf_rec_active &= ~mask; |
9817 | plci->internal_command = DTMF_COMMAND_2; | 9817 | plci->internal_command = DTMF_COMMAND_2; |
9818 | dtmf_enable_receiver (plci, FALSE); | 9818 | dtmf_enable_receiver (plci, false); |
9819 | return; | 9819 | return; |
9820 | } | 9820 | } |
9821 | Rc = OK; | 9821 | Rc = OK; |
@@ -10020,7 +10020,7 @@ static byte dtmf_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
10020 | } | 10020 | } |
10021 | } | 10021 | } |
10022 | start_internal_command (Id, plci, dtmf_command); | 10022 | start_internal_command (Id, plci, dtmf_command); |
10023 | return (FALSE); | 10023 | return (false); |
10024 | 10024 | ||
10025 | 10025 | ||
10026 | case DTMF_SEND_TONE: | 10026 | case DTMF_SEND_TONE: |
@@ -10079,7 +10079,7 @@ static byte dtmf_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
10079 | } | 10079 | } |
10080 | api_save_msg (dtmf_parms, "wwws", &plci->saved_msg); | 10080 | api_save_msg (dtmf_parms, "wwws", &plci->saved_msg); |
10081 | start_internal_command (Id, plci, dtmf_command); | 10081 | start_internal_command (Id, plci, dtmf_command); |
10082 | return (FALSE); | 10082 | return (false); |
10083 | 10083 | ||
10084 | default: | 10084 | default: |
10085 | dbug (1, dprintf ("[%06lx] %s,%d: DTMF unknown request %04x", | 10085 | dbug (1, dprintf ("[%06lx] %s,%d: DTMF unknown request %04x", |
@@ -10090,7 +10090,7 @@ static byte dtmf_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
10090 | } | 10090 | } |
10091 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, | 10091 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, |
10092 | "wws", Info, SELECTOR_DTMF, result); | 10092 | "wws", Info, SELECTOR_DTMF, result); |
10093 | return (FALSE); | 10093 | return (false); |
10094 | } | 10094 | } |
10095 | 10095 | ||
10096 | 10096 | ||
@@ -10842,10 +10842,10 @@ static struct | |||
10842 | byte to_pc; | 10842 | byte to_pc; |
10843 | } xconnect_write_prog[] = | 10843 | } xconnect_write_prog[] = |
10844 | { | 10844 | { |
10845 | { LI_COEF_CH_CH, FALSE, FALSE }, | 10845 | { LI_COEF_CH_CH, false, false }, |
10846 | { LI_COEF_CH_PC, FALSE, TRUE }, | 10846 | { LI_COEF_CH_PC, false, true }, |
10847 | { LI_COEF_PC_CH, TRUE, FALSE }, | 10847 | { LI_COEF_PC_CH, true, false }, |
10848 | { LI_COEF_PC_PC, TRUE, TRUE } | 10848 | { LI_COEF_PC_PC, true, true } |
10849 | }; | 10849 | }; |
10850 | 10850 | ||
10851 | 10851 | ||
@@ -10916,7 +10916,7 @@ static byte xconnect_write_coefs_process (dword Id, PLCI *plci, byte Rc) | |||
10916 | { | 10916 | { |
10917 | dbug (1, dprintf ("[%06x] %s,%d: Channel id wiped out", | 10917 | dbug (1, dprintf ("[%06x] %s,%d: Channel id wiped out", |
10918 | UnMapId (Id), (char *)(FILE_), __LINE__)); | 10918 | UnMapId (Id), (char *)(FILE_), __LINE__)); |
10919 | return (TRUE); | 10919 | return (true); |
10920 | } | 10920 | } |
10921 | i = a->li_base + (plci->li_bchannel_id - 1); | 10921 | i = a->li_base + (plci->li_bchannel_id - 1); |
10922 | j = plci->li_write_channel; | 10922 | j = plci->li_write_channel; |
@@ -10927,7 +10927,7 @@ static byte xconnect_write_coefs_process (dword Id, PLCI *plci, byte Rc) | |||
10927 | { | 10927 | { |
10928 | dbug (1, dprintf ("[%06lx] %s,%d: LI write coefs failed %02x", | 10928 | dbug (1, dprintf ("[%06lx] %s,%d: LI write coefs failed %02x", |
10929 | UnMapId (Id), (char *)(FILE_), __LINE__, Rc)); | 10929 | UnMapId (Id), (char *)(FILE_), __LINE__, Rc)); |
10930 | return (FALSE); | 10930 | return (false); |
10931 | } | 10931 | } |
10932 | } | 10932 | } |
10933 | if (li_config_table[i].adapter->manufacturer_features & MANUFACTURER_FEATURE_XCONNECT) | 10933 | if (li_config_table[i].adapter->manufacturer_features & MANUFACTURER_FEATURE_XCONNECT) |
@@ -10969,7 +10969,7 @@ static byte xconnect_write_coefs_process (dword Id, PLCI *plci, byte Rc) | |||
10969 | { | 10969 | { |
10970 | plci->internal_command = plci->li_write_command; | 10970 | plci->internal_command = plci->li_write_command; |
10971 | if (plci_nl_busy (plci)) | 10971 | if (plci_nl_busy (plci)) |
10972 | return (TRUE); | 10972 | return (true); |
10973 | to_ch = (a->li_pri) ? plci->li_bchannel_id - 1 : 0; | 10973 | to_ch = (a->li_pri) ? plci->li_bchannel_id - 1 : 0; |
10974 | *(p++) = UDATA_REQUEST_XCONNECT_TO; | 10974 | *(p++) = UDATA_REQUEST_XCONNECT_TO; |
10975 | do | 10975 | do |
@@ -11050,7 +11050,7 @@ static byte xconnect_write_coefs_process (dword Id, PLCI *plci, byte Rc) | |||
11050 | { | 11050 | { |
11051 | plci->internal_command = plci->li_write_command; | 11051 | plci->internal_command = plci->li_write_command; |
11052 | if (plci_nl_busy (plci)) | 11052 | if (plci_nl_busy (plci)) |
11053 | return (TRUE); | 11053 | return (true); |
11054 | if (a->li_pri) | 11054 | if (a->li_pri) |
11055 | { | 11055 | { |
11056 | *(p++) = UDATA_REQUEST_SET_MIXER_COEFS_PRI_SYNC; | 11056 | *(p++) = UDATA_REQUEST_SET_MIXER_COEFS_PRI_SYNC; |
@@ -11127,7 +11127,7 @@ static byte xconnect_write_coefs_process (dword Id, PLCI *plci, byte Rc) | |||
11127 | { | 11127 | { |
11128 | plci->internal_command = plci->li_write_command; | 11128 | plci->internal_command = plci->li_write_command; |
11129 | if (plci_nl_busy (plci)) | 11129 | if (plci_nl_busy (plci)) |
11130 | return (TRUE); | 11130 | return (true); |
11131 | if (j < a->li_base) | 11131 | if (j < a->li_base) |
11132 | j = a->li_base; | 11132 | j = a->li_base; |
11133 | if (a->li_pri) | 11133 | if (a->li_pri) |
@@ -11232,7 +11232,7 @@ static byte xconnect_write_coefs_process (dword Id, PLCI *plci, byte Rc) | |||
11232 | plci->NL.Req = plci->nl_req = (byte) N_UDATA; | 11232 | plci->NL.Req = plci->nl_req = (byte) N_UDATA; |
11233 | plci->adapter->request (&plci->NL); | 11233 | plci->adapter->request (&plci->NL); |
11234 | } | 11234 | } |
11235 | return (TRUE); | 11235 | return (true); |
11236 | } | 11236 | } |
11237 | 11237 | ||
11238 | 11238 | ||
@@ -11251,7 +11251,7 @@ static void mixer_notify_update (PLCI *plci, byte others) | |||
11251 | if (a->profile.Global_Options & GL_LINE_INTERCONNECT_SUPPORTED) | 11251 | if (a->profile.Global_Options & GL_LINE_INTERCONNECT_SUPPORTED) |
11252 | { | 11252 | { |
11253 | if (others) | 11253 | if (others) |
11254 | plci->li_notify_update = TRUE; | 11254 | plci->li_notify_update = true; |
11255 | i = 0; | 11255 | i = 0; |
11256 | do | 11256 | do |
11257 | { | 11257 | { |
@@ -11277,7 +11277,7 @@ static void mixer_notify_update (PLCI *plci, byte others) | |||
11277 | && (notify_plci->State) | 11277 | && (notify_plci->State) |
11278 | && notify_plci->NL.Id && !notify_plci->nl_remove_id) | 11278 | && notify_plci->NL.Id && !notify_plci->nl_remove_id) |
11279 | { | 11279 | { |
11280 | notify_plci->li_notify_update = TRUE; | 11280 | notify_plci->li_notify_update = true; |
11281 | ((CAPI_MSG *) msg)->header.length = 18; | 11281 | ((CAPI_MSG *) msg)->header.length = 18; |
11282 | ((CAPI_MSG *) msg)->header.appl_id = notify_plci->appl->Id; | 11282 | ((CAPI_MSG *) msg)->header.appl_id = notify_plci->appl->Id; |
11283 | ((CAPI_MSG *) msg)->header.command = _FACILITY_R; | 11283 | ((CAPI_MSG *) msg)->header.command = _FACILITY_R; |
@@ -11299,12 +11299,12 @@ static void mixer_notify_update (PLCI *plci, byte others) | |||
11299 | (char *)(FILE_), __LINE__, | 11299 | (char *)(FILE_), __LINE__, |
11300 | (dword)((notify_plci->Id << 8) | UnMapController (notify_plci->adapter->Id)), w)); | 11300 | (dword)((notify_plci->Id << 8) | UnMapController (notify_plci->adapter->Id)), w)); |
11301 | } | 11301 | } |
11302 | notify_plci->li_notify_update = FALSE; | 11302 | notify_plci->li_notify_update = false; |
11303 | } | 11303 | } |
11304 | } | 11304 | } |
11305 | } while (others && (notify_plci != NULL)); | 11305 | } while (others && (notify_plci != NULL)); |
11306 | if (others) | 11306 | if (others) |
11307 | plci->li_notify_update = FALSE; | 11307 | plci->li_notify_update = false; |
11308 | } | 11308 | } |
11309 | } | 11309 | } |
11310 | 11310 | ||
@@ -11318,7 +11318,7 @@ static void mixer_clear_config (PLCI *plci) | |||
11318 | (dword)((plci->Id << 8) | UnMapController (plci->adapter->Id)), | 11318 | (dword)((plci->Id << 8) | UnMapController (plci->adapter->Id)), |
11319 | (char *)(FILE_), __LINE__)); | 11319 | (char *)(FILE_), __LINE__)); |
11320 | 11320 | ||
11321 | plci->li_notify_update = FALSE; | 11321 | plci->li_notify_update = false; |
11322 | plci->li_plci_b_write_pos = 0; | 11322 | plci->li_plci_b_write_pos = 0; |
11323 | plci->li_plci_b_read_pos = 0; | 11323 | plci->li_plci_b_read_pos = 0; |
11324 | plci->li_plci_b_req_pos = 0; | 11324 | plci->li_plci_b_req_pos = 0; |
@@ -12159,7 +12159,7 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12159 | plci_b = li_check_plci_b (Id, plci, plci_b_id, plci_b_write_pos, &result[8]); | 12159 | plci_b = li_check_plci_b (Id, plci, plci_b_id, plci_b_write_pos, &result[8]); |
12160 | if (plci_b == NULL) | 12160 | if (plci_b == NULL) |
12161 | break; | 12161 | break; |
12162 | li_update_connect (Id, a, plci, plci_b_id, TRUE, li_flags); | 12162 | li_update_connect (Id, a, plci, plci_b_id, true, li_flags); |
12163 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | LI_PLCI_B_LAST_FLAG; | 12163 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | LI_PLCI_B_LAST_FLAG; |
12164 | plci_b_write_pos = (plci_b_write_pos == LI_PLCI_B_QUEUE_ENTRIES-1) ? 0 : plci_b_write_pos + 1; | 12164 | plci_b_write_pos = (plci_b_write_pos == LI_PLCI_B_QUEUE_ENTRIES-1) ? 0 : plci_b_write_pos + 1; |
12165 | plci->li_plci_b_write_pos = plci_b_write_pos; | 12165 | plci->li_plci_b_write_pos = plci_b_write_pos; |
@@ -12188,7 +12188,7 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12188 | plci_b_write_pos = plci->li_plci_b_write_pos; | 12188 | plci_b_write_pos = plci->li_plci_b_write_pos; |
12189 | participant_parms_pos = 0; | 12189 | participant_parms_pos = 0; |
12190 | result_pos = 7; | 12190 | result_pos = 7; |
12191 | li2_update_connect (Id, a, plci, UnMapId (Id), TRUE, li_flags); | 12191 | li2_update_connect (Id, a, plci, UnMapId (Id), true, li_flags); |
12192 | while (participant_parms_pos < li_req_parms[1].length) | 12192 | while (participant_parms_pos < li_req_parms[1].length) |
12193 | { | 12193 | { |
12194 | result[result_pos] = 6; | 12194 | result[result_pos] = 6; |
@@ -12224,7 +12224,7 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12224 | plci_b = li2_check_plci_b (Id, plci, plci_b_id, plci_b_write_pos, &result[result_pos - 2]); | 12224 | plci_b = li2_check_plci_b (Id, plci, plci_b_id, plci_b_write_pos, &result[result_pos - 2]); |
12225 | if (plci_b != NULL) | 12225 | if (plci_b != NULL) |
12226 | { | 12226 | { |
12227 | li2_update_connect (Id, a, plci, plci_b_id, TRUE, li_flags); | 12227 | li2_update_connect (Id, a, plci, plci_b_id, true, li_flags); |
12228 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | | 12228 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | |
12229 | ((li_flags & (LI2_FLAG_INTERCONNECT_A_B | LI2_FLAG_INTERCONNECT_B_A | | 12229 | ((li_flags & (LI2_FLAG_INTERCONNECT_A_B | LI2_FLAG_INTERCONNECT_B_A | |
12230 | LI2_FLAG_PCCONNECT_A_B | LI2_FLAG_PCCONNECT_B_A)) ? 0 : LI_PLCI_B_DISC_FLAG); | 12230 | LI2_FLAG_PCCONNECT_A_B | LI2_FLAG_PCCONNECT_B_A)) ? 0 : LI_PLCI_B_DISC_FLAG); |
@@ -12249,13 +12249,13 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12249 | } | 12249 | } |
12250 | mixer_calculate_coefs (a); | 12250 | mixer_calculate_coefs (a); |
12251 | plci->li_channel_bits = li_config_table[a->li_base + (plci->li_bchannel_id - 1)].channel; | 12251 | plci->li_channel_bits = li_config_table[a->li_base + (plci->li_bchannel_id - 1)].channel; |
12252 | mixer_notify_update (plci, TRUE); | 12252 | mixer_notify_update (plci, true); |
12253 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, | 12253 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, |
12254 | "wwS", Info, SELECTOR_LINE_INTERCONNECT, result); | 12254 | "wwS", Info, SELECTOR_LINE_INTERCONNECT, result); |
12255 | plci->command = 0; | 12255 | plci->command = 0; |
12256 | plci->li_cmd = GET_WORD (li_parms[0].info); | 12256 | plci->li_cmd = GET_WORD (li_parms[0].info); |
12257 | start_internal_command (Id, plci, mixer_command); | 12257 | start_internal_command (Id, plci, mixer_command); |
12258 | return (FALSE); | 12258 | return (false); |
12259 | 12259 | ||
12260 | case LI_REQ_DISCONNECT: | 12260 | case LI_REQ_DISCONNECT: |
12261 | if (li_parms[1].length == 4) | 12261 | if (li_parms[1].length == 4) |
@@ -12283,7 +12283,7 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12283 | plci_b = li_check_plci_b (Id, plci, plci_b_id, plci_b_write_pos, &result[8]); | 12283 | plci_b = li_check_plci_b (Id, plci, plci_b_id, plci_b_write_pos, &result[8]); |
12284 | if (plci_b == NULL) | 12284 | if (plci_b == NULL) |
12285 | break; | 12285 | break; |
12286 | li_update_connect (Id, a, plci, plci_b_id, FALSE, 0); | 12286 | li_update_connect (Id, a, plci, plci_b_id, false, 0); |
12287 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | LI_PLCI_B_DISC_FLAG | LI_PLCI_B_LAST_FLAG; | 12287 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | LI_PLCI_B_DISC_FLAG | LI_PLCI_B_LAST_FLAG; |
12288 | plci_b_write_pos = (plci_b_write_pos == LI_PLCI_B_QUEUE_ENTRIES-1) ? 0 : plci_b_write_pos + 1; | 12288 | plci_b_write_pos = (plci_b_write_pos == LI_PLCI_B_QUEUE_ENTRIES-1) ? 0 : plci_b_write_pos + 1; |
12289 | plci->li_plci_b_write_pos = plci_b_write_pos; | 12289 | plci->li_plci_b_write_pos = plci_b_write_pos; |
@@ -12345,7 +12345,7 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12345 | plci_b = li2_check_plci_b (Id, plci, plci_b_id, plci_b_write_pos, &result[result_pos - 2]); | 12345 | plci_b = li2_check_plci_b (Id, plci, plci_b_id, plci_b_write_pos, &result[result_pos - 2]); |
12346 | if (plci_b != NULL) | 12346 | if (plci_b != NULL) |
12347 | { | 12347 | { |
12348 | li2_update_connect (Id, a, plci, plci_b_id, FALSE, 0); | 12348 | li2_update_connect (Id, a, plci, plci_b_id, false, 0); |
12349 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | LI_PLCI_B_DISC_FLAG; | 12349 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | LI_PLCI_B_DISC_FLAG; |
12350 | plci_b_write_pos = (plci_b_write_pos == LI_PLCI_B_QUEUE_ENTRIES-1) ? 0 : plci_b_write_pos + 1; | 12350 | plci_b_write_pos = (plci_b_write_pos == LI_PLCI_B_QUEUE_ENTRIES-1) ? 0 : plci_b_write_pos + 1; |
12351 | } | 12351 | } |
@@ -12368,13 +12368,13 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12368 | } | 12368 | } |
12369 | mixer_calculate_coefs (a); | 12369 | mixer_calculate_coefs (a); |
12370 | plci->li_channel_bits = li_config_table[a->li_base + (plci->li_bchannel_id - 1)].channel; | 12370 | plci->li_channel_bits = li_config_table[a->li_base + (plci->li_bchannel_id - 1)].channel; |
12371 | mixer_notify_update (plci, TRUE); | 12371 | mixer_notify_update (plci, true); |
12372 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, | 12372 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, |
12373 | "wwS", Info, SELECTOR_LINE_INTERCONNECT, result); | 12373 | "wwS", Info, SELECTOR_LINE_INTERCONNECT, result); |
12374 | plci->command = 0; | 12374 | plci->command = 0; |
12375 | plci->li_cmd = GET_WORD (li_parms[0].info); | 12375 | plci->li_cmd = GET_WORD (li_parms[0].info); |
12376 | start_internal_command (Id, plci, mixer_command); | 12376 | start_internal_command (Id, plci, mixer_command); |
12377 | return (FALSE); | 12377 | return (false); |
12378 | 12378 | ||
12379 | case LI_REQ_SILENT_UPDATE: | 12379 | case LI_REQ_SILENT_UPDATE: |
12380 | if (!plci || !plci->State | 12380 | if (!plci || !plci->State |
@@ -12384,7 +12384,7 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12384 | { | 12384 | { |
12385 | dbug (1, dprintf ("[%06lx] %s,%d: Wrong state", | 12385 | dbug (1, dprintf ("[%06lx] %s,%d: Wrong state", |
12386 | UnMapId (Id), (char *)(FILE_), __LINE__)); | 12386 | UnMapId (Id), (char *)(FILE_), __LINE__)); |
12387 | return (FALSE); | 12387 | return (false); |
12388 | } | 12388 | } |
12389 | plci_b_write_pos = plci->li_plci_b_write_pos; | 12389 | plci_b_write_pos = plci->li_plci_b_write_pos; |
12390 | if (((plci->li_plci_b_read_pos > plci_b_write_pos) ? plci->li_plci_b_read_pos : | 12390 | if (((plci->li_plci_b_read_pos > plci_b_write_pos) ? plci->li_plci_b_read_pos : |
@@ -12392,7 +12392,7 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12392 | { | 12392 | { |
12393 | dbug (1, dprintf ("[%06lx] %s,%d: LI request overrun", | 12393 | dbug (1, dprintf ("[%06lx] %s,%d: LI request overrun", |
12394 | UnMapId (Id), (char *)(FILE_), __LINE__)); | 12394 | UnMapId (Id), (char *)(FILE_), __LINE__)); |
12395 | return (FALSE); | 12395 | return (false); |
12396 | } | 12396 | } |
12397 | i = (plci_b_write_pos == 0) ? LI_PLCI_B_QUEUE_ENTRIES-1 : plci_b_write_pos - 1; | 12397 | i = (plci_b_write_pos == 0) ? LI_PLCI_B_QUEUE_ENTRIES-1 : plci_b_write_pos - 1; |
12398 | if ((plci_b_write_pos == plci->li_plci_b_read_pos) | 12398 | if ((plci_b_write_pos == plci->li_plci_b_read_pos) |
@@ -12408,7 +12408,7 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12408 | plci->command = 0; | 12408 | plci->command = 0; |
12409 | plci->li_cmd = GET_WORD (li_parms[0].info); | 12409 | plci->li_cmd = GET_WORD (li_parms[0].info); |
12410 | start_internal_command (Id, plci, mixer_command); | 12410 | start_internal_command (Id, plci, mixer_command); |
12411 | return (FALSE); | 12411 | return (false); |
12412 | 12412 | ||
12413 | default: | 12413 | default: |
12414 | dbug (1, dprintf ("[%06lx] %s,%d: LI unknown request %04x", | 12414 | dbug (1, dprintf ("[%06lx] %s,%d: LI unknown request %04x", |
@@ -12418,7 +12418,7 @@ static byte mixer_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI | |||
12418 | } | 12418 | } |
12419 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, | 12419 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, |
12420 | "wwS", Info, SELECTOR_LINE_INTERCONNECT, result); | 12420 | "wwS", Info, SELECTOR_LINE_INTERCONNECT, result); |
12421 | return (FALSE); | 12421 | return (false); |
12422 | } | 12422 | } |
12423 | 12423 | ||
12424 | 12424 | ||
@@ -12523,7 +12523,7 @@ static void mixer_indication_xconnect_from (dword Id, PLCI *plci, byte *msg, | |||
12523 | if (!plci->internal_command) | 12523 | if (!plci->internal_command) |
12524 | next_internal_command (Id, plci); | 12524 | next_internal_command (Id, plci); |
12525 | } | 12525 | } |
12526 | mixer_notify_update (plci, TRUE); | 12526 | mixer_notify_update (plci, true); |
12527 | } | 12527 | } |
12528 | 12528 | ||
12529 | 12529 | ||
@@ -12547,12 +12547,12 @@ static byte mixer_notify_source_removed (PLCI *plci, dword plci_b_id) | |||
12547 | dbug (1, dprintf ("[%06lx] %s,%d: LI request overrun", | 12547 | dbug (1, dprintf ("[%06lx] %s,%d: LI request overrun", |
12548 | (dword)((plci->Id << 8) | UnMapController (plci->adapter->Id)), | 12548 | (dword)((plci->Id << 8) | UnMapController (plci->adapter->Id)), |
12549 | (char *)(FILE_), __LINE__)); | 12549 | (char *)(FILE_), __LINE__)); |
12550 | return (FALSE); | 12550 | return (false); |
12551 | } | 12551 | } |
12552 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | LI_PLCI_B_DISC_FLAG; | 12552 | plci->li_plci_b_queue[plci_b_write_pos] = plci_b_id | LI_PLCI_B_DISC_FLAG; |
12553 | plci_b_write_pos = (plci_b_write_pos == LI_PLCI_B_QUEUE_ENTRIES-1) ? 0 : plci_b_write_pos + 1; | 12553 | plci_b_write_pos = (plci_b_write_pos == LI_PLCI_B_QUEUE_ENTRIES-1) ? 0 : plci_b_write_pos + 1; |
12554 | plci->li_plci_b_write_pos = plci_b_write_pos; | 12554 | plci->li_plci_b_write_pos = plci_b_write_pos; |
12555 | return (TRUE); | 12555 | return (true); |
12556 | } | 12556 | } |
12557 | 12557 | ||
12558 | 12558 | ||
@@ -12596,7 +12596,7 @@ static void mixer_remove (PLCI *plci) | |||
12596 | } | 12596 | } |
12597 | mixer_clear_config (plci); | 12597 | mixer_clear_config (plci); |
12598 | mixer_calculate_coefs (a); | 12598 | mixer_calculate_coefs (a); |
12599 | mixer_notify_update (plci, TRUE); | 12599 | mixer_notify_update (plci, true); |
12600 | } | 12600 | } |
12601 | li_config_table[i].plci = NULL; | 12601 | li_config_table[i].plci = NULL; |
12602 | plci->li_bchannel_id = 0; | 12602 | plci->li_bchannel_id = 0; |
@@ -12883,29 +12883,29 @@ static byte ec_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *p | |||
12883 | case EC_ENABLE_OPERATION: | 12883 | case EC_ENABLE_OPERATION: |
12884 | plci->ec_idi_options &= ~LEC_FREEZE_COEFFICIENTS; | 12884 | plci->ec_idi_options &= ~LEC_FREEZE_COEFFICIENTS; |
12885 | start_internal_command (Id, plci, ec_command); | 12885 | start_internal_command (Id, plci, ec_command); |
12886 | return (FALSE); | 12886 | return (false); |
12887 | 12887 | ||
12888 | case EC_DISABLE_OPERATION: | 12888 | case EC_DISABLE_OPERATION: |
12889 | plci->ec_idi_options = LEC_ENABLE_ECHO_CANCELLER | | 12889 | plci->ec_idi_options = LEC_ENABLE_ECHO_CANCELLER | |
12890 | LEC_MANUAL_DISABLE | LEC_ENABLE_NONLINEAR_PROCESSING | | 12890 | LEC_MANUAL_DISABLE | LEC_ENABLE_NONLINEAR_PROCESSING | |
12891 | LEC_RESET_COEFFICIENTS; | 12891 | LEC_RESET_COEFFICIENTS; |
12892 | start_internal_command (Id, plci, ec_command); | 12892 | start_internal_command (Id, plci, ec_command); |
12893 | return (FALSE); | 12893 | return (false); |
12894 | 12894 | ||
12895 | case EC_FREEZE_COEFFICIENTS: | 12895 | case EC_FREEZE_COEFFICIENTS: |
12896 | plci->ec_idi_options |= LEC_FREEZE_COEFFICIENTS; | 12896 | plci->ec_idi_options |= LEC_FREEZE_COEFFICIENTS; |
12897 | start_internal_command (Id, plci, ec_command); | 12897 | start_internal_command (Id, plci, ec_command); |
12898 | return (FALSE); | 12898 | return (false); |
12899 | 12899 | ||
12900 | case EC_RESUME_COEFFICIENT_UPDATE: | 12900 | case EC_RESUME_COEFFICIENT_UPDATE: |
12901 | plci->ec_idi_options &= ~LEC_FREEZE_COEFFICIENTS; | 12901 | plci->ec_idi_options &= ~LEC_FREEZE_COEFFICIENTS; |
12902 | start_internal_command (Id, plci, ec_command); | 12902 | start_internal_command (Id, plci, ec_command); |
12903 | return (FALSE); | 12903 | return (false); |
12904 | 12904 | ||
12905 | case EC_RESET_COEFFICIENTS: | 12905 | case EC_RESET_COEFFICIENTS: |
12906 | plci->ec_idi_options |= LEC_RESET_COEFFICIENTS; | 12906 | plci->ec_idi_options |= LEC_RESET_COEFFICIENTS; |
12907 | start_internal_command (Id, plci, ec_command); | 12907 | start_internal_command (Id, plci, ec_command); |
12908 | return (FALSE); | 12908 | return (false); |
12909 | 12909 | ||
12910 | default: | 12910 | default: |
12911 | dbug (1, dprintf ("[%06lx] %s,%d: EC unknown request %04x", | 12911 | dbug (1, dprintf ("[%06lx] %s,%d: EC unknown request %04x", |
@@ -12978,14 +12978,14 @@ static byte ec_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *p | |||
12978 | case EC_ENABLE_OPERATION: | 12978 | case EC_ENABLE_OPERATION: |
12979 | plci->ec_idi_options &= ~LEC_FREEZE_COEFFICIENTS; | 12979 | plci->ec_idi_options &= ~LEC_FREEZE_COEFFICIENTS; |
12980 | start_internal_command (Id, plci, ec_command); | 12980 | start_internal_command (Id, plci, ec_command); |
12981 | return (FALSE); | 12981 | return (false); |
12982 | 12982 | ||
12983 | case EC_DISABLE_OPERATION: | 12983 | case EC_DISABLE_OPERATION: |
12984 | plci->ec_idi_options = LEC_ENABLE_ECHO_CANCELLER | | 12984 | plci->ec_idi_options = LEC_ENABLE_ECHO_CANCELLER | |
12985 | LEC_MANUAL_DISABLE | LEC_ENABLE_NONLINEAR_PROCESSING | | 12985 | LEC_MANUAL_DISABLE | LEC_ENABLE_NONLINEAR_PROCESSING | |
12986 | LEC_RESET_COEFFICIENTS; | 12986 | LEC_RESET_COEFFICIENTS; |
12987 | start_internal_command (Id, plci, ec_command); | 12987 | start_internal_command (Id, plci, ec_command); |
12988 | return (FALSE); | 12988 | return (false); |
12989 | 12989 | ||
12990 | default: | 12990 | default: |
12991 | dbug (1, dprintf ("[%06lx] %s,%d: EC unknown request %04x", | 12991 | dbug (1, dprintf ("[%06lx] %s,%d: EC unknown request %04x", |
@@ -12999,7 +12999,7 @@ static byte ec_request (dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *p | |||
12999 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, | 12999 | sendf (appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, |
13000 | "wws", Info, (appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) ? | 13000 | "wws", Info, (appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) ? |
13001 | PRIV_SELECTOR_ECHO_CANCELLER : SELECTOR_ECHO_CANCELLER, result); | 13001 | PRIV_SELECTOR_ECHO_CANCELLER : SELECTOR_ECHO_CANCELLER, result); |
13002 | return (FALSE); | 13002 | return (false); |
13003 | } | 13003 | } |
13004 | 13004 | ||
13005 | 13005 | ||
@@ -13563,7 +13563,7 @@ static void adjust_b_clear (PLCI *plci) | |||
13563 | (dword)((plci->Id << 8) | UnMapController (plci->adapter->Id)), | 13563 | (dword)((plci->Id << 8) | UnMapController (plci->adapter->Id)), |
13564 | (char *)(FILE_), __LINE__)); | 13564 | (char *)(FILE_), __LINE__)); |
13565 | 13565 | ||
13566 | plci->adjust_b_restore = FALSE; | 13566 | plci->adjust_b_restore = false; |
13567 | } | 13567 | } |
13568 | 13568 | ||
13569 | 13569 | ||
@@ -13832,7 +13832,7 @@ static word adjust_b_process (dword Id, PLCI *plci, byte Rc) | |||
13832 | } | 13832 | } |
13833 | if (plci->adjust_b_mode & ADJUST_B_MODE_USER_CONNECT) | 13833 | if (plci->adjust_b_mode & ADJUST_B_MODE_USER_CONNECT) |
13834 | { | 13834 | { |
13835 | plci->adjust_b_restore = TRUE; | 13835 | plci->adjust_b_restore = true; |
13836 | break; | 13836 | break; |
13837 | } | 13837 | } |
13838 | plci->adjust_b_state = ADJUST_B_CONNECT_1; | 13838 | plci->adjust_b_state = ADJUST_B_CONNECT_1; |
@@ -14768,19 +14768,19 @@ static void group_optimization(DIVA_CAPI_ADAPTER * a, PLCI * plci) | |||
14768 | { | 14768 | { |
14769 | if(application[i].Id && a->CIP_Mask[i] ) | 14769 | if(application[i].Id && a->CIP_Mask[i] ) |
14770 | { | 14770 | { |
14771 | for(k=0,busy=FALSE; k<a->max_plci; k++) | 14771 | for(k=0,busy=false; k<a->max_plci; k++) |
14772 | { | 14772 | { |
14773 | if(a->plci[k].Id) | 14773 | if(a->plci[k].Id) |
14774 | { | 14774 | { |
14775 | auxplci = &a->plci[k]; | 14775 | auxplci = &a->plci[k]; |
14776 | if(auxplci->appl == &application[i]) /* application has a busy PLCI */ | 14776 | if(auxplci->appl == &application[i]) /* application has a busy PLCI */ |
14777 | { | 14777 | { |
14778 | busy = TRUE; | 14778 | busy = true; |
14779 | dbug(1,dprintf("Appl 0x%x is busy",i+1)); | 14779 | dbug(1,dprintf("Appl 0x%x is busy",i+1)); |
14780 | } | 14780 | } |
14781 | else if(test_c_ind_mask_bit (auxplci, i)) /* application has an incoming call pending */ | 14781 | else if(test_c_ind_mask_bit (auxplci, i)) /* application has an incoming call pending */ |
14782 | { | 14782 | { |
14783 | busy = TRUE; | 14783 | busy = true; |
14784 | dbug(1,dprintf("Appl 0x%x has inc. call pending",i+1)); | 14784 | dbug(1,dprintf("Appl 0x%x has inc. call pending",i+1)); |
14785 | } | 14785 | } |
14786 | } | 14786 | } |
@@ -14791,13 +14791,13 @@ static void group_optimization(DIVA_CAPI_ADAPTER * a, PLCI * plci) | |||
14791 | if(j==MAX_CIP_TYPES) /* all groups are in use but group still not found */ | 14791 | if(j==MAX_CIP_TYPES) /* all groups are in use but group still not found */ |
14792 | { /* the MAX_CIP_TYPES group enables all calls because of field overflow */ | 14792 | { /* the MAX_CIP_TYPES group enables all calls because of field overflow */ |
14793 | appl_number_group_type[i] = MAX_CIP_TYPES; | 14793 | appl_number_group_type[i] = MAX_CIP_TYPES; |
14794 | group_found=TRUE; | 14794 | group_found=true; |
14795 | dbug(1,dprintf("Field overflow appl 0x%x",i+1)); | 14795 | dbug(1,dprintf("Field overflow appl 0x%x",i+1)); |
14796 | } | 14796 | } |
14797 | else if( (info_mask_group[j]==a->CIP_Mask[i]) && (cip_mask_group[j]==a->Info_Mask[i]) ) | 14797 | else if( (info_mask_group[j]==a->CIP_Mask[i]) && (cip_mask_group[j]==a->Info_Mask[i]) ) |
14798 | { /* is group already present ? */ | 14798 | { /* is group already present ? */ |
14799 | appl_number_group_type[i] = j|0x80; /* store the group number for each application */ | 14799 | appl_number_group_type[i] = j|0x80; /* store the group number for each application */ |
14800 | group_found=TRUE; | 14800 | group_found=true; |
14801 | dbug(1,dprintf("Group 0x%x found with appl 0x%x, CIP=0x%lx",appl_number_group_type[i],i+1,info_mask_group[j])); | 14801 | dbug(1,dprintf("Group 0x%x found with appl 0x%x, CIP=0x%lx",appl_number_group_type[i],i+1,info_mask_group[j])); |
14802 | } | 14802 | } |
14803 | else if(!info_mask_group[j]) | 14803 | else if(!info_mask_group[j]) |
@@ -14805,7 +14805,7 @@ static void group_optimization(DIVA_CAPI_ADAPTER * a, PLCI * plci) | |||
14805 | appl_number_group_type[i] = j|0x80; /* store the group number for each application */ | 14805 | appl_number_group_type[i] = j|0x80; /* store the group number for each application */ |
14806 | info_mask_group[j] = a->CIP_Mask[i]; /* store the new CIP mask for the new group */ | 14806 | info_mask_group[j] = a->CIP_Mask[i]; /* store the new CIP mask for the new group */ |
14807 | cip_mask_group[j] = a->Info_Mask[i]; /* store the new Info_Mask for this new group */ | 14807 | cip_mask_group[j] = a->Info_Mask[i]; /* store the new Info_Mask for this new group */ |
14808 | group_found=TRUE; | 14808 | group_found=true; |
14809 | dbug(1,dprintf("New Group 0x%x established with appl 0x%x, CIP=0x%lx",appl_number_group_type[i],i+1,info_mask_group[j])); | 14809 | dbug(1,dprintf("New Group 0x%x established with appl 0x%x, CIP=0x%lx",appl_number_group_type[i],i+1,info_mask_group[j])); |
14810 | } | 14810 | } |
14811 | } | 14811 | } |
@@ -14860,7 +14860,7 @@ word CapiRegister(word id) | |||
14860 | } | 14860 | } |
14861 | } | 14861 | } |
14862 | 14862 | ||
14863 | if(appls_found) return TRUE; | 14863 | if(appls_found) return true; |
14864 | for(i=0; i<max_adapter; i++) /* scan all adapters... */ | 14864 | for(i=0; i<max_adapter; i++) /* scan all adapters... */ |
14865 | { | 14865 | { |
14866 | a = &adapter[i]; | 14866 | a = &adapter[i]; |
@@ -14889,7 +14889,7 @@ word CapiRegister(word id) | |||
14889 | } | 14889 | } |
14890 | } | 14890 | } |
14891 | } | 14891 | } |
14892 | return FALSE; | 14892 | return false; |
14893 | } | 14893 | } |
14894 | 14894 | ||
14895 | /*------------------------------------------------------------------*/ | 14895 | /*------------------------------------------------------------------*/ |
diff --git a/drivers/isdn/hardware/eicon/os_pri.c b/drivers/isdn/hardware/eicon/os_pri.c index a296a846f296..903356547b79 100644 --- a/drivers/isdn/hardware/eicon/os_pri.c +++ b/drivers/isdn/hardware/eicon/os_pri.c | |||
@@ -487,7 +487,7 @@ diva_pri_start_adapter(PISDN_ADAPTER IoAdapter, | |||
487 | } | 487 | } |
488 | DIVA_OS_MEM_DETACH_ADDRESS(IoAdapter, boot); | 488 | DIVA_OS_MEM_DETACH_ADDRESS(IoAdapter, boot); |
489 | 489 | ||
490 | IoAdapter->Initialized = TRUE; | 490 | IoAdapter->Initialized = true; |
491 | 491 | ||
492 | /* | 492 | /* |
493 | Check Interrupt | 493 | Check Interrupt |
@@ -504,7 +504,7 @@ diva_pri_start_adapter(PISDN_ADAPTER IoAdapter, | |||
504 | if (!IoAdapter->IrqCount) { | 504 | if (!IoAdapter->IrqCount) { |
505 | DBG_ERR(("A: A(%d) interrupt test failed", | 505 | DBG_ERR(("A: A(%d) interrupt test failed", |
506 | IoAdapter->ANum)) | 506 | IoAdapter->ANum)) |
507 | IoAdapter->Initialized = FALSE; | 507 | IoAdapter->Initialized = false; |
508 | IoAdapter->stop(IoAdapter); | 508 | IoAdapter->stop(IoAdapter); |
509 | return (-1); | 509 | return (-1); |
510 | } | 510 | } |
diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h index 2444811e0b38..16714cb0ef7d 100644 --- a/drivers/isdn/hardware/eicon/platform.h +++ b/drivers/isdn/hardware/eicon/platform.h | |||
@@ -71,14 +71,6 @@ | |||
71 | #define qword u64 | 71 | #define qword u64 |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #ifndef TRUE | ||
75 | #define TRUE 1 | ||
76 | #endif | ||
77 | |||
78 | #ifndef FALSE | ||
79 | #define FALSE 0 | ||
80 | #endif | ||
81 | |||
82 | #ifndef NULL | 74 | #ifndef NULL |
83 | #define NULL ((void *) 0) | 75 | #define NULL ((void *) 0) |
84 | #endif | 76 | #endif |