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/istallion.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/istallion.c')
-rw-r--r-- | sys/i386/isa/istallion.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c index c11fc16..6dfe7f9 100644 --- a/sys/i386/isa/istallion.c +++ b/sys/i386/isa/istallion.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: istallion.c,v 1.19 1998/06/07 17:10:42 dfr Exp $ + * $Id: istallion.c,v 1.20 1998/08/16 01:21:49 bde Exp $ */ /*****************************************************************************/ @@ -641,12 +641,13 @@ struct isa_driver stlidriver = { */ #define CDEV_MAJOR 75 - -static struct cdevsw stli_cdevsw = - { stliopen, stliclose, stliread, stliwrite, - stliioctl, stlistop, noreset, stlidevtotty, - ttpoll, nommap, NULL, stli_drvname, - NULL, -1 }; +static struct cdevsw stli_cdevsw = { + stliopen, stliclose, stliread, stliwrite, + stliioctl, stlistop, noreset, stlidevtotty, + ttpoll, nommap, NULL, stli_drvname, + NULL, -1, nodump, nopsize, + D_TTY, +}; static stli_devsw_installed = 0; @@ -988,7 +989,6 @@ stliopen_restart: portp->initintios; stli_initopen(portp); wakeup(&portp->state); - ttsetwater(tp); if ((portp->sigs & TIOCM_CD) || callout) (*linesw[tp->t_line].l_modem)(tp, 1); } else { |