if_ct.c (199407) | if_ct.c (207554) |
---|---|
1/*- 2 * Cronyx-Tau 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> --- 8 unchanged lines hidden (view full) --- 17 * modify and redistribute this software in source and binary forms, 18 * as long as this message is kept with the software, all derivative 19 * works or modified versions. 20 * 21 * Cronyx Id: if_ct.c,v 1.1.2.31 2004/06/23 17:09:13 rik Exp $ 22 */ 23 24#include <sys/cdefs.h> | 1/*- 2 * Cronyx-Tau 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> --- 8 unchanged lines hidden (view full) --- 17 * modify and redistribute this software in source and binary forms, 18 * as long as this message is kept with the software, all derivative 19 * works or modified versions. 20 * 21 * Cronyx Id: if_ct.c,v 1.1.2.31 2004/06/23 17:09:13 rik Exp $ 22 */ 23 24#include <sys/cdefs.h> |
25__FBSDID("$FreeBSD: head/sys/dev/ctau/if_ct.c 199407 2009-11-17 16:43:02Z jhb $"); | 25__FBSDID("$FreeBSD: head/sys/dev/ctau/if_ct.c 207554 2010-05-03 07:32:50Z sobomax $"); |
26 27#include <sys/param.h> 28#include <sys/proc.h> 29#include <sys/systm.h> 30#include <sys/kernel.h> 31#include <sys/module.h> 32#include <sys/mbuf.h> 33#include <sys/sockio.h> --- 683 unchanged lines hidden (view full) --- 717 if (ng_name_node (d->node, d->nodename)) { 718 printf ("%s: cannot name node\n", d->nodename); 719 NG_NODE_UNREF (d->node); 720 channel [b->num*NCHAN + c->num] = 0; 721 c->sys = 0; 722 ct_bus_dma_mem_free (&d->dmamem); 723 continue; 724 } | 26 27#include <sys/param.h> 28#include <sys/proc.h> 29#include <sys/systm.h> 30#include <sys/kernel.h> 31#include <sys/module.h> 32#include <sys/mbuf.h> 33#include <sys/sockio.h> --- 683 unchanged lines hidden (view full) --- 717 if (ng_name_node (d->node, d->nodename)) { 718 printf ("%s: cannot name node\n", d->nodename); 719 NG_NODE_UNREF (d->node); 720 channel [b->num*NCHAN + c->num] = 0; 721 c->sys = 0; 722 ct_bus_dma_mem_free (&d->dmamem); 723 continue; 724 } |
725 d->queue.ifq_maxlen = IFQ_MAXLEN; 726 d->hi_queue.ifq_maxlen = IFQ_MAXLEN; | 725 d->queue.ifq_maxlen = ifqmaxlen; 726 d->hi_queue.ifq_maxlen = ifqmaxlen; |
727 mtx_init (&d->queue.ifq_mtx, "ct_queue", NULL, MTX_DEF); 728 mtx_init (&d->hi_queue.ifq_mtx, "ct_queue_hi", NULL, MTX_DEF); 729#else /*NETGRAPH*/ 730 d->ifp = if_alloc(IFT_PPP); 731 if (d->ifp == NULL) { 732 printf ("%s: cannot if_alloc common interface\n", 733 d->name); 734 channel [b->num*NCHAN + c->num] = 0; --- 1489 unchanged lines hidden --- | 727 mtx_init (&d->queue.ifq_mtx, "ct_queue", NULL, MTX_DEF); 728 mtx_init (&d->hi_queue.ifq_mtx, "ct_queue_hi", NULL, MTX_DEF); 729#else /*NETGRAPH*/ 730 d->ifp = if_alloc(IFT_PPP); 731 if (d->ifp == NULL) { 732 printf ("%s: cannot if_alloc common interface\n", 733 d->name); 734 channel [b->num*NCHAN + c->num] = 0; --- 1489 unchanged lines hidden --- |