[PATCH] drivers/isdn/hardware/eicon/: Convert to generic boolean-values

2007-01-26 Thread Richard Knutsson
Signed-off-by: Richard Knutsson <[EMAIL PROTECTED]>
---
Compile-tested with "allyes", "allmod" & "allno" on i386

 capifunc.c |4
 di.c   |   16 +-
 message.c  |  360 ++---
 os_pri.c   |4
 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 0afd763..ff284ae 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)
  */
 void *TransmitBufferSet(APPL * appl, dword ref)
 {
-   appl->xbuffer_used[ref] = TRUE;
+   appl->xbuffer_used[ref] = true;
DBG_PRV1(("%d:xbuf_used(%d)", appl->Id, ref + 1))
return (void *) ref;
 }
@@ -202,7 +202,7 @@ void *TransmitBufferGet(APPL * appl, void *p)
 
 void TransmitBufferFree(APPL * appl, void *p)
 {
-   appl->xbuffer_used[(dword) p] = FALSE;
+   appl->xbuffer_used[(dword) p] = false;
DBG_PRV1(("%d:xbuf_free(%d)", appl->Id, ((dword) p) + 1))
 }
 
diff --git a/drivers/isdn/hardware/eicon/di.c b/drivers/isdn/hardware/eicon/di.c
index e1df8d9..ce8df38 100644
--- a/drivers/isdn/hardware/eicon/di.c
+++ b/drivers/isdn/hardware/eicon/di.c
@@ -173,16 +173,16 @@ void pr_out(ADAPTER * a)
 xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->MInd,
   a->IdTypeTable[this->No]);
 a->ram_out(a, >Req, this->MInd);
-more = TRUE;
+more = true;
   }
   else {
 xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->Req,
   a->IdTypeTable[this->No]);
 this->More |=XMOREF;
 a->ram_out(a, >Req, this->Req);
-more = FALSE;
+more = false;
 if (a->FlowControlIdTable[this->ReqCh] == this->Id)
-  a->FlowControlSkipTable[this->ReqCh] = TRUE;
+  a->FlowControlSkipTable[this->ReqCh] = true;
 /*
Note that remove request was sent to the card
*/
@@ -311,7 +311,7 @@ byte pr_dpc(ADAPTER * a)
 /* are marked RNR   */
   if(RNRId && RNRId==a->ram_in(a, >IndId)) {
 a->ram_out(a, >Ind, 0);
-a->ram_out(a, >RNR, TRUE);
+a->ram_out(a, >RNR, true);
   }
   else {
 Ind = a->ram_in(a, >Ind);
@@ -331,7 +331,7 @@ byte pr_dpc(ADAPTER * a)
 dtrc(dprintf("RNR"));
 a->ram_out(a, >Ind, 0);
 RNRId = a->ram_in(a, >IndId);
-a->ram_out(a, >RNR, TRUE);
+a->ram_out(a, >RNR, true);
   }
 }
   }
@@ -340,7 +340,7 @@ byte pr_dpc(ADAPTER * a)
 }
 a->ram_out(a, _RAM->IndOutput, 0);
   }
-  return FALSE;
+  return false;
 }
 byte scom_test_int(ADAPTER * a)
 {
@@ -399,7 +399,7 @@ byte isdn_rc(ADAPTER * a,
   return (0);
 }
 if (extended_info_type == DIVA_RC_TYPE_REMOVE_COMPLETE)
-  a->RcExtensionSupported = TRUE;
+  a->RcExtensionSupported = true;
   }
   a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_REMOVE_PENDING;
   a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_NO_RC_CANCELLING;
@@ -428,7 +428,7 @@ byte isdn_rc(ADAPTER * a,
 }
 if (Rc==OK_FC) {
   a->FlowControlIdTable[Ch] = Id;
-  a->FlowControlSkipTable[Ch] = FALSE;
+  a->FlowControlSkipTable[Ch] = false;
   this->Rc = Rc;
   this->More &= ~(XBUSY | XMOREC);
   this->complete=0xff;
diff --git a/drivers/isdn/hardware/eicon/message.c 
b/drivers/isdn/hardware/eicon/message.c
index f9b00f1..ab1c112 100644
--- a/drivers/isdn/hardware/eicon/message.c
+++ b/drivers/isdn/hardware/eicon/message.c
@@ -253,7 +253,7 @@ extern APPL   * application;
 
 
 
-static byte remove_started = FALSE;
+static byte remove_started = false;
 static PLCI dummy_plci;
 
 
@@ -456,12 +456,12 @@ word api_put(APPL   * appl, CAPI_MSG   * msg)
 
 return _QUEUE_FULL;
   }
-  c = FALSE;
+  c = false;
   if byte   *) msg) < ((byte   *)(plci->msg_in_queue)))
|| (((byte   *) msg) >= ((byte   *)(plci->msg_in_queue)) + 
sizeof(plci->msg_in_queue)))
   {
 if (plci->msg_in_write_pos != plci->msg_in_read_pos)
-  c = TRUE;
+  c = true;
   }
   if (msg->header.command == _DATA_B3_R)
   {
@@ -506,13 +506,13 @@ word api_put(APPL   * appl, CAPI_MSG   * msg)
 
 return _QUEUE_FULL;
   }
-  c = TRUE;
+  c = true;
 }
   }
   else
   {
 if (plci->req_in || plci->internal_command)
-  c = TRUE;
+  c = true;
 else
 {
   plci->command = msg->header.command;
@@ -626,10 +626,10 @@ word api_parse(byte   * msg, word length, byte * format, 
API_PARSE * parms)
   break;
 }
 
-if(p>length) return TRUE;
+if(p>length) return true;
   }
   if(parms) parms[i].info = NULL;
- 

[PATCH] drivers/isdn/hardware/eicon/: Convert to generic boolean-values

2007-01-26 Thread Richard Knutsson
Signed-off-by: Richard Knutsson [EMAIL PROTECTED]
---
Compile-tested with allyes, allmod  allno on i386

 capifunc.c |4
 di.c   |   16 +-
 message.c  |  360 ++---
 os_pri.c   |4
 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 0afd763..ff284ae 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)
  */
 void *TransmitBufferSet(APPL * appl, dword ref)
 {
-   appl-xbuffer_used[ref] = TRUE;
+   appl-xbuffer_used[ref] = true;
DBG_PRV1((%d:xbuf_used(%d), appl-Id, ref + 1))
return (void *) ref;
 }
@@ -202,7 +202,7 @@ void *TransmitBufferGet(APPL * appl, void *p)
 
 void TransmitBufferFree(APPL * appl, void *p)
 {
-   appl-xbuffer_used[(dword) p] = FALSE;
+   appl-xbuffer_used[(dword) p] = false;
DBG_PRV1((%d:xbuf_free(%d), appl-Id, ((dword) p) + 1))
 }
 
diff --git a/drivers/isdn/hardware/eicon/di.c b/drivers/isdn/hardware/eicon/di.c
index e1df8d9..ce8df38 100644
--- a/drivers/isdn/hardware/eicon/di.c
+++ b/drivers/isdn/hardware/eicon/di.c
@@ -173,16 +173,16 @@ void pr_out(ADAPTER * a)
 xdi_xlog_request (XDI_A_NR(a), this-Id, this-ReqCh, this-MInd,
   a-IdTypeTable[this-No]);
 a-ram_out(a, ReqOut-Req, this-MInd);
-more = TRUE;
+more = true;
   }
   else {
 xdi_xlog_request (XDI_A_NR(a), this-Id, this-ReqCh, this-Req,
   a-IdTypeTable[this-No]);
 this-More |=XMOREF;
 a-ram_out(a, ReqOut-Req, this-Req);
-more = FALSE;
+more = false;
 if (a-FlowControlIdTable[this-ReqCh] == this-Id)
-  a-FlowControlSkipTable[this-ReqCh] = TRUE;
+  a-FlowControlSkipTable[this-ReqCh] = true;
 /*
Note that remove request was sent to the card
*/
@@ -311,7 +311,7 @@ byte pr_dpc(ADAPTER * a)
 /* are marked RNR   */
   if(RNRId  RNRId==a-ram_in(a, IndIn-IndId)) {
 a-ram_out(a, IndIn-Ind, 0);
-a-ram_out(a, IndIn-RNR, TRUE);
+a-ram_out(a, IndIn-RNR, true);
   }
   else {
 Ind = a-ram_in(a, IndIn-Ind);
@@ -331,7 +331,7 @@ byte pr_dpc(ADAPTER * a)
 dtrc(dprintf(RNR));
 a-ram_out(a, IndIn-Ind, 0);
 RNRId = a-ram_in(a, IndIn-IndId);
-a-ram_out(a, IndIn-RNR, TRUE);
+a-ram_out(a, IndIn-RNR, true);
   }
 }
   }
@@ -340,7 +340,7 @@ byte pr_dpc(ADAPTER * a)
 }
 a-ram_out(a, PR_RAM-IndOutput, 0);
   }
-  return FALSE;
+  return false;
 }
 byte scom_test_int(ADAPTER * a)
 {
@@ -399,7 +399,7 @@ byte isdn_rc(ADAPTER * a,
   return (0);
 }
 if (extended_info_type == DIVA_RC_TYPE_REMOVE_COMPLETE)
-  a-RcExtensionSupported = TRUE;
+  a-RcExtensionSupported = true;
   }
   a-misc_flags_table[e_no] = ~DIVA_MISC_FLAGS_REMOVE_PENDING;
   a-misc_flags_table[e_no] = ~DIVA_MISC_FLAGS_NO_RC_CANCELLING;
@@ -428,7 +428,7 @@ byte isdn_rc(ADAPTER * a,
 }
 if (Rc==OK_FC) {
   a-FlowControlIdTable[Ch] = Id;
-  a-FlowControlSkipTable[Ch] = FALSE;
+  a-FlowControlSkipTable[Ch] = false;
   this-Rc = Rc;
   this-More = ~(XBUSY | XMOREC);
   this-complete=0xff;
diff --git a/drivers/isdn/hardware/eicon/message.c 
b/drivers/isdn/hardware/eicon/message.c
index f9b00f1..ab1c112 100644
--- a/drivers/isdn/hardware/eicon/message.c
+++ b/drivers/isdn/hardware/eicon/message.c
@@ -253,7 +253,7 @@ extern APPL   * application;
 
 
 
-static byte remove_started = FALSE;
+static byte remove_started = false;
 static PLCI dummy_plci;
 
 
@@ -456,12 +456,12 @@ word api_put(APPL   * appl, CAPI_MSG   * msg)
 
 return _QUEUE_FULL;
   }
-  c = FALSE;
+  c = false;
   if byte   *) msg)  ((byte   *)(plci-msg_in_queue)))
|| (((byte   *) msg) = ((byte   *)(plci-msg_in_queue)) + 
sizeof(plci-msg_in_queue)))
   {
 if (plci-msg_in_write_pos != plci-msg_in_read_pos)
-  c = TRUE;
+  c = true;
   }
   if (msg-header.command == _DATA_B3_R)
   {
@@ -506,13 +506,13 @@ word api_put(APPL   * appl, CAPI_MSG   * msg)
 
 return _QUEUE_FULL;
   }
-  c = TRUE;
+  c = true;
 }
   }
   else
   {
 if (plci-req_in || plci-internal_command)
-  c = TRUE;
+  c = true;
 else
 {
   plci-command = msg-header.command;
@@ -626,10 +626,10 @@ word api_parse(byte   * msg, word length, byte * format, 
API_PARSE * parms)
   break;
 }
 
-if(plength) return TRUE;
+if(plength) return true;
   }
   if(parms) parms[i].info = NULL;
-  return FALSE;
+