si.c (111002) | si.c (111748) |
---|---|
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) 2000, 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) 2000, 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 * $FreeBSD: head/sys/dev/si/si.c 111002 2003-02-16 14:13:23Z phk $ | 33 * $FreeBSD: head/sys/dev/si/si.c 111748 2003-03-02 16:54:40Z des $ |
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 2000"; 40#endif /* not lint */ 41 --- 803 unchanged lines hidden (view full) --- 845 846 if (pp->sp_dtr_wait != 0) { 847 timeout(sidtrwakeup, pp, pp->sp_dtr_wait); 848 pp->sp_state |= SS_DTR_OFF; 849 } 850 851 } 852 pp->sp_active_out = FALSE; | 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 2000"; 40#endif /* not lint */ 41 --- 803 unchanged lines hidden (view full) --- 845 846 if (pp->sp_dtr_wait != 0) { 847 timeout(sidtrwakeup, pp, pp->sp_dtr_wait); 848 pp->sp_state |= SS_DTR_OFF; 849 } 850 851 } 852 pp->sp_active_out = FALSE; |
853 wakeup((caddr_t)&pp->sp_active_out); | 853 wakeup(&pp->sp_active_out); |
854 wakeup(TSA_CARR_ON(tp)); 855 856 splx(oldspl); 857} 858 859 860/* 861 * called at splsoftclock()... --- 549 unchanged lines hidden (view full) --- 1411 1412 oldspl = spltty(); 1413 1414 if (state) { 1415 pp->sp_state &= ~SS_BLOCKWRITE; 1416 if (pp->sp_state & SS_WAITWRITE) { 1417 pp->sp_state &= ~SS_WAITWRITE; 1418 /* thunder away! */ | 854 wakeup(TSA_CARR_ON(tp)); 855 856 splx(oldspl); 857} 858 859 860/* 861 * called at splsoftclock()... --- 549 unchanged lines hidden (view full) --- 1411 1412 oldspl = spltty(); 1413 1414 if (state) { 1415 pp->sp_state &= ~SS_BLOCKWRITE; 1416 if (pp->sp_state & SS_WAITWRITE) { 1417 pp->sp_state &= ~SS_WAITWRITE; 1418 /* thunder away! */ |
1419 wakeup((caddr_t)pp); | 1419 wakeup(pp); |
1420 } 1421 } else { 1422 pp->sp_state |= SS_BLOCKWRITE; 1423 } 1424 1425 splx(oldspl); 1426} 1427 --- 755 unchanged lines hidden --- | 1420 } 1421 } else { 1422 pp->sp_state |= SS_BLOCKWRITE; 1423 } 1424 1425 splx(oldspl); 1426} 1427 --- 755 unchanged lines hidden --- |