xref: /reactos/drivers/network/ndis/ndis/40stubs.c (revision c2c66aff)
1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS NDIS library
4  * FILE:        ndis/40stubs.c
5  * PURPOSE:     NDIS 4.0 stubs
6  * PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
7  * REVISIONS:
8  *   CSH 01/08-2000 Created
9  */
10 
11 #include "ndissys.h"
12 
13 /*
14  * @unimplemented
15  */
16 VOID
17 EXPORT
NdisCompleteCloseAdapter(IN NDIS_HANDLE NdisBindingContext,IN NDIS_STATUS Status)18 NdisCompleteCloseAdapter(
19     IN  NDIS_HANDLE NdisBindingContext,
20     IN  NDIS_STATUS Status)
21 /*
22  * FUNCTION:
23  * ARGUMENTS:
24  * NOTES:
25  *    NDIS 4.0
26  */
27 {
28     UNIMPLEMENTED;
29 }
30 
31 
32 /*
33  * @unimplemented
34  */
35 VOID
36 EXPORT
NdisCompleteOpenAdapter(IN NDIS_HANDLE NdisBindingContext,IN NDIS_STATUS Status,IN NDIS_STATUS OpenErrorStatus)37 NdisCompleteOpenAdapter(
38     IN  NDIS_HANDLE NdisBindingContext,
39     IN  NDIS_STATUS Status,
40     IN  NDIS_STATUS OpenErrorStatus)
41 /*
42  * FUNCTION:
43  * ARGUMENTS:
44  * NOTES:
45  *    NDIS 4.0
46  */
47 {
48     UNIMPLEMENTED;
49 }
50 
51 
52 /*
53  * @unimplemented
54  */
55 NDIS_STATUS
56 EXPORT
NdisDeregisterAdapter(IN NDIS_HANDLE NdisAdapterHandle)57 NdisDeregisterAdapter(
58     IN  NDIS_HANDLE NdisAdapterHandle)
59 /*
60  * FUNCTION:
61  * ARGUMENTS:
62  * NOTES:
63  *    NDIS 4.0
64  */
65 {
66     UNIMPLEMENTED;
67 
68     return NDIS_STATUS_FAILURE;
69 }
70 
71 
72 /*
73  * @unimplemented
74  */
75 VOID
76 EXPORT
NdisDeregisterMac(OUT PNDIS_STATUS Status,IN NDIS_HANDLE NdisMacHandle)77 NdisDeregisterMac(
78     OUT PNDIS_STATUS    Status,
79     IN  NDIS_HANDLE     NdisMacHandle)
80 /*
81  * FUNCTION:
82  * ARGUMENTS:
83  * NOTES:
84  *    NDIS 4.0
85  */
86 {
87     UNIMPLEMENTED;
88 }
89 
90 
91 /*
92  * @unimplemented
93  */
94 NDIS_STATUS
95 EXPORT
NdisIMQueueMiniportCallback(IN NDIS_HANDLE MiniportAdapterHandle,IN W_MINIPORT_CALLBACK CallbackRoutine,IN PVOID CallbackContext)96 NdisIMQueueMiniportCallback(
97     IN  NDIS_HANDLE         MiniportAdapterHandle,
98     IN  W_MINIPORT_CALLBACK CallbackRoutine,
99     IN  PVOID               CallbackContext)
100 /*
101  * FUNCTION:
102  * ARGUMENTS:
103  * NOTES:
104  *    NDIS 4.0
105  */
106 {
107     UNIMPLEMENTED;
108 
109     return NDIS_STATUS_FAILURE;
110 }
111 
112 
113 /*
114  * @unimplemented
115  */
116 VOID
117 EXPORT
NdisIMRevertBack(IN NDIS_HANDLE MiniportAdapterHandle,IN NDIS_HANDLE SwitchHandle)118 NdisIMRevertBack(
119     IN  NDIS_HANDLE MiniportAdapterHandle,
120     IN  NDIS_HANDLE SwitchHandle)
121 /*
122  * FUNCTION:
123  * ARGUMENTS:
124  * NOTES:
125  *    NDIS 4.0
126  */
127 {
128     UNIMPLEMENTED;
129 }
130 
131 
132 /*
133  * @unimplemented
134  */
135 BOOLEAN
136 EXPORT
NdisIMSwitchToMiniport(IN NDIS_HANDLE MiniportAdapterHandle,OUT PNDIS_HANDLE SwitchHandle)137 NdisIMSwitchToMiniport(
138     IN  NDIS_HANDLE     MiniportAdapterHandle,
139     OUT PNDIS_HANDLE    SwitchHandle)
140 /*
141  * FUNCTION:
142  * ARGUMENTS:
143  * NOTES:
144  *    NDIS 4.0
145  */
146 {
147     UNIMPLEMENTED;
148 
149 	return FALSE;
150 }
151 
152 
153 /*
154  * @unimplemented
155  */
156 NDIS_STATUS
157 EXPORT
NdisQueryReceiveInformation(IN NDIS_HANDLE NdisBindingHandle,IN NDIS_HANDLE MacContext,OUT PLONGLONG TimeSent OPTIONAL,OUT PLONGLONG TimeReceived OPTIONAL,IN PUCHAR Buffer,IN UINT BufferSize,OUT PUINT SizeNeeded)158 NdisQueryReceiveInformation(
159     IN  NDIS_HANDLE NdisBindingHandle,
160     IN  NDIS_HANDLE MacContext,
161     OUT PLONGLONG   TimeSent        OPTIONAL,
162     OUT PLONGLONG   TimeReceived    OPTIONAL,
163     IN  PUCHAR      Buffer,
164     IN  UINT        BufferSize,
165     OUT PUINT       SizeNeeded)
166 /*
167  * FUNCTION:
168  * ARGUMENTS:
169  * NOTES:
170  *    NDIS 4.0
171  */
172 {
173     UNIMPLEMENTED;
174 
175 	return NDIS_STATUS_FAILURE;
176 }
177 
178 
179 /*
180  * @unimplemented
181  */
182 VOID
183 EXPORT
NdisReadMcaPosInformation(OUT PNDIS_STATUS Status,IN NDIS_HANDLE WrapperConfigurationContext,IN PUINT ChannelNumber,OUT PNDIS_MCA_POS_DATA McaData)184 NdisReadMcaPosInformation(
185     OUT PNDIS_STATUS        Status,
186     IN  NDIS_HANDLE         WrapperConfigurationContext,
187     IN  PUINT               ChannelNumber,
188     OUT PNDIS_MCA_POS_DATA  McaData)
189 /*
190  * FUNCTION:
191  * ARGUMENTS:
192  * NOTES:
193  *    NDIS 4.0
194  */
195 {
196     UNIMPLEMENTED;
197 }
198 
199 
200 /*
201  * @unimplemented
202  */
203 NDIS_STATUS
204 EXPORT
NdisRegisterAdapter(OUT PNDIS_HANDLE NdisAdapterHandle,IN NDIS_HANDLE NdisMacHandle,IN NDIS_HANDLE MacAdapterContext,IN NDIS_HANDLE WrapperConfigurationContext,IN PNDIS_STRING AdapterName,IN PVOID AdapterInformation)205 NdisRegisterAdapter(
206     OUT PNDIS_HANDLE    NdisAdapterHandle,
207     IN  NDIS_HANDLE     NdisMacHandle,
208     IN  NDIS_HANDLE     MacAdapterContext,
209     IN  NDIS_HANDLE     WrapperConfigurationContext,
210     IN  PNDIS_STRING    AdapterName,
211     IN  PVOID           AdapterInformation)
212 /*
213  * FUNCTION:
214  * ARGUMENTS:
215  * NOTES:
216  *    NDIS 4.0
217  */
218 {
219     UNIMPLEMENTED;
220 
221     return NDIS_STATUS_FAILURE;
222 }
223 
224 
225 /*
226  * @unimplemented
227  */
228 VOID
229 EXPORT
NdisReleaseAdapterResources(IN NDIS_HANDLE NdisAdapterHandle)230 NdisReleaseAdapterResources(
231     IN  NDIS_HANDLE NdisAdapterHandle)
232 /*
233  * FUNCTION:
234  * ARGUMENTS:
235  * NOTES:
236  *    NDIS 4.0
237  */
238 {
239     UNIMPLEMENTED;
240 }
241 
242 
243 /*
244  * @implemented
245  */
246 #undef NdisUpdateSharedMemory
247 VOID
248 EXPORT
NdisUpdateSharedMemory(IN NDIS_HANDLE NdisAdapterHandle,IN ULONG Length,IN PVOID VirtualAddress,IN NDIS_PHYSICAL_ADDRESS PhysicalAddress)249 NdisUpdateSharedMemory(
250     IN  NDIS_HANDLE             NdisAdapterHandle,
251     IN  ULONG                   Length,
252     IN  PVOID                   VirtualAddress,
253     IN  NDIS_PHYSICAL_ADDRESS   PhysicalAddress)
254 /*
255  * FUNCTION:
256  * ARGUMENTS:
257  * NOTES:
258  *    NDIS 4.0
259  */
260 {
261     /* No-op. */
262 }
263 
264 /*
265  * @unimplemented
266  */
267 VOID
268 EXPORT
NdisImmediateReadSharedMemory(IN NDIS_HANDLE WrapperConfigurationContext,IN ULONG SharedMemoryAddress,OUT PUCHAR Buffer,IN ULONG Length)269 NdisImmediateReadSharedMemory(
270     IN  NDIS_HANDLE WrapperConfigurationContext,
271     IN  ULONG       SharedMemoryAddress,
272     OUT PUCHAR      Buffer,
273     IN  ULONG       Length)
274 {
275     UNIMPLEMENTED;
276 }
277 
278 /*
279  * @unimplemented
280  */
281 VOID
282 EXPORT
NdisImmediateWriteSharedMemory(IN NDIS_HANDLE WrapperConfigurationContext,IN ULONG SharedMemoryAddress,IN PUCHAR Buffer,IN ULONG Length)283 NdisImmediateWriteSharedMemory(
284     IN  NDIS_HANDLE WrapperConfigurationContext,
285     IN  ULONG       SharedMemoryAddress,
286     IN  PUCHAR      Buffer,
287     IN  ULONG       Length)
288 {
289     UNIMPLEMENTED;
290 }
291 
292 
293 /*
294  * @unimplemented
295  */
296 VOID
297 EXPORT
NdisReadEisaSlotInformationEx(OUT PNDIS_STATUS Status,IN NDIS_HANDLE WrapperConfigurationContext,OUT PUINT SlotNumber,OUT PNDIS_EISA_FUNCTION_INFORMATION * EisaData,OUT PUINT NumberOfFunctions)298 NdisReadEisaSlotInformationEx(
299     OUT PNDIS_STATUS                    Status,
300     IN  NDIS_HANDLE                     WrapperConfigurationContext,
301     OUT PUINT                           SlotNumber,
302     OUT PNDIS_EISA_FUNCTION_INFORMATION *EisaData,
303     OUT PUINT                           NumberOfFunctions)
304 {
305     UNIMPLEMENTED;
306 }
307 
308 /* EOF */
309