if_cx.c (132226) | if_cx.c (132464) |
---|---|
1/* 2 * Cronyx-Sigma adapter driver for FreeBSD. 3 * Supports PPP/HDLC and Cisco/HDLC protocol in synchronous mode, 4 * and asyncronous channels with full modem control. 5 * Keepalive protocol implemented in both Cisco and PPP modes. 6 * 7 * Copyright (C) 1994-2002 Cronyx Engineering. 8 * Author: Serge Vakulenko, <vak@cronyx.ru> --- 9 unchanged lines hidden (view full) --- 18 * modify and redistribute this software in source and binary forms, 19 * as long as this message is kept with the software, all derivative 20 * works or modified versions. 21 * 22 * Cronyx Id: if_cx.c,v 1.1.2.34 2004/06/23 17:09:13 rik Exp $ 23 */ 24 25#include <sys/cdefs.h> | 1/* 2 * Cronyx-Sigma adapter driver for FreeBSD. 3 * Supports PPP/HDLC and Cisco/HDLC protocol in synchronous mode, 4 * and asyncronous channels with full modem control. 5 * Keepalive protocol implemented in both Cisco and PPP modes. 6 * 7 * Copyright (C) 1994-2002 Cronyx Engineering. 8 * Author: Serge Vakulenko, <vak@cronyx.ru> --- 9 unchanged lines hidden (view full) --- 18 * modify and redistribute this software in source and binary forms, 19 * as long as this message is kept with the software, all derivative 20 * works or modified versions. 21 * 22 * Cronyx Id: if_cx.c,v 1.1.2.34 2004/06/23 17:09:13 rik Exp $ 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/dev/cx/if_cx.c 132226 2004-07-15 20:47:41Z phk $"); | 26__FBSDID("$FreeBSD: head/sys/dev/cx/if_cx.c 132464 2004-07-20 17:15:38Z julian $"); |
27 28#include <sys/param.h> 29 30#if __FreeBSD_version >= 500000 31# define NCX 1 32#else 33# include "cx.h" 34#endif --- 2676 unchanged lines hidden (view full) --- 2711 2712 CX_DEBUG (d, ("Rmnode\n")); 2713 if (d && d->running) { 2714 int s = splhigh (); 2715 cx_down (d); 2716 splx (s); 2717 } 2718#ifdef KLD_MODULE | 27 28#include <sys/param.h> 29 30#if __FreeBSD_version >= 500000 31# define NCX 1 32#else 33# include "cx.h" 34#endif --- 2676 unchanged lines hidden (view full) --- 2711 2712 CX_DEBUG (d, ("Rmnode\n")); 2713 if (d && d->running) { 2714 int s = splhigh (); 2715 cx_down (d); 2716 splx (s); 2717 } 2718#ifdef KLD_MODULE |
2719 if (node->nd_flags & NG_REALLY_DIE) { | 2719 if (node->nd_flags & NGF_REALLY_DIE) { |
2720 NG_NODE_SET_PRIVATE (node, NULL); 2721 NG_NODE_UNREF (node); 2722 } | 2720 NG_NODE_SET_PRIVATE (node, NULL); 2721 NG_NODE_UNREF (node); 2722 } |
2723 node->nd_flags &= ~NG_INVALID; | 2723 NG_NODE_REVIVE(node); /* Persistant node */ |
2724#endif 2725#else /* __FreeBSD_version < 500000 */ 2726 drv_t *d = node->private; 2727 int s; 2728 2729 s = splhigh (); 2730 cx_down (d); 2731 splx (s); --- 151 unchanged lines hidden --- | 2724#endif 2725#else /* __FreeBSD_version < 500000 */ 2726 drv_t *d = node->private; 2727 int s; 2728 2729 s = splhigh (); 2730 cx_down (d); 2731 splx (s); --- 151 unchanged lines hidden --- |