diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cy/cy.c | 13 | ||||
-rw-r--r-- | sys/dev/cy/cy_isa.c | 13 | ||||
-rw-r--r-- | sys/dev/rc/rc.c | 7 | ||||
-rw-r--r-- | sys/dev/si/si.c | 15 | ||||
-rw-r--r-- | sys/dev/sio/sio.c | 13 |
5 files changed, 9 insertions, 52 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index bb78e29..8661f3e 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.59 1997/12/28 06:23:03 bde Exp $ + * $Id: cy.c,v 1.60 1998/01/24 02:54:17 eivind Exp $ */ #include "opt_compat.h" @@ -2420,16 +2420,7 @@ disc_optim(tp, t, com) tp->t_state |= TS_CAN_BYPASS_L_RINT; else tp->t_state &= ~TS_CAN_BYPASS_L_RINT; - /* - * Prepare to reduce input latency for packet - * discplines with a end of packet character. - */ - if (tp->t_line == SLIPDISC) - com->hotchar = 0xc0; - else if (tp->t_line == PPPDISC) - com->hotchar = 0x7e; - else - com->hotchar = 0; + com->hotchar = linesw[tp->t_line].l_hotchar; #ifndef SOFT_HOTCHAR iobase = com->iobase; cd_outb(iobase, CD1400_CAR, com->cy_align, com->unit & CD1400_CAR_CHAN); diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c index bb78e29..8661f3e 100644 --- a/sys/dev/cy/cy_isa.c +++ b/sys/dev/cy/cy_isa.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.59 1997/12/28 06:23:03 bde Exp $ + * $Id: cy.c,v 1.60 1998/01/24 02:54:17 eivind Exp $ */ #include "opt_compat.h" @@ -2420,16 +2420,7 @@ disc_optim(tp, t, com) tp->t_state |= TS_CAN_BYPASS_L_RINT; else tp->t_state &= ~TS_CAN_BYPASS_L_RINT; - /* - * Prepare to reduce input latency for packet - * discplines with a end of packet character. - */ - if (tp->t_line == SLIPDISC) - com->hotchar = 0xc0; - else if (tp->t_line == PPPDISC) - com->hotchar = 0x7e; - else - com->hotchar = 0; + com->hotchar = linesw[tp->t_line].l_hotchar; #ifndef SOFT_HOTCHAR iobase = com->iobase; cd_outb(iobase, CD1400_CAR, com->cy_align, com->unit & CD1400_CAR_CHAN); diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 2779bbf..784527f 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -1476,12 +1476,7 @@ disc_optim(tp, t, rc) tp->t_state |= TS_CAN_BYPASS_L_RINT; else tp->t_state &= ~TS_CAN_BYPASS_L_RINT; - if (tp->t_line == SLIPDISC) - rc->rc_hotchar = 0xc0; - else if (tp->t_line == PPPDISC) - rc->rc_hotchar = 0x7e; - else - rc->rc_hotchar = 0; + rc->rc_hotchar = linesw[tp->t_line].l_hotchar; } static void diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index 31404aa..e55e41f 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $Id: si.c,v 1.64 1998/01/24 02:54:24 eivind Exp $ + * $Id: si.c,v 1.65 1998/01/31 07:23:09 eivind Exp $ */ #ifndef lint @@ -2299,18 +2299,7 @@ si_disc_optim(tp, t, pp) tp->t_state |= TS_CAN_BYPASS_L_RINT; else tp->t_state &= ~TS_CAN_BYPASS_L_RINT; - - /* - * Prepare to reduce input latency for packet - * discplines with a end of packet character. - */ - if (tp->t_line == SLIPDISC) - pp->sp_hotchar = 0xc0; - else if (tp->t_line == PPPDISC) - pp->sp_hotchar = 0x7e; - else - pp->sp_hotchar = 0; - + pp->sp_hotchar = linesw[tp->t_line].l_hotchar; DPRINT((pp, DBG_OPTIM, "bypass: %s, hotchar: %x\n", (tp->t_state & TS_CAN_BYPASS_L_RINT) ? "on" : "off", pp->sp_hotchar)); diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 922d93b..a1da0ff 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.194 1998/01/08 04:53:43 amurai Exp $ + * $Id: sio.c,v 1.195 1998/01/24 02:54:25 eivind Exp $ */ #include "opt_comconsole.h" @@ -2548,16 +2548,7 @@ disc_optim(tp, t, com) tp->t_state |= TS_CAN_BYPASS_L_RINT; else tp->t_state &= ~TS_CAN_BYPASS_L_RINT; - /* - * Prepare to reduce input latency for packet - * discplines with a end of packet character. - */ - if (tp->t_line == SLIPDISC) - com->hotchar = 0xc0; - else if (tp->t_line == PPPDISC) - com->hotchar = 0x7e; - else - com->hotchar = 0; + com->hotchar = linesw[tp->t_line].l_hotchar; } /* |