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/dev/rp | |
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/dev/rp')
-rw-r--r-- | sys/dev/rp/rp.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c index e26c46c..847660e 100644 --- a/sys/dev/rp/rp.c +++ b/sys/dev/rp/rp.c @@ -788,8 +788,6 @@ struct isa_driver rpdriver = { rpprobe, rpattach, "rp" }; -#define CDEV_MAJOR 81 - static char driver_name[] = "rp"; static d_open_t rpopen; @@ -800,11 +798,14 @@ static d_ioctl_t rpioctl; static d_stop_t rpstop; static d_devtotty_t rpdevtotty; -static struct cdevsw rp_cdevsw = - { rpopen, rpclose, rpread, rpwrite, - rpioctl, rpstop, noreset, rpdevtotty, - ttpoll, nommap, NULL, driver_name, - NULL, -1}; +#define CDEV_MAJOR 81 +static struct cdevsw rp_cdevsw = { + rpopen, rpclose, rpread, rpwrite, + rpioctl, rpstop, noreset, rpdevtotty, + ttpoll, nommap, NULL, driver_name, + NULL, -1, nodump, nopsize, + D_TTY, +}; static int rp_controller_port = 0; static int rp_num_ports_open = 0; @@ -1400,8 +1401,6 @@ open_top: return(error); } - ttsetwater(tp); - rp_num_ports_open++; IntMask = sGetChanIntID(&rp->rp_channel); |