ReactOS  0.4.14-dev-115-g4576127
stubs.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Storport Driver
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Storport driver stub functions
5  * COPYRIGHT: Copyright 2017 Eric Kohl (eric.kohl@reactos.org)
6  */
7 
8 /* INCLUDES *******************************************************************/
9 
10 #include "precomp.h"
11 
12 #define NDEBUG
13 #include <debug.h>
14 
15 
16 /* FUNCTIONS ******************************************************************/
17 
19 VOID
20 NTAPI
22  _In_ PVOID HwDeviceExtension,
26 {
28 }
29 
30 
32 VOID
33 NTAPI
35  _In_ PVOID HwDeviceExtension,
39 {
41 }
42 
43 
45 VOID
46 NTAPI
48  _In_ PVOID HwDeviceExtension,
52 {
54 }
55 
56 
58 UCHAR
59 NTAPI
61  _In_ PVOID HwDeviceExtension,
63 {
64  return READ_PORT_UCHAR(Port);
65 }
66 
67 
69 ULONG
70 NTAPI
72  _In_ PVOID HwDeviceExtension,
74 {
75  return READ_PORT_ULONG(Port);
76 }
77 
78 
80 USHORT
81 NTAPI
83  _In_ PVOID HwDeviceExtension,
85 {
86  return READ_PORT_USHORT(Port);
87 }
88 
89 
91 VOID
92 NTAPI
94  _In_ PVOID HwDeviceExtension,
95  _In_ PUCHAR Register,
98 {
100 }
101 
102 
104 VOID
105 NTAPI
107  _In_ PVOID HwDeviceExtension,
108  _In_ PULONG Register,
110  _In_ ULONG Count)
111 {
113 }
114 
115 
117 VOID
118 NTAPI
120  _In_ PVOID HwDeviceExtension,
121  _In_ PUSHORT Register,
123  _In_ ULONG Count)
124 {
126 }
127 
128 
130 UCHAR
131 NTAPI
133  _In_ PVOID HwDeviceExtension,
134  _In_ PUCHAR Register)
135 {
136  return READ_REGISTER_UCHAR(Register);
137 }
138 
139 
141 ULONG
142 NTAPI
144  _In_ PVOID HwDeviceExtension,
145  _In_ PULONG Register)
146 {
147  return READ_REGISTER_ULONG(Register);
148 }
149 
150 
152 USHORT
153 NTAPI
155  _In_ PVOID HwDeviceExtension,
156  _In_ PUSHORT Register)
157 {
158  return READ_REGISTER_USHORT(Register);
159 }
160 
161 
163 VOID
164 NTAPI
166  _In_ PVOID HwDeviceExtension,
167  _In_ PUCHAR Port,
169  _In_ ULONG Count)
170 {
172 }
173 
174 
176 VOID
177 NTAPI
179  _In_ PVOID HwDeviceExtension,
180  _In_ PULONG Port,
182  _In_ ULONG Count)
183 {
185 }
186 
187 
189 VOID
190 NTAPI
192  _In_ PVOID HwDeviceExtension,
193  _In_ PUSHORT Port,
195  _In_ ULONG Count)
196 {
198 }
199 
200 
202 VOID
203 NTAPI
205  _In_ PVOID HwDeviceExtension,
206  _In_ PUCHAR Port,
207  _In_ UCHAR Value)
208 {
210 }
211 
212 
214 VOID
215 NTAPI
217  _In_ PVOID HwDeviceExtension,
218  _In_ PULONG Port,
219  _In_ ULONG Value)
220 {
222 }
223 
224 
226 VOID
227 NTAPI
229  _In_ PVOID HwDeviceExtension,
230  _In_ PUSHORT Port,
231  _In_ USHORT Value)
232 {
234 }
235 
236 
238 VOID
239 NTAPI
241  _In_ PVOID HwDeviceExtension,
242  _In_ PUCHAR Register,
244  _In_ ULONG Count)
245 {
247 }
248 
249 
251 VOID
252 NTAPI
254  _In_ PVOID HwDeviceExtension,
255  _In_ PULONG Register,
257  _In_ ULONG Count)
258 {
260 }
261 
262 
264 VOID
265 NTAPI
267  _In_ PVOID HwDeviceExtension,
268  _In_ PUSHORT Register,
270  _In_ ULONG Count)
271 {
273 }
274 
275 
277 VOID
278 NTAPI
280  _In_ PVOID HwDeviceExtension,
281  _In_ PUCHAR Register,
282  _In_ UCHAR Value)
283 {
284  WRITE_REGISTER_UCHAR(Register, Value);
285 }
286 
287 
289 VOID
290 NTAPI
292  _In_ PVOID HwDeviceExtension,
293  _In_ PULONG Register,
294  _In_ ULONG Value)
295 {
296  WRITE_REGISTER_ULONG(Register, Value);
297 }
298 
299 
301 VOID
302 NTAPI
304  _In_ PVOID HwDeviceExtension,
305  _In_ PUSHORT Register,
306  _In_ USHORT Value)
307 {
308  WRITE_REGISTER_USHORT(Register, Value);
309 }
310 
311 /* EOF */
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
CPPORT Port[4]
Definition: headless.c:34
NTKERNELAPI VOID NTAPI WRITE_REGISTER_ULONG(IN PULONG Register, IN ULONG Value)
STORPORT_API VOID NTAPI StorPortReadPortBufferUshort(_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port, _In_ PUSHORT Buffer, _In_ ULONG Count)
Definition: stubs.c:47
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
Definition: portio.c:115
VOID NTAPI WRITE_PORT_BUFFER_UCHAR(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:77
STORPORT_API VOID NTAPI StorPortWritePortUshort(_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port, _In_ USHORT Value)
Definition: stubs.c:228
unsigned char * PUCHAR
Definition: retypes.h:3
STORPORT_API VOID NTAPI StorPortReadRegisterBufferUlong(_In_ PVOID HwDeviceExtension, _In_ PULONG Register, _In_ PULONG Buffer, _In_ ULONG Count)
Definition: stubs.c:106
UCHAR NTAPI READ_PORT_UCHAR(PUCHAR Address)
Definition: mach.c:528
STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUchar(_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register, _In_ PUCHAR Buffer, _In_ ULONG Count)
Definition: stubs.c:240
STORPORT_API VOID NTAPI StorPortWritePortBufferUlong(_In_ PVOID HwDeviceExtension, _In_ PULONG Port, _In_ PULONG Buffer, _In_ ULONG Count)
Definition: stubs.c:178
ULONG NTAPI READ_PORT_ULONG(IN PULONG Port)
Definition: portio.c:70
VOID NTAPI READ_PORT_BUFFER_UCHAR(IN PUCHAR Port, OUT PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:26
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
NTKERNELAPI VOID NTAPI WRITE_REGISTER_USHORT(IN PUSHORT Register, IN USHORT Value)
STORPORT_API VOID NTAPI StorPortWritePortBufferUshort(_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port, _In_ PUSHORT Buffer, _In_ ULONG Count)
Definition: stubs.c:191
STORPORT_API ULONG NTAPI StorPortReadPortUlong(_In_ PVOID HwDeviceExtension, _In_ PULONG Port)
Definition: stubs.c:71
NTKERNELAPI ULONG NTAPI READ_REGISTER_ULONG(IN PULONG Register)
STORPORT_API USHORT NTAPI StorPortReadRegisterUshort(_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register)
Definition: stubs.c:154
STORPORT_API UCHAR NTAPI StorPortReadPortUchar(_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port)
Definition: stubs.c:60
STORPORT_API VOID NTAPI StorPortReadRegisterBufferUshort(_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register, _In_ PUSHORT Buffer, _In_ ULONG Count)
Definition: stubs.c:119
STORPORT_API VOID NTAPI StorPortWritePortUlong(_In_ PVOID HwDeviceExtension, _In_ PULONG Port, _In_ ULONG Value)
Definition: stubs.c:216
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
VOID NTAPI WRITE_PORT_ULONG(IN PULONG Port, IN ULONG Value)
Definition: portio.c:123
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
STORPORT_API VOID NTAPI StorPortReadRegisterBufferUchar(_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register, _In_ PUCHAR Buffer, _In_ ULONG Count)
Definition: stubs.c:93
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_ULONG(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
STORPORT_API UCHAR NTAPI StorPortReadRegisterUchar(_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register)
Definition: stubs.c:132
Definition: bufpool.h:45
#define STORPORT_API
Definition: storport.h:33
STORPORT_API VOID NTAPI StorPortReadPortBufferUchar(_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port, _In_ PUCHAR Buffer, _In_ ULONG Count)
Definition: stubs.c:21
STORPORT_API VOID NTAPI StorPortReadPortBufferUlong(_In_ PVOID HwDeviceExtension, _In_ PULONG Port, _In_ PULONG Buffer, _In_ ULONG Count)
Definition: stubs.c:34
STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUlong(_In_ PVOID HwDeviceExtension, _In_ PULONG Register, _In_ PULONG Buffer, _In_ ULONG Count)
Definition: stubs.c:253
VOID NTAPI READ_PORT_BUFFER_USHORT(IN PUSHORT Port, OUT PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:36
unsigned char UCHAR
Definition: xmlstorage.h:181
STORPORT_API VOID NTAPI StorPortWritePortBufferUchar(_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port, _In_ PUCHAR Buffer, _In_ ULONG Count)
Definition: stubs.c:165
STORPORT_API ULONG NTAPI StorPortReadRegisterUlong(_In_ PVOID HwDeviceExtension, _In_ PULONG Register)
Definition: stubs.c:143
STORPORT_API VOID NTAPI StorPortWriteRegisterUshort(_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register, _In_ USHORT Value)
Definition: stubs.c:303
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)
#define _In_
Definition: no_sal2.h:204
STORPORT_API VOID NTAPI StorPortWritePortUchar(_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port, _In_ UCHAR Value)
Definition: stubs.c:204
STORPORT_API VOID NTAPI StorPortWriteRegisterUlong(_In_ PVOID HwDeviceExtension, _In_ PULONG Register, _In_ ULONG Value)
Definition: stubs.c:291
unsigned short USHORT
Definition: pedump.c:61
unsigned int * PULONG
Definition: retypes.h:1
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_USHORT(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUshort(_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register, _In_ PUSHORT Buffer, _In_ ULONG Count)
Definition: stubs.c:266
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
VOID NTAPI READ_PORT_BUFFER_ULONG(IN PULONG Port, OUT PULONG Buffer, IN ULONG Count)
Definition: portio.c:46
unsigned int ULONG
Definition: retypes.h:1
NTKERNELAPI USHORT NTAPI READ_REGISTER_USHORT(IN PUSHORT Register)
void WRITE_PORT_UCHAR(PUCHAR Address, UCHAR Value)
Definition: mach.c:532
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)
Definition: portio.c:63
VOID NTAPI WRITE_PORT_BUFFER_ULONG(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
Definition: portio.c:97
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
STORPORT_API VOID NTAPI StorPortWriteRegisterUchar(_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register, _In_ UCHAR Value)
Definition: stubs.c:279
unsigned short * PUSHORT
Definition: retypes.h:2
VOID NTAPI WRITE_PORT_BUFFER_USHORT(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:87
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_ULONG(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
STORPORT_API USHORT NTAPI StorPortReadPortUshort(_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port)
Definition: stubs.c:82
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_USHORT(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)