diff options
author | bde <bde@FreeBSD.org> | 1998-08-23 08:26:42 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-23 08:26:42 +0000 |
commit | 35fa8731253a1d4dacf0c2c7d39f2b77cd4bcc0c (patch) | |
tree | 89e7eed7449d834bed22fb54542711e65643ac81 /sys/i386/isa/pcvt/pcvt_drv.c | |
parent | a86ea80a2987ff6a41fbe0c94f9029e6d2b6af5d (diff) | |
download | FreeBSD-src-35fa8731253a1d4dacf0c2c7d39f2b77cd4bcc0c.zip FreeBSD-src-35fa8731253a1d4dacf0c2c7d39f2b77cd4bcc0c.tar.gz |
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.
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_drv.c')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_drv.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index 097af1d..90758b2 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -122,11 +122,13 @@ static d_ioctl_t pcioctl; static d_devtotty_t pcdevtotty; static d_mmap_t pcmmap; -#define CDEV_MAJOR 12 -static struct cdevsw pcdevsw = { +#define CDEV_MAJOR 12 +static struct cdevsw pc_cdevsw = { pcopen, pcclose, pcread, pcwrite, pcioctl, nullstop, noreset, pcdevtotty, - ttpoll, pcmmap, nostrategy, "vt", NULL, -1 + ttpoll, pcmmap, nostrategy, "vt", + NULL, -1, nodump, nopsize, + D_TTY, }; #if PCVT_FREEBSD > 205 @@ -356,13 +358,13 @@ pcattach(struct isa_device *dev) { dev_t dev = makedev(CDEV_MAJOR, 0); - cdevsw_add(&dev, &pcdevsw, NULL); + cdevsw_add(&dev, &pc_cdevsw, NULL); } #ifdef DEVFS for(vt = 0; vt < MAXCONS; vt++) { pcvt_devfs_token[vt] = - devfs_add_devswf(&pcdevsw, vt, + devfs_add_devswf(&pc_cdevsw, vt, DV_CHR, 0, 0, 0600, "ttyv%r", vt ); } #endif DEVFS @@ -489,7 +491,6 @@ pcopen(Dev_t dev, int flag, int mode, struct proc *p) tp->t_lflag = TTYDEF_LFLAG; tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; pcparam(tp, &tp->t_termios); - ttsetwater(tp); (*linesw[tp->t_line].l_modem)(tp, 1); /* fake connection */ winsz = 1; /* set winsize later */ } |