debd903f2e12ed89e57b1c5c911739d156f55092
[reactos.git] / reactos / win32ss / drivers / videoprt / stubs.c
1 /*
2 * VideoPort driver
3 *
4 * Copyright (C) 2002-2004, 2007 ReactOS Team
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 */
21
22
23 #include "videoprt.h"
24
25 VP_STATUS
26 NTAPI
27 VideoPortFlushRegistry(
28 PVOID HwDeviceExtension)
29 {
30 UNIMPLEMENTED;
31 return 0;
32 }
33
34 ULONG
35 NTAPI
36 VideoPortGetAssociatedDeviceID(
37 IN PVOID DeviceObject)
38 {
39 UNIMPLEMENTED;
40 return 0;
41 }
42
43
44 ULONG
45 NTAPI
46 VideoPortGetBytesUsed(
47 IN PVOID HwDeviceExtension,
48 IN PDMA pDma)
49 {
50 UNIMPLEMENTED;
51 return 0;
52 }
53
54 PVOID
55 NTAPI
56 VideoPortGetMdl(
57 IN PVOID HwDeviceExtension,
58 IN PDMA pDma)
59 {
60 UNIMPLEMENTED;
61 return 0;
62 }
63
64 LONG
65 NTAPI
66 VideoPortReadStateEvent(
67 IN PVOID HwDeviceExtension,
68 IN PEVENT pEvent)
69 {
70 UNIMPLEMENTED;
71 return 0;
72 }
73
74 VOID
75 NTAPI
76 VideoPortSetBytesUsed(
77 IN PVOID HwDeviceExtension,
78 IN OUT PDMA pDma,
79 IN ULONG BytesUsed)
80 {
81 UNIMPLEMENTED;
82 }
83
84 BOOLEAN
85 NTAPI
86 VideoPortUnlockPages(
87 IN PVOID hwDeviceExtension,
88 IN PDMA pDma)
89 {
90 UNIMPLEMENTED;
91 return 0;
92 }
93
94 _Function_class_(KDEFERRED_ROUTINE)
95 VOID
96 NTAPI
97 WdDdiWatchdogDpcCallback(
98 _In_ PKDPC Dpc,
99 _In_opt_ PVOID DeferredContext,
100 _In_opt_ PVOID SystemArgument1,
101 _In_opt_ PVOID SystemArgument2)
102 {
103 UNIMPLEMENTED;
104 }
105
106 #ifdef _M_AMD64
107 UCHAR
108 NTAPI
109 VideoPortReadPortUchar(
110 PUCHAR Port)
111 {
112 return READ_PORT_UCHAR(Port);
113 }
114
115 USHORT
116 NTAPI
117 VideoPortReadPortUshort(
118 PUSHORT Port)
119 {
120 return READ_PORT_USHORT(Port);
121 }
122
123 ULONG
124 NTAPI
125 VideoPortReadPortUlong(
126 PULONG Port)
127 {
128 return READ_PORT_ULONG(Port);
129 }
130
131 VOID
132 NTAPI
133 VideoPortReadPortBufferUchar(
134 PUCHAR Port,
135 PUCHAR Buffer,
136 ULONG Count)
137 {
138 READ_PORT_BUFFER_UCHAR(Port, Buffer, Count);
139 }
140
141 VOID
142 NTAPI
143 VideoPortReadPortBufferUshort(
144 PUSHORT Port,
145 PUSHORT Buffer,
146 ULONG Count)
147 {
148 READ_PORT_BUFFER_USHORT(Port, Buffer, Count);
149 }
150
151 VOID
152 NTAPI
153 VideoPortReadPortBufferUlong(
154 PULONG Port,
155 PULONG Buffer,
156 ULONG Count)
157 {
158 READ_PORT_BUFFER_ULONG(Port, Buffer, Count);
159 }
160
161 UCHAR
162 NTAPI
163 VideoPortReadRegisterUchar(
164 PUCHAR Register)
165 {
166 return READ_REGISTER_UCHAR(Register);
167 }
168
169 USHORT
170 NTAPI
171 VideoPortReadRegisterUshort(
172 PUSHORT Register)
173 {
174 return READ_REGISTER_USHORT(Register);
175 }
176
177 ULONG
178 NTAPI
179 VideoPortReadRegisterUlong(
180 PULONG Register)
181 {
182 return READ_REGISTER_ULONG(Register);
183 }
184
185 VOID
186 NTAPI
187 VideoPortReadRegisterBufferUchar(
188 PUCHAR Register,
189 PUCHAR Buffer,
190 ULONG Count)
191 {
192 READ_REGISTER_BUFFER_UCHAR(Register, Buffer, Count);
193 }
194
195 VOID
196 NTAPI
197 VideoPortReadRegisterBufferUshort(
198 PUSHORT Register,
199 PUSHORT Buffer,
200 ULONG Count)
201 {
202 READ_REGISTER_BUFFER_USHORT(Register, Buffer, Count);
203 }
204
205 VOID
206 NTAPI
207 VideoPortReadRegisterBufferUlong(
208 PULONG Register,
209 PULONG Buffer,
210 ULONG Count)
211 {
212 READ_REGISTER_BUFFER_ULONG(Register, Buffer, Count);
213 }
214
215 VOID
216 NTAPI
217 VideoPortWritePortUchar(
218 PUCHAR Port,
219 UCHAR Value)
220 {
221 WRITE_PORT_UCHAR(Port, Value);
222 }
223
224 VOID
225 NTAPI
226 VideoPortWritePortUshort(
227 PUSHORT Port,
228 USHORT Value)
229 {
230 WRITE_PORT_USHORT(Port, Value);
231 }
232
233 VOID
234 NTAPI
235 VideoPortWritePortUlong(
236 PULONG Port,
237 ULONG Value)
238 {
239 WRITE_PORT_ULONG(Port, Value);
240 }
241
242 VOID
243 NTAPI
244 VideoPortWritePortBufferUchar(
245 PUCHAR Port,
246 PUCHAR Buffer,
247 ULONG Count)
248 {
249 WRITE_PORT_BUFFER_UCHAR(Port, Buffer, Count);
250 }
251
252 VOID
253 NTAPI
254 VideoPortWritePortBufferUshort(
255 PUSHORT Port,
256 PUSHORT Buffer,
257 ULONG Count)
258 {
259 WRITE_PORT_BUFFER_USHORT(Port, Buffer, Count);
260 }
261
262 VOID
263 NTAPI
264 VideoPortWritePortBufferUlong(
265 PULONG Port,
266 PULONG Buffer,
267 ULONG Count)
268 {
269 WRITE_PORT_BUFFER_ULONG(Port, Buffer, Count);
270 }
271
272 VOID
273 NTAPI
274 VideoPortWriteRegisterUchar(
275 PUCHAR Register,
276 UCHAR Value)
277 {
278 WRITE_REGISTER_UCHAR(Register, Value);
279 }
280
281 VOID
282 NTAPI
283 VideoPortWriteRegisterUshort(
284 PUSHORT Register,
285 USHORT Value)
286 {
287 WRITE_REGISTER_USHORT(Register, Value);
288 }
289
290 VOID
291 NTAPI
292 VideoPortWriteRegisterUlong(
293 PULONG Register,
294 ULONG Value)
295 {
296 WRITE_REGISTER_ULONG(Register, Value);
297 }
298
299 VOID
300 NTAPI
301 VideoPortWriteRegisterBufferUchar(
302 PUCHAR Register,
303 PUCHAR Buffer,
304 ULONG Count)
305 {
306 WRITE_REGISTER_BUFFER_UCHAR(Register, Buffer, Count);
307 }
308
309 VOID
310 NTAPI
311 VideoPortWriteRegisterBufferUshort(
312 PUSHORT Register,
313 PUSHORT Buffer,
314 ULONG Count)
315 {
316 WRITE_REGISTER_BUFFER_USHORT(Register, Buffer, Count);
317 }
318
319 VOID
320 NTAPI
321 VideoPortWriteRegisterBufferUlong(
322 PULONG Register,
323 PULONG Buffer,
324 ULONG Count)
325 {
326 WRITE_REGISTER_BUFFER_ULONG(Register, Buffer, Count);
327 }
328
329 LONG
330 FASTCALL
331 VideoPortInterlockedDecrement(
332 IN PLONG Addend)
333 {
334 return _InterlockedDecrement(Addend);
335 }
336
337 LONG
338 FASTCALL
339 VideoPortInterlockedIncrement(
340 IN PLONG Addend)
341 {
342 return _InterlockedIncrement(Addend);
343 }
344
345 LONG
346 FASTCALL
347 VideoPortInterlockedExchange(
348 IN OUT PLONG Target,
349 IN LONG Value)
350 {
351 return InterlockedExchange(Target, Value);
352 }
353
354 VOID
355 NTAPI
356 VideoPortQuerySystemTime(
357 OUT PLARGE_INTEGER CurrentTime)
358 {
359 KeQuerySystemTime(CurrentTime);
360 }
361
362 #endif /* _M_AMD64 */