Deleted Added
full compact
kern_ndis.c (124060) kern_ndis.c (124100)
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 124060 2004-01-02 04:31:06Z wpaul $");
34__FBSDID("$FreeBSD: head/sys/compat/ndis/kern_ndis.c 124100 2004-01-03 13:20:30Z wpaul $");
35
36#include <sys/param.h>
37#include <sys/types.h>
38#include <sys/errno.h>
39#include <sys/callout.h>
40#include <sys/socket.h>
41#include <sys/queue.h>
42#include <sys/sysctl.h>

--- 35 unchanged lines hidden (view full) ---

78#define NDIS_DUMMY_PATH "\\\\some\\bogus\\path"
79
80__stdcall static void ndis_status_func(ndis_handle, ndis_status,
81 void *, uint32_t);
82__stdcall static void ndis_statusdone_func(ndis_handle);
83__stdcall static void ndis_setdone_func(ndis_handle, ndis_status);
84__stdcall static void ndis_getdone_func(ndis_handle, ndis_status);
85__stdcall static void ndis_resetdone_func(ndis_handle, ndis_status, uint8_t);
35
36#include <sys/param.h>
37#include <sys/types.h>
38#include <sys/errno.h>
39#include <sys/callout.h>
40#include <sys/socket.h>
41#include <sys/queue.h>
42#include <sys/sysctl.h>

--- 35 unchanged lines hidden (view full) ---

78#define NDIS_DUMMY_PATH "\\\\some\\bogus\\path"
79
80__stdcall static void ndis_status_func(ndis_handle, ndis_status,
81 void *, uint32_t);
82__stdcall static void ndis_statusdone_func(ndis_handle);
83__stdcall static void ndis_setdone_func(ndis_handle, ndis_status);
84__stdcall static void ndis_getdone_func(ndis_handle, ndis_status);
85__stdcall static void ndis_resetdone_func(ndis_handle, ndis_status, uint8_t);
86__stdcall static void ndis_sendrsrcavail_func(ndis_handle);
86
87static uma_zone_t ndis_packet_zone, ndis_buffer_zone;
88
89/*
90 * This allows us to export our symbols to other modules.
91 * Note that we call ourselves 'ndisapi' to avoid a namespace
92 * collision with if_ndis.ko, which internally calls itself
93 * 'ndis.'

--- 24 unchanged lines hidden (view full) ---

118
119 return(error);
120}
121DEV_MODULE(ndisapi, ndis_modevent, NULL);
122MODULE_VERSION(ndisapi, 1);
123
124
125__stdcall static void
87
88static uma_zone_t ndis_packet_zone, ndis_buffer_zone;
89
90/*
91 * This allows us to export our symbols to other modules.
92 * Note that we call ourselves 'ndisapi' to avoid a namespace
93 * collision with if_ndis.ko, which internally calls itself
94 * 'ndis.'

--- 24 unchanged lines hidden (view full) ---

119
120 return(error);
121}
122DEV_MODULE(ndisapi, ndis_modevent, NULL);
123MODULE_VERSION(ndisapi, 1);
124
125
126__stdcall static void
127ndis_sendrsrcavail_func(adapter)
128 ndis_handle adapter;
129{
130 return;
131}
132
133__stdcall static void
126ndis_status_func(adapter, status, sbuf, slen)
127 ndis_handle adapter;
128 ndis_status status;
129 void *sbuf;
130 uint32_t slen;
131{
132 ndis_miniport_block *block;
133 block = adapter;

--- 1023 unchanged lines hidden (view full) ---

1157 }
1158
1159 block->nmb_signature = (void *)0xcafebabe;
1160 block->nmb_setdone_func = ndis_setdone_func;
1161 block->nmb_querydone_func = ndis_getdone_func;
1162 block->nmb_status_func = ndis_status_func;
1163 block->nmb_statusdone_func = ndis_statusdone_func;
1164 block->nmb_resetdone_func = ndis_resetdone_func;
134ndis_status_func(adapter, status, sbuf, slen)
135 ndis_handle adapter;
136 ndis_status status;
137 void *sbuf;
138 uint32_t slen;
139{
140 ndis_miniport_block *block;
141 block = adapter;

--- 1023 unchanged lines hidden (view full) ---

1165 }
1166
1167 block->nmb_signature = (void *)0xcafebabe;
1168 block->nmb_setdone_func = ndis_setdone_func;
1169 block->nmb_querydone_func = ndis_getdone_func;
1170 block->nmb_status_func = ndis_status_func;
1171 block->nmb_statusdone_func = ndis_statusdone_func;
1172 block->nmb_resetdone_func = ndis_resetdone_func;
1173 block->nmb_sendrsrc_func = ndis_sendrsrcavail_func;
1165
1166 block->nmb_ifp = &sc->arpcom.ac_if;
1167 block->nmb_dev = sc->ndis_dev;
1168
1169 return(0);
1170}
1174
1175 block->nmb_ifp = &sc->arpcom.ac_if;
1176 block->nmb_dev = sc->ndis_dev;
1177
1178 return(0);
1179}