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/cx.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/cx.c')
-rw-r--r-- | sys/i386/isa/cx.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index deadd56..b4fb324 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -88,13 +88,15 @@ static d_ioctl_t cxioctl; static d_stop_t cxstop; static d_devtotty_t cxdevtotty; -# define CDEV_MAJOR 42 - -/* Don't make this static. if_cx.c uses it. */ -struct cdevsw cx_cdevsw = - { cxopen, cxclose, cxread, cxwrite, /*42*/ - cxioctl, cxstop, nullreset, cxdevtotty,/* cronyx */ - ttpoll, nommap, NULL, "cx", NULL, -1 }; +#define CDEV_MAJOR 42 +/* Don't make this static, since if_cx.c uses it. */ +struct cdevsw cx_cdevsw = { + cxopen, cxclose, cxread, cxwrite, + cxioctl, cxstop, nullreset, cxdevtotty, + ttpoll, nommap, NULL, "cx", + NULL, -1, nodump, nopsize, + D_TTY, +}; #else struct tty *cx_tty [NCX*NCHAN]; /* tty data */ #endif |