summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/sysmouse.c
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/syscons/sysmouse.c
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/syscons/sysmouse.c')
-rw-r--r--sys/dev/syscons/sysmouse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/syscons/sysmouse.c b/sys/dev/syscons/sysmouse.c
index b513500..69c0ef3 100644
--- a/sys/dev/syscons/sysmouse.c
+++ b/sys/dev/syscons/sysmouse.c
@@ -92,12 +92,12 @@ smopen(dev_t dev, int flag, int mode, struct thread *td)
tp->t_lflag = TTYDEF_LFLAG;
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
smparam(tp, &tp->t_termios);
- (*linesw[tp->t_line].l_modem)(tp, 1);
+ ttyld_modem(tp, 1);
} else if (tp->t_state & TS_XCLUDE && suser(td)) {
return EBUSY;
}
- return (*linesw[tp->t_line].l_open)(dev, tp);
+ return ttyld_open(tp, dev);
}
static int
@@ -109,7 +109,7 @@ smclose(dev_t dev, int flag, int mode, struct thread *td)
tp = dev->si_tty;
s = spltty();
mouse_level = 0;
- (*linesw[tp->t_line].l_close)(tp, flag);
+ ttyld_close(tp, flag);
ttyclose(tp);
splx(s);
@@ -306,7 +306,7 @@ sysmouse_event(mouse_info_t *info)
buf[2] = y >> 1;
buf[4] = y - buf[2];
for (i = 0; i < MOUSE_MSC_PACKETSIZE; ++i)
- (*linesw[sysmouse_tty->t_line].l_rint)(buf[i], sysmouse_tty);
+ ttyld_rint(sysmouse_tty, buf[i]);
if (mouse_level >= 1) {
/* extended part */
z = imax(imin(z, 127), -128);
OpenPOWER on IntegriCloud