if_ce.c (188663) | if_ce.c (193813) |
---|---|
1/* 2 * Cronyx-Tau32-PCI adapter driver for FreeBSD. 3 * 4 * Copyright (C) 2003-2005 Cronyx Engineering. 5 * Copyright (C) 2003-2005 Kurakin Roman, <rik@FreeBSD.org> 6 * 7 * This software is distributed with NO WARRANTIES, not even the implied 8 * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 * 10 * Authors grant any other persons or organisations a permission to use, 11 * modify and redistribute this software in source and binary forms, 12 * as long as this message is kept with the software, all derivative 13 * works or modified versions. 14 * 15 * $Cronyx: if_ce.c,v 1.9.2.8 2005/11/21 14:17:44 rik Exp $ 16 */ 17 18#include <sys/cdefs.h> | 1/* 2 * Cronyx-Tau32-PCI adapter driver for FreeBSD. 3 * 4 * Copyright (C) 2003-2005 Cronyx Engineering. 5 * Copyright (C) 2003-2005 Kurakin Roman, <rik@FreeBSD.org> 6 * 7 * This software is distributed with NO WARRANTIES, not even the implied 8 * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 * 10 * Authors grant any other persons or organisations a permission to use, 11 * modify and redistribute this software in source and binary forms, 12 * as long as this message is kept with the software, all derivative 13 * works or modified versions. 14 * 15 * $Cronyx: if_ce.c,v 1.9.2.8 2005/11/21 14:17:44 rik Exp $ 16 */ 17 18#include <sys/cdefs.h> |
19__FBSDID("$FreeBSD: head/sys/dev/ce/if_ce.c 188663 2009-02-15 23:29:13Z rwatson $"); | 19__FBSDID("$FreeBSD: head/sys/dev/ce/if_ce.c 193813 2009-06-09 07:14:32Z imp $"); |
20 21#include <sys/param.h> 22 23#if __FreeBSD_version >= 500000 24# define NPCI 1 25#else 26# include "pci.h" 27#endif --- 132 unchanged lines hidden (view full) --- 160 161typedef struct _drv_t { 162 char name [8]; 163 int running; 164 ce_board_t *board; 165 ce_chan_t *chan; 166 struct ifqueue rqueue; 167#ifdef NETGRAPH | 20 21#include <sys/param.h> 22 23#if __FreeBSD_version >= 500000 24# define NPCI 1 25#else 26# include "pci.h" 27#endif --- 132 unchanged lines hidden (view full) --- 160 161typedef struct _drv_t { 162 char name [8]; 163 int running; 164 ce_board_t *board; 165 ce_chan_t *chan; 166 struct ifqueue rqueue; 167#ifdef NETGRAPH |
168 char nodename [NG_NODELEN+1]; | 168 char nodename [NG_NODESIZE]; |
169 hook_p hook; 170 hook_p debug_hook; 171 node_p node; 172 struct ifqueue queue; 173 struct ifqueue hi_queue; 174 short timeout; 175 struct callout timeout_handle; 176#else --- 2176 unchanged lines hidden (view full) --- 2353 l += sprintf (s + l, "Error: node not connect to channel"); 2354#if __FreeBSD_version < 500000 2355 (resp)->header.version = NG_VERSION; 2356 (resp)->header.arglen = strlen (s) + 1; 2357 (resp)->header.token = msg->header.token; 2358 (resp)->header.typecookie = NGM_CE_COOKIE; 2359 (resp)->header.cmd = msg->header.cmd; 2360#endif | 169 hook_p hook; 170 hook_p debug_hook; 171 node_p node; 172 struct ifqueue queue; 173 struct ifqueue hi_queue; 174 short timeout; 175 struct callout timeout_handle; 176#else --- 2176 unchanged lines hidden (view full) --- 2353 l += sprintf (s + l, "Error: node not connect to channel"); 2354#if __FreeBSD_version < 500000 2355 (resp)->header.version = NG_VERSION; 2356 (resp)->header.arglen = strlen (s) + 1; 2357 (resp)->header.token = msg->header.token; 2358 (resp)->header.typecookie = NGM_CE_COOKIE; 2359 (resp)->header.cmd = msg->header.cmd; 2360#endif |
2361 strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN); | 2361 strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ); |
2362 } 2363 break; 2364 } 2365 break; 2366 } 2367#if __FreeBSD_version >= 500000 2368 NG_RESPOND_MSG (error, node, item, resp); 2369 NG_FREE_MSG (msg); --- 319 unchanged lines hidden --- | 2362 } 2363 break; 2364 } 2365 break; 2366 } 2367#if __FreeBSD_version >= 500000 2368 NG_RESPOND_MSG (error, node, item, resp); 2369 NG_FREE_MSG (msg); --- 319 unchanged lines hidden --- |