From 51144af34ff25b93912a0fc88dac225fdf164521 Mon Sep 17 00:00:00 2001 From: is Date: Sun, 25 Mar 2001 14:38:23 +0000 Subject: [PATCH] improve readibility --- sys/dev/ic/isic_bchan.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/sys/dev/ic/isic_bchan.c b/sys/dev/ic/isic_bchan.c index 671e8a5ba634..82bf0c21d0b3 100644 --- a/sys/dev/ic/isic_bchan.c +++ b/sys/dev/ic/isic_bchan.c @@ -27,7 +27,7 @@ * i4b_bchan.c - B channel handling L1 procedures * ---------------------------------------------- * - * $Id: isic_bchan.c,v 1.2 2001/03/24 12:40:29 martin Exp $ + * $Id: isic_bchan.c,v 1.3 2001/03/25 14:38:23 is Exp $ * * last edit-date: [Fri Jan 5 11:36:11 2001] * @@ -101,7 +101,7 @@ isic_bchannel_setup(isdn_layer1token t, int h_chan, int bprot, int activate) /* general part */ chan->unit = sc->sc_unit; /* unit number */ - chan->channel = h_chan; /* B channel */ + chan->channel = h_chan; /* B channel */ chan->bprot = bprot; /* B channel protocol */ chan->state = HSCX_IDLE; /* B channel state */ @@ -186,7 +186,8 @@ isic_bchannel_start(isdn_layer1token t, int h_chan) if(chan->bprot == BPROT_NONE) { - if(!(isic_hscx_silence(chan->out_mbuf_cur->m_data, chan->out_mbuf_cur->m_len))) + if(!(isic_hscx_silence(chan->out_mbuf_cur->m_data, + chan->out_mbuf_cur->m_len))) activity = ACT_TX; } else @@ -194,7 +195,7 @@ isic_bchannel_start(isdn_layer1token t, int h_chan) activity = ACT_TX; } - chan->state |= HSCX_TX_ACTIVE; /* we start transmitting */ + chan->state |= HSCX_TX_ACTIVE; /* we start transmitting */ if(sc->sc_trace & TRACE_B_TX) /* if trace, send mbuf to trace dev */ { @@ -202,7 +203,8 @@ isic_bchannel_start(isdn_layer1token t, int h_chan) hdr.type = (h_chan == HSCX_CH_A ? TRC_CH_B1 : TRC_CH_B2); hdr.dir = FROM_TE; hdr.count = ++sc->sc_trace_bcount; - isdn_layer2_trace_ind(sc->sc_l2, &hdr, chan->out_mbuf_cur->m_len, chan->out_mbuf_cur->m_data); + isdn_layer2_trace_ind(sc->sc_l2, &hdr, + chan->out_mbuf_cur->m_len, chan->out_mbuf_cur->m_data); } len = 0; /* # of chars put into HSCX tx fifo this time */ @@ -267,10 +269,13 @@ isic_bchannel_start(isdn_layer1token t, int h_chan) if(sc->sc_trace & TRACE_B_TX) { i4b_trace_hdr hdr; - hdr.type = (h_chan == HSCX_CH_A ? TRC_CH_B1 : TRC_CH_B2); + hdr.type = (h_chan == HSCX_CH_A ? + TRC_CH_B1 : TRC_CH_B2); hdr.dir = FROM_TE; hdr.count = ++sc->sc_trace_bcount; - isdn_layer2_trace_ind(sc->sc_l2, &hdr, chan->out_mbuf_cur->m_len, chan->out_mbuf_cur->m_data); + isdn_layer2_trace_ind(sc->sc_l2, &hdr, + chan->out_mbuf_cur->m_len, + chan->out_mbuf_cur->m_data); } } } @@ -314,7 +319,8 @@ isic_bchannel_start(isdn_layer1token t, int h_chan) /* call timeout handling routine */ if(activity == ACT_RX || activity == ACT_TX) - (*chan->drvr_linktab->bch_activity)(chan->drvr_linktab->unit, activity); + (*chan->drvr_linktab->bch_activity)(chan->drvr_linktab->unit, + activity); if(cmd) isic_hscx_cmd(sc, h_chan, cmd);