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/subr_ndis.c 124504 2004-01-13 22:49:45Z obrien $");
35
36/*
37 * This file implements a translation layer between the BSD networking
38 * infrasturcture and Windows(R) NDIS network driver modules. A Windows
39 * NDIS driver calls into several functions in the NDIS.SYS Windows
40 * kernel module and exports a table of functions designed to be called
41 * by the NDIS subsystem. Using the PE loader, we can patch our own
42 * versions of the NDIS routines into a given Windows driver module and
--- 52 unchanged lines hidden (view full) ---
95
96#include <compat/ndis/pe_var.h>
97#include <compat/ndis/resource_var.h>
98#include <compat/ndis/ntoskrnl_var.h>
99#include <compat/ndis/ndis_var.h>
100#include <compat/ndis/cfg_var.h>
101#include <dev/if_ndis/if_ndisvar.h>
102
103#define FUNC void(*)(void)
104
105static struct mtx *ndis_interlock;
106static char ndis_filepath[MAXPATHLEN];
107struct mtx_pool *ndis_mtxpool;
108
109SYSCTL_STRING(_hw, OID_AUTO, ndis_filepath, CTLFLAG_RW, ndis_filepath,
110 MAXPATHLEN, "Path used by NdisOpenFile() to search for files");
--- 2527 unchanged lines hidden ---
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/subr_ndis.c 124504 2004-01-13 22:49:45Z obrien $");
35
36/*
37 * This file implements a translation layer between the BSD networking
38 * infrasturcture and Windows(R) NDIS network driver modules. A Windows
39 * NDIS driver calls into several functions in the NDIS.SYS Windows
40 * kernel module and exports a table of functions designed to be called
41 * by the NDIS subsystem. Using the PE loader, we can patch our own
42 * versions of the NDIS routines into a given Windows driver module and
--- 52 unchanged lines hidden (view full) ---
95
96#include <compat/ndis/pe_var.h>
97#include <compat/ndis/resource_var.h>
98#include <compat/ndis/ntoskrnl_var.h>
99#include <compat/ndis/ndis_var.h>
100#include <compat/ndis/cfg_var.h>
101#include <dev/if_ndis/if_ndisvar.h>
102
103#define FUNC void(*)(void)
104
105static struct mtx *ndis_interlock;
106static char ndis_filepath[MAXPATHLEN];
107struct mtx_pool *ndis_mtxpool;
108
109SYSCTL_STRING(_hw, OID_AUTO, ndis_filepath, CTLFLAG_RW, ndis_filepath,
110 MAXPATHLEN, "Path used by NdisOpenFile() to search for files");
--- 2527 unchanged lines hidden ---