subr_ndis.c (125599) | subr_ndis.c (125860) |
---|---|
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/subr_ndis.c 125599 2004-02-08 20:39:35Z wpaul $"); | 34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_ndis.c 125860 2004-02-16 02:50:03Z wpaul $"); |
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 --- 1913 unchanged lines hidden (view full) --- 1956 1957 mtx_pool_lock(ndis_mtxpool, ntoskrnl_dispatchlock); 1958 1959 if (event->ne_event.nk_header.dh_sigstate == TRUE) { 1960 mtx_pool_unlock(ndis_mtxpool, ntoskrnl_dispatchlock); 1961 return(TRUE); 1962 } 1963 | 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 --- 1913 unchanged lines hidden (view full) --- 1956 1957 mtx_pool_lock(ndis_mtxpool, ntoskrnl_dispatchlock); 1958 1959 if (event->ne_event.nk_header.dh_sigstate == TRUE) { 1960 mtx_pool_unlock(ndis_mtxpool, ntoskrnl_dispatchlock); 1961 return(TRUE); 1962 } 1963 |
1964 INSERT_LIST_HEAD((&event->ne_event.nk_header.dh_waitlisthead), | 1964 INSERT_LIST_TAIL((&event->ne_event.nk_header.dh_waitlisthead), |
1965 (&w.wb_waitlist)); 1966 1967 tv.tv_sec = 0; 1968 tv.tv_usec = msecs * 1000; 1969 1970 w.wb_kthread = td; 1971 w.wb_object = &event->ne_event.nk_header; 1972 --- 1010 unchanged lines hidden --- | 1965 (&w.wb_waitlist)); 1966 1967 tv.tv_sec = 0; 1968 tv.tv_usec = msecs * 1000; 1969 1970 w.wb_kthread = td; 1971 w.wb_object = &event->ne_event.nk_header; 1972 --- 1010 unchanged lines hidden --- |