From 35fa8731253a1d4dacf0c2c7d39f2b77cd4bcc0c Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 23 Aug 1998 08:26:42 +0000 Subject: Added D_TTY to the cdevswitch flags for all tty drivers. This is required for the Lite2 fix for always returning EIO in dead_read(). Cleaned up the cdevswitch initializers for all tty drivers. Removed explicit calls to ttsetwater() from all (tty) drivers. ttsetwater() is now called centrally for opens, not just for parameter changes. --- sys/dev/sio/sio.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sys/dev/sio/sio.c') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index c36de17..ab21950 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.211 1998/08/19 04:17:37 bde Exp $ + * $Id: sio.c,v 1.212 1998/08/20 05:12:48 bde Exp $ */ #include "opt_comconsole.h" @@ -343,12 +343,13 @@ static d_ioctl_t sioioctl; static d_stop_t siostop; static d_devtotty_t siodevtotty; -#define CDEV_MAJOR 28 -static struct cdevsw sio_cdevsw = { +#define CDEV_MAJOR 28 +static struct cdevsw sio_cdevsw = { sioopen, sioclose, sioread, siowrite, sioioctl, siostop, noreset, siodevtotty, ttpoll, nommap, NULL, driver_name, - NULL, -1, + NULL, -1, nodump, nopsize, + D_TTY, }; static int comconsole = -1; -- cgit v1.1