kern_ndis.c (216049) | kern_ndis.c (216242) |
---|---|
1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/compat/ndis/kern_ndis.c 216049 2010-11-29 10:10:56Z bschmidt $"); | 34__FBSDID("$FreeBSD: head/sys/compat/ndis/kern_ndis.c 216242 2010-12-06 20:54:53Z bschmidt $"); |
35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/unistd.h> 39#include <sys/types.h> 40#include <sys/errno.h> 41#include <sys/callout.h> 42#include <sys/socket.h> --- 385 unchanged lines hidden (view full) --- 428 free(cfg->ndis_cfg.nc_cfgkey, M_DEVBUF); 429 free(cfg->ndis_cfg.nc_cfgdesc, M_DEVBUF); 430 free(cfg, M_DEVBUF); 431 } 432 433 return (0); 434} 435 | 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/unistd.h> 39#include <sys/types.h> 40#include <sys/errno.h> 41#include <sys/callout.h> 42#include <sys/socket.h> --- 385 unchanged lines hidden (view full) --- 428 free(cfg->ndis_cfg.nc_cfgkey, M_DEVBUF); 429 free(cfg->ndis_cfg.nc_cfgdesc, M_DEVBUF); 430 free(cfg, M_DEVBUF); 431 } 432 433 return (0); 434} 435 |
436void * 437ndis_get_routine_address(functbl, name) 438 struct image_patch_table *functbl; 439 char *name; 440{ 441 int i; 442 443 for (i = 0; functbl[i].ipt_name != NULL; i++) 444 if (strcmp(name, functbl[i].ipt_name) == 0) 445 return (functbl[i].ipt_wrap); 446 return (NULL); 447} 448 |
|
436static void 437ndis_return(dobj, arg) 438 device_object *dobj; 439 void *arg; 440{ 441 ndis_miniport_block *block; 442 ndis_miniport_characteristics *ch; 443 ndis_return_handler returnfunc; --- 981 unchanged lines hidden --- | 449static void 450ndis_return(dobj, arg) 451 device_object *dobj; 452 void *arg; 453{ 454 ndis_miniport_block *block; 455 ndis_miniport_characteristics *ch; 456 ndis_return_handler returnfunc; --- 981 unchanged lines hidden --- |