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/stallion.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/stallion.c')
-rw-r--r-- | sys/i386/isa/stallion.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/i386/isa/stallion.c b/sys/i386/isa/stallion.c index d12befc..8ec866d 100644 --- a/sys/i386/isa/stallion.c +++ b/sys/i386/isa/stallion.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: stallion.c,v 1.19 1998/04/15 17:45:50 bde Exp $ + * $Id: stallion.c,v 1.20 1998/06/07 17:11:00 dfr Exp $ */ /*****************************************************************************/ @@ -534,11 +534,13 @@ DATA_SET (pcidevice_set, stlpcidriver); */ #define CDEV_MAJOR 72 - -static struct cdevsw stl_cdevsw = - { stlopen, stlclose, stlread, stlwrite, - stlioctl, stlstop, noreset, stldevtotty, - ttpoll, nommap, NULL, "stl", NULL, -1 }; +static struct cdevsw stl_cdevsw = { + stlopen, stlclose, stlread, stlwrite, + stlioctl, stlstop, noreset, stldevtotty, + ttpoll, nommap, NULL, "stl", + NULL, -1, nodump, nopsize, + D_TTY, +}; static stl_devsw_installed = 0; @@ -799,7 +801,6 @@ stlopen_restart: tp->t_termios = callout ? portp->initouttios : portp->initintios; stl_rawopen(portp); - ttsetwater(tp); if ((portp->sigs & TIOCM_CD) || callout) (*linesw[tp->t_line].l_modem)(tp, 1); } else { |