summaryrefslogtreecommitdiffstats
path: root/sys/dev/nmdm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-04 16:02:56 +0000
committerphk <phk@FreeBSD.org>2004-06-04 16:02:56 +0000
commitba3920e2a2eb1a3101ab8286d24d58fef6fd73aa (patch)
tree3337821fdd2a353d2216412ea8dd39eb5e65f007 /sys/dev/nmdm
parent958f9d7c7609eaa9fcabd83035ded33f80da2f0d (diff)
downloadFreeBSD-src-ba3920e2a2eb1a3101ab8286d24d58fef6fd73aa.zip
FreeBSD-src-ba3920e2a2eb1a3101ab8286d24d58fef6fd73aa.tar.gz
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.
Diffstat (limited to 'sys/dev/nmdm')
-rw-r--r--sys/dev/nmdm/nmdm.c8
1 files changed, 4 insertions, 4 deletions
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);
}
OpenPOWER on IntegriCloud