Initial revision
[reactos.git] / reactos / drivers / net / ndis / ndis / control.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS NDIS library
4 * FILE: ndis/control.c
5 * PURPOSE: Program control routines
6 * PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
7 * REVISIONS:
8 * CSH 01/08-2000 Created
9 */
10 #include <ndissys.h>
11
12
13 VOID
14 EXPORT
15 NdisAcquireReadWriteLock(
16 IN PNDIS_RW_LOCK Lock,
17 IN BOOLEAN fWrite,
18 IN PLOCK_STATE LockState)
19 /*
20 * FUNCTION:
21 * ARGUMENTS:
22 * NOTES:
23 * NDIS 5.0
24 */
25 {
26 UNIMPLEMENTED
27 }
28
29
30 VOID
31 EXPORT
32 NdisAcquireSpinLock(
33 IN PNDIS_SPIN_LOCK SpinLock)
34 /*
35 * FUNCTION: Acquires a spin lock for exclusive access to a resource
36 * ARGUMENTS:
37 * SpinLock = Pointer to the initialized NDIS spin lock to be acquired
38 */
39 {
40 UNIMPLEMENTED
41 }
42
43
44 VOID
45 EXPORT
46 NdisAllocateSpinLock(
47 IN PNDIS_SPIN_LOCK SpinLock)
48 /*
49 * FUNCTION: Initializes for an NDIS spin lock
50 * ARGUMENTS:
51 * SpinLock = Pointer to an NDIS spin lock structure
52 */
53 {
54 UNIMPLEMENTED
55 }
56
57
58 VOID
59 EXPORT
60 NdisDprAcquireSpinLock(
61 IN PNDIS_SPIN_LOCK SpinLock)
62 /*
63 * FUNCTION: Acquires a spin lock from IRQL DISPATCH_LEVEL
64 * ARGUMENTS:
65 * SpinLock = Pointer to the initialized NDIS spin lock to be acquired
66 */
67 {
68 UNIMPLEMENTED
69 }
70
71
72 VOID
73 EXPORT
74 NdisDprReleaseSpinLock(
75 IN PNDIS_SPIN_LOCK SpinLock)
76 /*
77 * FUNCTION: Releases an acquired spin lock from IRQL DISPATCH_LEVEL
78 * ARGUMENTS:
79 * SpinLock = Pointer to the acquired NDIS spin lock to be released
80 */
81 {
82 UNIMPLEMENTED
83 }
84
85
86 VOID
87 EXPORT
88 NdisFreeSpinLock(
89 IN PNDIS_SPIN_LOCK SpinLock)
90 /*
91 * FUNCTION: Releases a spin lock initialized with NdisAllocateSpinLock
92 * ARGUMENTS:
93 * SpinLock = Pointer to an initialized NDIS spin lock
94 */
95 {
96 UNIMPLEMENTED
97 }
98
99
100 VOID
101 EXPORT
102 NdisGetCurrentProcessorCpuUsage(
103 PULONG pCpuUsage)
104 /*
105 * FUNCTION: Returns how busy the current processor is as a percentage
106 * ARGUMENTS:
107 * pCpuUsage = Pointer to a buffer to place CPU usage
108 */
109 {
110 UNIMPLEMENTED
111 }
112
113
114 VOID
115 EXPORT
116 NdisInitializeEvent(
117 IN PNDIS_EVENT Event)
118 /*
119 * FUNCTION: Initializes an event to be used for synchronization
120 * ARGUMENTS:
121 * Event = Pointer to an NDIS event structure to be initialized
122 */
123 {
124 UNIMPLEMENTED
125 }
126
127
128 VOID
129 EXPORT
130 NdisReleaseSpinLock(
131 IN PNDIS_SPIN_LOCK SpinLock)
132 /*
133 * FUNCTION: Releases a spin lock previously acquired with NdisAcquireSpinLock
134 * ARGUMENTS:
135 * SpinLock = Pointer to the acquired NDIS spin lock to be released
136 */
137 {
138 UNIMPLEMENTED
139 }
140
141
142 VOID
143 EXPORT
144 NdisResetEvent(
145 IN PNDIS_EVENT Event)
146 /*
147 * FUNCTION: Clears the signaled state of an event
148 * ARGUMENTS:
149 * Event = Pointer to the initialized event object to be reset
150 */
151 {
152 UNIMPLEMENTED
153 }
154
155
156 VOID
157 EXPORT
158 NdisSetEvent(
159 IN PNDIS_EVENT Event)
160 /*
161 * FUNCTION: Sets an event to a signaled state if not already signaled
162 * ARGUMENTS:
163 * Event = Pointer to the initialized event object to be set
164 */
165 {
166 UNIMPLEMENTED
167 }
168
169
170 BOOLEAN
171 EXPORT
172 NdisWaitEvent(
173 IN PNDIS_EVENT Event,
174 IN UINT MsToWait)
175 /*
176 * FUNCTION: Waits for an event to become signaled
177 * ARGUMENTS:
178 * Event = Pointer to the initialized event object to wait for
179 * MsToWait = Maximum milliseconds to wait for the event to become signaled
180 * RETURNS:
181 * TRUE if the event is in the signaled state
182 */
183 {
184 UNIMPLEMENTED
185
186 return FALSE;
187 }
188
189 /* EOF */