xref: /reactos/drivers/storage/port/storport/stubs.c (revision ba3f0743)
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 
18 STORPORT_API
19 VOID
20 NTAPI
21 StorPortReadPortBufferUchar(
22     _In_ PVOID HwDeviceExtension,
23     _In_ PUCHAR Port,
24     _In_ PUCHAR Buffer,
25     _In_ ULONG Count)
26 {
27     READ_PORT_BUFFER_UCHAR(Port, Buffer, Count);
28 }
29 
30 
31 STORPORT_API
32 VOID
33 NTAPI
34 StorPortReadPortBufferUlong(
35     _In_ PVOID HwDeviceExtension,
36     _In_ PULONG Port,
37     _In_ PULONG Buffer,
38     _In_ ULONG Count)
39 {
40     READ_PORT_BUFFER_ULONG(Port, Buffer, Count);
41 }
42 
43 
44 STORPORT_API
45 VOID
46 NTAPI
47 StorPortReadPortBufferUshort(
48     _In_ PVOID HwDeviceExtension,
49     _In_ PUSHORT Port,
50     _In_ PUSHORT Buffer,
51     _In_ ULONG Count)
52 {
53     READ_PORT_BUFFER_USHORT(Port, Buffer, Count);
54 }
55 
56 
57 STORPORT_API
58 UCHAR
59 NTAPI
60 StorPortReadPortUchar(
61     _In_ PVOID HwDeviceExtension,
62     _In_ PUCHAR Port)
63 {
64     return READ_PORT_UCHAR(Port);
65 }
66 
67 
68 STORPORT_API
69 ULONG
70 NTAPI
71 StorPortReadPortUlong(
72     _In_ PVOID HwDeviceExtension,
73     _In_ PULONG Port)
74 {
75     return READ_PORT_ULONG(Port);
76 }
77 
78 
79 STORPORT_API
80 USHORT
81 NTAPI
82 StorPortReadPortUshort(
83     _In_ PVOID HwDeviceExtension,
84     _In_ PUSHORT Port)
85 {
86     return READ_PORT_USHORT(Port);
87 }
88 
89 
90 STORPORT_API
91 VOID
92 NTAPI
93 StorPortReadRegisterBufferUchar(
94     _In_ PVOID HwDeviceExtension,
95     _In_ PUCHAR Register,
96     _In_ PUCHAR Buffer,
97     _In_ ULONG Count)
98 {
99     READ_REGISTER_BUFFER_UCHAR(Register, Buffer, Count);
100 }
101 
102 
103 STORPORT_API
104 VOID
105 NTAPI
106 StorPortReadRegisterBufferUlong(
107     _In_ PVOID HwDeviceExtension,
108     _In_ PULONG Register,
109     _In_ PULONG Buffer,
110     _In_ ULONG Count)
111 {
112     READ_REGISTER_BUFFER_ULONG(Register, Buffer, Count);
113 }
114 
115 
116 STORPORT_API
117 VOID
118 NTAPI
119 StorPortReadRegisterBufferUshort(
120     _In_ PVOID HwDeviceExtension,
121     _In_ PUSHORT Register,
122     _In_ PUSHORT Buffer,
123     _In_ ULONG Count)
124 {
125     READ_REGISTER_BUFFER_USHORT(Register, Buffer, Count);
126 }
127 
128 
129 STORPORT_API
130 UCHAR
131 NTAPI
132 StorPortReadRegisterUchar(
133     _In_ PVOID HwDeviceExtension,
134     _In_ PUCHAR Register)
135 {
136     return READ_REGISTER_UCHAR(Register);
137 }
138 
139 
140 STORPORT_API
141 ULONG
142 NTAPI
143 StorPortReadRegisterUlong(
144     _In_ PVOID HwDeviceExtension,
145     _In_ PULONG Register)
146 {
147     return READ_REGISTER_ULONG(Register);
148 }
149 
150 
151 STORPORT_API
152 USHORT
153 NTAPI
154 StorPortReadRegisterUshort(
155     _In_ PVOID HwDeviceExtension,
156     _In_ PUSHORT Register)
157 {
158     return READ_REGISTER_USHORT(Register);
159 }
160 
161 
162 STORPORT_API
163 VOID
164 NTAPI
165 StorPortWritePortBufferUchar(
166     _In_ PVOID HwDeviceExtension,
167     _In_ PUCHAR Port,
168     _In_ PUCHAR Buffer,
169     _In_ ULONG Count)
170 {
171     WRITE_PORT_BUFFER_UCHAR(Port, Buffer, Count);
172 }
173 
174 
175 STORPORT_API
176 VOID
177 NTAPI
178 StorPortWritePortBufferUlong(
179     _In_ PVOID HwDeviceExtension,
180     _In_ PULONG Port,
181     _In_ PULONG Buffer,
182     _In_ ULONG Count)
183 {
184     WRITE_PORT_BUFFER_ULONG(Port, Buffer, Count);
185 }
186 
187 
188 STORPORT_API
189 VOID
190 NTAPI
191 StorPortWritePortBufferUshort(
192     _In_ PVOID HwDeviceExtension,
193     _In_ PUSHORT Port,
194     _In_ PUSHORT Buffer,
195     _In_ ULONG Count)
196 {
197     WRITE_PORT_BUFFER_USHORT(Port, Buffer, Count);
198 }
199 
200 
201 STORPORT_API
202 VOID
203 NTAPI
204 StorPortWritePortUchar(
205     _In_ PVOID HwDeviceExtension,
206     _In_ PUCHAR Port,
207     _In_ UCHAR Value)
208 {
209     WRITE_PORT_UCHAR(Port, Value);
210 }
211 
212 
213 STORPORT_API
214 VOID
215 NTAPI
216 StorPortWritePortUlong(
217     _In_ PVOID HwDeviceExtension,
218     _In_ PULONG Port,
219     _In_ ULONG Value)
220 {
221     WRITE_PORT_ULONG(Port, Value);
222 }
223 
224 
225 STORPORT_API
226 VOID
227 NTAPI
228 StorPortWritePortUshort(
229     _In_ PVOID HwDeviceExtension,
230     _In_ PUSHORT Port,
231     _In_ USHORT Value)
232 {
233     WRITE_PORT_USHORT(Port, Value);
234 }
235 
236 
237 STORPORT_API
238 VOID
239 NTAPI
240 StorPortWriteRegisterBufferUchar(
241     _In_ PVOID HwDeviceExtension,
242     _In_ PUCHAR Register,
243     _In_ PUCHAR Buffer,
244     _In_ ULONG Count)
245 {
246     WRITE_REGISTER_BUFFER_UCHAR(Register, Buffer, Count);
247 }
248 
249 
250 STORPORT_API
251 VOID
252 NTAPI
253 StorPortWriteRegisterBufferUlong(
254     _In_ PVOID HwDeviceExtension,
255     _In_ PULONG Register,
256     _In_ PULONG Buffer,
257     _In_ ULONG Count)
258 {
259     WRITE_REGISTER_BUFFER_ULONG(Register, Buffer, Count);
260 }
261 
262 
263 STORPORT_API
264 VOID
265 NTAPI
266 StorPortWriteRegisterBufferUshort(
267     _In_ PVOID HwDeviceExtension,
268     _In_ PUSHORT Register,
269     _In_ PUSHORT Buffer,
270     _In_ ULONG Count)
271 {
272     WRITE_REGISTER_BUFFER_USHORT(Register, Buffer, Count);
273 }
274 
275 
276 STORPORT_API
277 VOID
278 NTAPI
279 StorPortWriteRegisterUchar(
280     _In_ PVOID HwDeviceExtension,
281     _In_ PUCHAR Register,
282     _In_ UCHAR Value)
283 {
284     WRITE_REGISTER_UCHAR(Register, Value);
285 }
286 
287 
288 STORPORT_API
289 VOID
290 NTAPI
291 StorPortWriteRegisterUlong(
292     _In_ PVOID HwDeviceExtension,
293     _In_ PULONG Register,
294     _In_ ULONG Value)
295 {
296     WRITE_REGISTER_ULONG(Register, Value);
297 }
298 
299 
300 STORPORT_API
301 VOID
302 NTAPI
303 StorPortWriteRegisterUshort(
304     _In_ PVOID HwDeviceExtension,
305     _In_ PUSHORT Register,
306     _In_ USHORT Value)
307 {
308     WRITE_REGISTER_USHORT(Register, Value);
309 }
310 
311 /* EOF */
312