diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-25 16:21:39 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-25 16:21:39 +0000 |
| commit | ae8e1d08d7bf92c79a987fb2a6a4526fbb8415f6 (patch) | |
| tree | e8ccb3ca13f44ca973f728258096d882547e3ad2 /sys/dev/syscons | |
| parent | 2baad6b54ce317c346edf8f37ff0eca38e677146 (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons')
| -rw-r--r-- | sys/dev/syscons/scvesactl.c | 2 | ||||
| -rw-r--r-- | sys/dev/syscons/syscons.c | 12 | ||||
| -rw-r--r-- | sys/dev/syscons/syscons.h | 1 |
3 files changed, 4 insertions, 11 deletions
diff --git a/sys/dev/syscons/scvesactl.c b/sys/dev/syscons/scvesactl.c index 21295a44f110c..9749cc252b2f3 100644 --- a/sys/dev/syscons/scvesactl.c +++ b/sys/dev/syscons/scvesactl.c @@ -59,7 +59,7 @@ vesa_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) struct tty *tp; int mode; - tp = scdevtotty(dev); + tp = dev->si_tty; if (!tp) return ENXIO; scp = SC_STAT(tp->t_dev); diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 3af613468b0c8..6ea829f15fe20 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -217,8 +217,8 @@ static struct cdevsw sc_cdevsw = { /* ioctl */ scioctl, /* stop */ nostop, /* reset */ noreset, - /* devtotty */ scdevtotty, - /* poll */ ttpoll, + /* devtotty */ nodevtotty, + /* poll */ ttypoll, /* mmap */ scmmap, /* strategy */ nostrategy, /* name */ "sc", @@ -441,13 +441,6 @@ sc_resume_unit(int unit) return 0; } -struct tty -*scdevtotty(dev_t dev) -{ - - return (dev->si_tty); -} - static int scdevtounit(dev_t dev) { @@ -488,6 +481,7 @@ scopen(dev_t dev, int flag, int mode, struct proc *p) tp = dev->si_tty = ttymalloc(dev->si_tty); tp->t_oproc = (SC_VTY(dev) == SC_MOUSE) ? scmousestart : scstart; tp->t_param = scparam; + tp->t_stop = nostop; tp->t_dev = dev; if (!(tp->t_state & TS_ISOPEN)) { ttychars(tp); diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h index df9fdf3bd0f6c..ac38909ea240b 100644 --- a/sys/dev/syscons/syscons.h +++ b/sys/dev/syscons/syscons.h @@ -418,7 +418,6 @@ void sc_clear_screen(scr_stat *scp); void sc_set_cursor_image(scr_stat *scp); int sc_clean_up(scr_stat *scp); void sc_alloc_scr_buffer(scr_stat *scp, int wait, int discard); -struct tty *scdevtotty(dev_t dev); #ifndef SC_NO_SYSMOUSE struct tty *sc_get_mouse_tty(void); #endif /* SC_NO_SYSMOUSE */ |
