aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dcons/dcons.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-06-04 16:02:56 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-06-04 16:02:56 +0000
commit2140d01b277fa2ab698e66dda69e434f0be7bd13 (patch)
tree3337821fdd2a353d2216412ea8dd39eb5e65f007 /sys/dev/dcons/dcons.c
parentd443a4f573fc2d711f482fe749463c0007b462d0 (diff)
Notes
Diffstat (limited to 'sys/dev/dcons/dcons.c')
-rw-r--r--sys/dev/dcons/dcons.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/dcons/dcons.c b/sys/dev/dcons/dcons.c
index 173446623d53..3a5e302c7843 100644
--- a/sys/dev/dcons/dcons.c
+++ b/sys/dev/dcons/dcons.c
@@ -192,7 +192,7 @@ dcons_open(dev_t dev, int flag, int mode, struct THREAD *td)
}
splx(s);
- error = (*linesw[tp->t_line].l_open)(dev, tp);
+ error = ttyld_open(tp, dev);
return (error);
}
@@ -209,7 +209,7 @@ dcons_close(dev_t dev, int flag, int mode, struct THREAD *td)
tp = dev->si_tty;
if (tp->t_state & TS_ISOPEN) {
- (*linesw[tp->t_line].l_close)(tp, flag);
+ ttyld_close(tp, flag);
ttyclose(tp);
}
@@ -259,7 +259,7 @@ dcons_timeout(void *v)
tp = dc->dev->si_tty;
while ((c = dcons_checkc(dc)) != -1)
if (tp->t_state & TS_ISOPEN)
- (*linesw[tp->t_line].l_rint)(c, tp);
+ ttyld_rint(tp, c);
}
polltime = hz / poll_hz;
if (polltime < 1)
@@ -560,7 +560,7 @@ dcons_detach(int port)
if (tp->t_state & TS_ISOPEN) {
printf("dcons: still opened\n");
- (*linesw[tp->t_line].l_close)(tp, 0);
+ ttyld_close(tp, 0);
ttyclose(tp);
}
/* XXX