From ba3920e2a2eb1a3101ab8286d24d58fef6fd73aa Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 4 Jun 2004 16:02:56 +0000 Subject: Machine generated patch which changes linedisc calls from accessing linesw[] directly to using the ttyld...() functions The ttyld...() functions ar inline so there is no performance hit. --- sys/dev/nmdm/nmdm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/nmdm/nmdm.c') diff --git a/sys/dev/nmdm/nmdm.c b/sys/dev/nmdm/nmdm.c index 8855a27..cb25ecb 100644 --- a/sys/dev/nmdm/nmdm.c +++ b/sys/dev/nmdm/nmdm.c @@ -154,12 +154,12 @@ nmdm_task_tty(void *arg, int pending __unused) if (sp->other->dcd) { if (!(tp->t_state & TS_ISOPEN)) { sp->other->dcd = 0; - (void)(*linesw[otp->t_line].l_modem)(otp, 0); + (void)ttyld_modem(otp, 0); } } else { if (tp->t_state & TS_ISOPEN) { sp->other->dcd = 1; - (void)(*linesw[otp->t_line].l_modem)(otp, 1); + (void)ttyld_modem(otp, 1); } } if (tp->t_state & TS_TTSTOP) @@ -169,7 +169,7 @@ nmdm_task_tty(void *arg, int pending __unused) return; c = getc(&tp->t_outq); if (otp->t_state & TS_ISOPEN) - (*linesw[otp->t_line].l_rint)(c, otp); + ttyld_rint(otp, c); } if (tp->t_outq.c_cc == 0) ttwwakeup(tp); @@ -255,7 +255,7 @@ nmdmopen(dev_t dev, int flag, int devtype, struct thread *td) return (EBUSY); } - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = ttyld_open(tp, dev); return (error); } -- cgit v1.1