diff options
author | yokota <yokota@FreeBSD.org> | 1999-09-19 08:58:53 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-09-19 08:58:53 +0000 |
commit | cd2631e4e8965f8c2fc68bdcc77143651bb8ffbe (patch) | |
tree | 94e722f104dbc677e48996bb1b7ed161aa97f5f6 /sys/dev/syscons/scvidctl.c | |
parent | 385f21dad749b72b6d4126069fb4d243fb9b6fb4 (diff) | |
download | FreeBSD-src-cd2631e4e8965f8c2fc68bdcc77143651bb8ffbe.zip FreeBSD-src-cd2631e4e8965f8c2fc68bdcc77143651bb8ffbe.tar.gz |
- Hang the scr_stat struct from dev_t.
- Remove sc_get_scr_stat(). It's not necessary anymore.
- Call ttymalloc() to allocate the struct tty for each vty, rather than
statically declaring an array of struct tty. We still need a statically
allocated struct tty for the first vty which is used for the kernel
console I/O, though.
- Likewise, call ttymalloc() for /dev/sysmouse and /dev/consolectl.
- Delete unnecessary test on the pointer struct tty *tp in some functions.
- Delete unused code in scmouse.c.
WARNING: this change requires you to recompile screen savers!
Diffstat (limited to 'sys/dev/syscons/scvidctl.c')
-rw-r--r-- | sys/dev/syscons/scvidctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c index e9716c3..305e6f7 100644 --- a/sys/dev/syscons/scvidctl.c +++ b/sys/dev/syscons/scvidctl.c @@ -33,6 +33,7 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/conf.h> #include <sys/signalvar.h> #include <sys/tty.h> #include <sys/kernel.h> @@ -486,7 +487,7 @@ sc_vid_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p) int error; int s; - scp = sc_get_scr_stat(tp->t_dev); + scp = SC_STAT(tp->t_dev); if (scp == NULL) /* tp == SC_MOUSE */ return ENOIOCTL; adp = scp->sc->adp; |