si.c (38353) | si.c (38485) |
---|---|
1/* 2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors. 3 * 4 * Copyright (C) 1990, 1992, 1998 Specialix International, 5 * Copyright (C) 1993, Andy Rutter <andy@acronym.co.uk> 6 * Copyright (C) 1995, Peter Wemm <peter@netplex.com.au> 7 * 8 * Originally derived from: SunOS 4.x version --- 16 unchanged lines hidden (view full) --- 25 * International may be used to endorse or promote products derived from 26 * this software without specific prior written permission. 27 * 28 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 31 * NO EVENT SHALL THE AUTHORS BE LIABLE. 32 * | 1/* 2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors. 3 * 4 * Copyright (C) 1990, 1992, 1998 Specialix International, 5 * Copyright (C) 1993, Andy Rutter <andy@acronym.co.uk> 6 * Copyright (C) 1995, Peter Wemm <peter@netplex.com.au> 7 * 8 * Originally derived from: SunOS 4.x version --- 16 unchanged lines hidden (view full) --- 25 * International may be used to endorse or promote products derived from 26 * this software without specific prior written permission. 27 * 28 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 31 * NO EVENT SHALL THE AUTHORS BE LIABLE. 32 * |
33 * $Id: si.c,v 1.74 1998/08/16 00:57:07 bde Exp $ | 33 * $Id: si.c,v 1.75 1998/08/16 01:04:48 bde Exp $ |
34 */ 35 36#ifndef lint 37static const char si_copyright1[] = "@(#) Copyright (C) Specialix International, 1990,1992,1998", 38 si_copyright2[] = "@(#) Copyright (C) Andy Rutter 1993", 39 si_copyright3[] = "@(#) Copyright (C) Peter Wemm 1995"; 40#endif /* not lint */ 41 --- 126 unchanged lines hidden (view full) --- 168static d_open_t siopen; 169static d_close_t siclose; 170static d_read_t siread; 171static d_write_t siwrite; 172static d_ioctl_t siioctl; 173static d_stop_t sistop; 174static d_devtotty_t sidevtotty; 175 | 34 */ 35 36#ifndef lint 37static const char si_copyright1[] = "@(#) Copyright (C) Specialix International, 1990,1992,1998", 38 si_copyright2[] = "@(#) Copyright (C) Andy Rutter 1993", 39 si_copyright3[] = "@(#) Copyright (C) Peter Wemm 1995"; 40#endif /* not lint */ 41 --- 126 unchanged lines hidden (view full) --- 168static d_open_t siopen; 169static d_close_t siclose; 170static d_read_t siread; 171static d_write_t siwrite; 172static d_ioctl_t siioctl; 173static d_stop_t sistop; 174static d_devtotty_t sidevtotty; 175 |
176#define CDEV_MAJOR 68 177static struct cdevsw si_cdevsw = 178 { siopen, siclose, siread, siwrite, /*68*/ 179 siioctl, sistop, noreset, sidevtotty,/* si */ 180 ttpoll, nommap, NULL, "si", NULL, -1 }; | 176#define CDEV_MAJOR 68 177static struct cdevsw si_cdevsw = { 178 siopen, siclose, siread, siwrite, 179 siioctl, sistop, noreset, sidevtotty, 180 ttpoll, nommap, NULL, "si", 181 NULL, -1, nodump, nopsize, 182 D_TTY, 183}; |
181 | 184 |
182 | |
183#ifdef SI_DEBUG /* use: ``options "SI_DEBUG"'' in your config file */ 184 185static void si_dprintf __P((struct si_port *pp, int flags, const char *fmt, 186 ...)); 187static char *si_mctl2str __P((enum si_mctl cmd)); 188 189#define DPRINT(x) si_dprintf x 190 --- 1036 unchanged lines hidden (view full) --- 1227 1228 error = siparam(tp, &tp->t_termios); 1229 1230 --pp->sp_wopeners; 1231 if (error != 0) 1232 goto out; 1233 /* XXX: we should goto_top if siparam slept */ 1234 | 185#ifdef SI_DEBUG /* use: ``options "SI_DEBUG"'' in your config file */ 186 187static void si_dprintf __P((struct si_port *pp, int flags, const char *fmt, 188 ...)); 189static char *si_mctl2str __P((enum si_mctl cmd)); 190 191#define DPRINT(x) si_dprintf x 192 --- 1036 unchanged lines hidden (view full) --- 1229 1230 error = siparam(tp, &tp->t_termios); 1231 1232 --pp->sp_wopeners; 1233 if (error != 0) 1234 goto out; 1235 /* XXX: we should goto_top if siparam slept */ 1236 |
1235 ttsetwater(tp); 1236 | |
1237 /* set initial DCD state */ 1238 pp->sp_last_hi_ip = ccbp->hi_ip; 1239 if ((pp->sp_last_hi_ip & IP_DCD) || IS_CALLOUT(mynor)) { 1240 (*linesw[tp->t_line].l_modem)(tp, 1); 1241 } 1242 } 1243 1244 /* whoops! we beat the close! */ --- 1580 unchanged lines hidden --- | 1237 /* set initial DCD state */ 1238 pp->sp_last_hi_ip = ccbp->hi_ip; 1239 if ((pp->sp_last_hi_ip & IP_DCD) || IS_CALLOUT(mynor)) { 1240 (*linesw[tp->t_line].l_modem)(tp, 1); 1241 } 1242 } 1243 1244 /* whoops! we beat the close! */ --- 1580 unchanged lines hidden --- |