if_cp.c (199407) | if_cp.c (207554) |
---|---|
1/*- 2 * Cronyx-Tau-PCI adapter driver for FreeBSD. 3 * Supports PPP/HDLC, Cisco/HDLC and FrameRelay 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) 1999-2004 Cronyx Engineering. 8 * Author: Kurakin Roman, <rik@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_cp.c,v 1.1.2.41 2004/06/23 17:09:13 rik Exp $ 22 */ 23 24#include <sys/cdefs.h> | 1/*- 2 * Cronyx-Tau-PCI adapter driver for FreeBSD. 3 * Supports PPP/HDLC, Cisco/HDLC and FrameRelay 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) 1999-2004 Cronyx Engineering. 8 * Author: Kurakin Roman, <rik@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_cp.c,v 1.1.2.41 2004/06/23 17:09:13 rik Exp $ 22 */ 23 24#include <sys/cdefs.h> |
25__FBSDID("$FreeBSD: head/sys/dev/cp/if_cp.c 199407 2009-11-17 16:43:02Z jhb $"); | 25__FBSDID("$FreeBSD: head/sys/dev/cp/if_cp.c 207554 2010-05-03 07:32:50Z sobomax $"); |
26 27#include <sys/param.h> 28#include <sys/ucred.h> 29#include <sys/proc.h> 30#include <sys/systm.h> 31#include <sys/mbuf.h> 32#include <sys/kernel.h> 33#include <sys/module.h> --- 466 unchanged lines hidden (view full) --- 500 NG_NODE_SET_PRIVATE (d->node, d); 501 sprintf (d->nodename, "%s%d", NG_CP_NODE_TYPE, 502 c->board->num*NCHAN + c->num); 503 if (ng_name_node (d->node, d->nodename)) { 504 printf ("%s: cannot name node\n", d->nodename); 505 NG_NODE_UNREF (d->node); 506 continue; 507 } | 26 27#include <sys/param.h> 28#include <sys/ucred.h> 29#include <sys/proc.h> 30#include <sys/systm.h> 31#include <sys/mbuf.h> 32#include <sys/kernel.h> 33#include <sys/module.h> --- 466 unchanged lines hidden (view full) --- 500 NG_NODE_SET_PRIVATE (d->node, d); 501 sprintf (d->nodename, "%s%d", NG_CP_NODE_TYPE, 502 c->board->num*NCHAN + c->num); 503 if (ng_name_node (d->node, d->nodename)) { 504 printf ("%s: cannot name node\n", d->nodename); 505 NG_NODE_UNREF (d->node); 506 continue; 507 } |
508 d->queue.ifq_maxlen = IFQ_MAXLEN; 509 d->hi_queue.ifq_maxlen = IFQ_MAXLEN; | 508 d->queue.ifq_maxlen = ifqmaxlen; 509 d->hi_queue.ifq_maxlen = ifqmaxlen; |
510 mtx_init (&d->queue.ifq_mtx, "cp_queue", NULL, MTX_DEF); 511 mtx_init (&d->hi_queue.ifq_mtx, "cp_queue_hi", NULL, MTX_DEF); 512#else /*NETGRAPH*/ 513 d->ifp = if_alloc(IFT_PPP); 514 if (d->ifp == NULL) { 515 printf ("%s: cannot if_alloc() interface\n", d->name); 516 continue; 517 } --- 1768 unchanged lines hidden --- | 510 mtx_init (&d->queue.ifq_mtx, "cp_queue", NULL, MTX_DEF); 511 mtx_init (&d->hi_queue.ifq_mtx, "cp_queue_hi", NULL, MTX_DEF); 512#else /*NETGRAPH*/ 513 d->ifp = if_alloc(IFT_PPP); 514 if (d->ifp == NULL) { 515 printf ("%s: cannot if_alloc() interface\n", d->name); 516 continue; 517 } --- 1768 unchanged lines hidden --- |