提交 986c4bb8 编写于 作者: R Richard Knutsson 提交者: Linus Torvalds

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

Signed-off-by: NRichard Knutsson <ricknu-0@student.ltu.se>
Acked-by: NKarsten Keil <kkeil@suse.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 2a8081f9
...@@ -187,7 +187,7 @@ static diva_card *find_card_by_ctrl(word controller) ...@@ -187,7 +187,7 @@ static diva_card *find_card_by_ctrl(word controller)
*/ */
void *TransmitBufferSet(APPL * appl, dword ref) 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)) DBG_PRV1(("%d:xbuf_used(%d)", appl->Id, ref + 1))
return (void *) ref; return (void *) ref;
} }
...@@ -202,7 +202,7 @@ void *TransmitBufferGet(APPL * appl, void *p) ...@@ -202,7 +202,7 @@ void *TransmitBufferGet(APPL * appl, void *p)
void TransmitBufferFree(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)) DBG_PRV1(("%d:xbuf_free(%d)", appl->Id, ((dword) p) + 1))
} }
......
...@@ -173,16 +173,16 @@ void pr_out(ADAPTER * a) ...@@ -173,16 +173,16 @@ void pr_out(ADAPTER * a)
xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->MInd, xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->MInd,
a->IdTypeTable[this->No]); a->IdTypeTable[this->No]);
a->ram_out(a, &ReqOut->Req, this->MInd); a->ram_out(a, &ReqOut->Req, this->MInd);
more = TRUE; more = true;
} }
else { else {
xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->Req, xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->Req,
a->IdTypeTable[this->No]); a->IdTypeTable[this->No]);
this->More |=XMOREF; this->More |=XMOREF;
a->ram_out(a, &ReqOut->Req, this->Req); a->ram_out(a, &ReqOut->Req, this->Req);
more = FALSE; more = false;
if (a->FlowControlIdTable[this->ReqCh] == this->Id) 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 Note that remove request was sent to the card
*/ */
...@@ -311,7 +311,7 @@ byte pr_dpc(ADAPTER * a) ...@@ -311,7 +311,7 @@ byte pr_dpc(ADAPTER * a)
/* are marked RNR */ /* are marked RNR */
if(RNRId && RNRId==a->ram_in(a, &IndIn->IndId)) { if(RNRId && RNRId==a->ram_in(a, &IndIn->IndId)) {
a->ram_out(a, &IndIn->Ind, 0); a->ram_out(a, &IndIn->Ind, 0);
a->ram_out(a, &IndIn->RNR, TRUE); a->ram_out(a, &IndIn->RNR, true);
} }
else { else {
Ind = a->ram_in(a, &IndIn->Ind); Ind = a->ram_in(a, &IndIn->Ind);
...@@ -331,7 +331,7 @@ byte pr_dpc(ADAPTER * a) ...@@ -331,7 +331,7 @@ byte pr_dpc(ADAPTER * a)
dtrc(dprintf("RNR")); dtrc(dprintf("RNR"));
a->ram_out(a, &IndIn->Ind, 0); a->ram_out(a, &IndIn->Ind, 0);
RNRId = a->ram_in(a, &IndIn->IndId); 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) ...@@ -340,7 +340,7 @@ byte pr_dpc(ADAPTER * a)
} }
a->ram_out(a, &PR_RAM->IndOutput, 0); a->ram_out(a, &PR_RAM->IndOutput, 0);
} }
return FALSE; return false;
} }
byte scom_test_int(ADAPTER * a) byte scom_test_int(ADAPTER * a)
{ {
...@@ -399,7 +399,7 @@ byte isdn_rc(ADAPTER * a, ...@@ -399,7 +399,7 @@ byte isdn_rc(ADAPTER * a,
return (0); return (0);
} }
if (extended_info_type == DIVA_RC_TYPE_REMOVE_COMPLETE) 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_REMOVE_PENDING;
a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_NO_RC_CANCELLING; a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_NO_RC_CANCELLING;
...@@ -428,7 +428,7 @@ byte isdn_rc(ADAPTER * a, ...@@ -428,7 +428,7 @@ byte isdn_rc(ADAPTER * a,
} }
if (Rc==OK_FC) { if (Rc==OK_FC) {
a->FlowControlIdTable[Ch] = Id; a->FlowControlIdTable[Ch] = Id;
a->FlowControlSkipTable[Ch] = FALSE; a->FlowControlSkipTable[Ch] = false;
this->Rc = Rc; this->Rc = Rc;
this->More &= ~(XBUSY | XMOREC); this->More &= ~(XBUSY | XMOREC);
this->complete=0xff; this->complete=0xff;
......
...@@ -487,7 +487,7 @@ diva_pri_start_adapter(PISDN_ADAPTER IoAdapter, ...@@ -487,7 +487,7 @@ diva_pri_start_adapter(PISDN_ADAPTER IoAdapter,
} }
DIVA_OS_MEM_DETACH_ADDRESS(IoAdapter, boot); DIVA_OS_MEM_DETACH_ADDRESS(IoAdapter, boot);
IoAdapter->Initialized = TRUE; IoAdapter->Initialized = true;
/* /*
Check Interrupt Check Interrupt
...@@ -504,7 +504,7 @@ diva_pri_start_adapter(PISDN_ADAPTER IoAdapter, ...@@ -504,7 +504,7 @@ diva_pri_start_adapter(PISDN_ADAPTER IoAdapter,
if (!IoAdapter->IrqCount) { if (!IoAdapter->IrqCount) {
DBG_ERR(("A: A(%d) interrupt test failed", DBG_ERR(("A: A(%d) interrupt test failed",
IoAdapter->ANum)) IoAdapter->ANum))
IoAdapter->Initialized = FALSE; IoAdapter->Initialized = false;
IoAdapter->stop(IoAdapter); IoAdapter->stop(IoAdapter);
return (-1); return (-1);
} }
......
...@@ -71,14 +71,6 @@ ...@@ -71,14 +71,6 @@
#define qword u64 #define qword u64
#endif #endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef NULL #ifndef NULL
#define NULL ((void *) 0) #define NULL ((void *) 0)
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册