rc.c (131981) | rc.c (132226) |
---|---|
1/* 2 * Copyright (C) 1995 by Pavel Antonov, Moscow, Russia. 3 * Copyright (C) 1995 by Andrey A. Chernov, Moscow, Russia. 4 * Copyright (C) 2002 by John Baldwin <jhb@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/* 2 * Copyright (C) 1995 by Pavel Antonov, Moscow, Russia. 3 * Copyright (C) 1995 by Andrey A. Chernov, Moscow, Russia. 4 * Copyright (C) 2002 by John Baldwin <jhb@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/rc/rc.c 131981 2004-07-11 15:18:39Z phk $ | 28 * $FreeBSD: head/sys/dev/rc/rc.c 132226 2004-07-15 20:47:41Z phk $ |
29 */ 30 31/* 32 * SDL Communications Riscom/8 (based on Cirrus Logic CL-CD180) driver 33 * 34 */ 35 36/*#define RCDEBUG*/ --- 909 unchanged lines hidden (view full) --- 946#ifdef RCDEBUG 947 device_printf(sc->sc_dev, "channel %d: rcclose dev %p\n", 948 rc->rc_chan, dev); 949#endif 950 s = spltty(); 951 ttyld_close(tp, flag); 952 ttyldoptim(tp); 953 rc_hardclose(rc); | 29 */ 30 31/* 32 * SDL Communications Riscom/8 (based on Cirrus Logic CL-CD180) driver 33 * 34 */ 35 36/*#define RCDEBUG*/ --- 909 unchanged lines hidden (view full) --- 946#ifdef RCDEBUG 947 device_printf(sc->sc_dev, "channel %d: rcclose dev %p\n", 948 rc->rc_chan, dev); 949#endif 950 s = spltty(); 951 ttyld_close(tp, flag); 952 ttyldoptim(tp); 953 rc_hardclose(rc); |
954 ttyclose(tp); | 954 tty_close(tp); |
955 splx(s); 956 KASSERT(sc->sc_opencount > 0, ("rcclose: non-positive open count")); 957 sc->sc_opencount--; 958 return 0; 959} 960 961static void 962rc_hardclose(struct rc_chans *rc) --- 501 unchanged lines hidden --- | 955 splx(s); 956 KASSERT(sc->sc_opencount > 0, ("rcclose: non-positive open count")); 957 sc->sc_opencount--; 958 return 0; 959} 960 961static void 962rc_hardclose(struct rc_chans *rc) --- 501 unchanged lines hidden --- |