if_cx.c (199407) | if_cx.c (207554) |
---|---|
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 199407 2009-11-17 16:43:02Z jhb $"); | 26__FBSDID("$FreeBSD: head/sys/dev/cx/if_cx.c 207554 2010-05-03 07:32:50Z sobomax $"); |
27 28#include <sys/param.h> 29 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <sys/module.h> 33#include <sys/priv.h> 34#include <sys/proc.h> --- 791 unchanged lines hidden (view full) --- 826 if (ng_name_node (d->node, d->nodename)) { 827 printf ("%s: cannot name node\n", d->nodename); 828 NG_NODE_UNREF (d->node); 829 channel [b->num*NCHAN + c->num] = 0; 830 c->sys = 0; 831 cx_bus_dma_mem_free (&d->dmamem); 832 continue; 833 } | 27 28#include <sys/param.h> 29 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <sys/module.h> 33#include <sys/priv.h> 34#include <sys/proc.h> --- 791 unchanged lines hidden (view full) --- 826 if (ng_name_node (d->node, d->nodename)) { 827 printf ("%s: cannot name node\n", d->nodename); 828 NG_NODE_UNREF (d->node); 829 channel [b->num*NCHAN + c->num] = 0; 830 c->sys = 0; 831 cx_bus_dma_mem_free (&d->dmamem); 832 continue; 833 } |
834 d->lo_queue.ifq_maxlen = IFQ_MAXLEN; 835 d->hi_queue.ifq_maxlen = IFQ_MAXLEN; | 834 d->lo_queue.ifq_maxlen = ifqmaxlen; 835 d->hi_queue.ifq_maxlen = ifqmaxlen; |
836 mtx_init (&d->lo_queue.ifq_mtx, "cx_queue_lo", NULL, MTX_DEF); 837 mtx_init (&d->hi_queue.ifq_mtx, "cx_queue_hi", NULL, MTX_DEF); 838#else /*NETGRAPH*/ 839 d->ifp = if_alloc(IFT_PPP); 840 if (d->ifp == NULL) { 841 printf ("%s: cannot if_alloc() common interface\n", 842 d->name); 843 channel [b->num*NCHAN + c->num] = 0; --- 1718 unchanged lines hidden --- | 836 mtx_init (&d->lo_queue.ifq_mtx, "cx_queue_lo", NULL, MTX_DEF); 837 mtx_init (&d->hi_queue.ifq_mtx, "cx_queue_hi", NULL, MTX_DEF); 838#else /*NETGRAPH*/ 839 d->ifp = if_alloc(IFT_PPP); 840 if (d->ifp == NULL) { 841 printf ("%s: cannot if_alloc() common interface\n", 842 d->name); 843 channel [b->num*NCHAN + c->num] = 0; --- 1718 unchanged lines hidden --- |