- Synchronize up to trunk's revision r57864.
[reactos.git] / 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 #ifdef _M_AMD64
95 UCHAR
96 NTAPI
97 VideoPortReadPortUchar(
98 PUCHAR Port)
99 {
100 return READ_PORT_UCHAR(Port);
101 }
102
103 USHORT
104 NTAPI
105 VideoPortReadPortUshort(
106 PUSHORT Port)
107 {
108 return READ_PORT_USHORT(Port);
109 }
110
111 ULONG
112 NTAPI
113 VideoPortReadPortUlong(
114 PULONG Port)
115 {
116 return READ_PORT_ULONG(Port);
117 }
118
119 VOID
120 NTAPI
121 VideoPortReadPortBufferUchar(
122 PUCHAR Port,
123 PUCHAR Buffer,
124 ULONG Count)
125 {
126 READ_PORT_BUFFER_UCHAR(Port, Buffer, Count);
127 }
128
129 VOID
130 NTAPI
131 VideoPortReadPortBufferUshort(
132 PUSHORT Port,
133 PUSHORT Buffer,
134 ULONG Count)
135 {
136 READ_PORT_BUFFER_USHORT(Port, Buffer, Count);
137 }
138
139 VOID
140 NTAPI
141 VideoPortReadPortBufferUlong(
142 PULONG Port,
143 PULONG Buffer,
144 ULONG Count)
145 {
146 READ_PORT_BUFFER_ULONG(Port, Buffer, Count);
147 }
148
149 UCHAR
150 NTAPI
151 VideoPortReadRegisterUchar(
152 PUCHAR Register)
153 {
154 return READ_REGISTER_UCHAR(Register);
155 }
156
157 USHORT
158 NTAPI
159 VideoPortReadRegisterUshort(
160 PUSHORT Register)
161 {
162 return READ_REGISTER_USHORT(Register);
163 }
164
165 ULONG
166 NTAPI
167 VideoPortReadRegisterUlong(
168 PULONG Register)
169 {
170 return READ_REGISTER_ULONG(Register);
171 }
172
173 VOID
174 NTAPI
175 VideoPortReadRegisterBufferUchar(
176 PUCHAR Register,
177 PUCHAR Buffer,
178 ULONG Count)
179 {
180 READ_REGISTER_BUFFER_UCHAR(Register, Buffer, Count);
181 }
182
183 VOID
184 NTAPI
185 VideoPortReadRegisterBufferUshort(
186 PUSHORT Register,
187 PUSHORT Buffer,
188 ULONG Count)
189 {
190 READ_REGISTER_BUFFER_USHORT(Register, Buffer, Count);
191 }
192
193 VOID
194 NTAPI
195 VideoPortReadRegisterBufferUlong(
196 PULONG Register,
197 PULONG Buffer,
198 ULONG Count)
199 {
200 READ_REGISTER_BUFFER_ULONG(Register, Buffer, Count);
201 }
202
203 VOID
204 NTAPI
205 VideoPortWritePortUchar(
206 PUCHAR Port,
207 UCHAR Value)
208 {
209 WRITE_PORT_UCHAR(Port, Value);
210 }
211
212 VOID
213 NTAPI
214 VideoPortWritePortUshort(
215 PUSHORT Port,
216 USHORT Value)
217 {
218 WRITE_PORT_USHORT(Port, Value);
219 }
220
221 VOID
222 NTAPI
223 VideoPortWritePortUlong(
224 PULONG Port,
225 ULONG Value)
226 {
227 WRITE_PORT_ULONG(Port, Value);
228 }
229
230 VOID
231 NTAPI
232 VideoPortWritePortBufferUchar(
233 PUCHAR Port,
234 PUCHAR Buffer,
235 ULONG Count)
236 {
237 WRITE_PORT_BUFFER_UCHAR(Port, Buffer, Count);
238 }
239
240 VOID
241 NTAPI
242 VideoPortWritePortBufferUshort(
243 PUSHORT Port,
244 PUSHORT Buffer,
245 ULONG Count)
246 {
247 WRITE_PORT_BUFFER_USHORT(Port, Buffer, Count);
248 }
249
250 VOID
251 NTAPI
252 VideoPortWritePortBufferUlong(
253 PULONG Port,
254 PULONG Buffer,
255 ULONG Count)
256 {
257 WRITE_PORT_BUFFER_ULONG(Port, Buffer, Count);
258 }
259
260 VOID
261 NTAPI
262 VideoPortWriteRegisterUchar(
263 PUCHAR Register,
264 UCHAR Value)
265 {
266 WRITE_REGISTER_UCHAR(Register, Value);
267 }
268
269 VOID
270 NTAPI
271 VideoPortWriteRegisterUshort(
272 PUSHORT Register,
273 USHORT Value)
274 {
275 WRITE_REGISTER_USHORT(Register, Value);
276 }
277
278 VOID
279 NTAPI
280 VideoPortWriteRegisterUlong(
281 PULONG Register,
282 ULONG Value)
283 {
284 WRITE_REGISTER_ULONG(Register, Value);
285 }
286
287 VOID
288 NTAPI
289 VideoPortWriteRegisterBufferUchar(
290 PUCHAR Register,
291 PUCHAR Buffer,
292 ULONG Count)
293 {
294 WRITE_REGISTER_BUFFER_UCHAR(Register, Buffer, Count);
295 }
296
297 VOID
298 NTAPI
299 VideoPortWriteRegisterBufferUshort(
300 PUSHORT Register,
301 PUSHORT Buffer,
302 ULONG Count)
303 {
304 WRITE_REGISTER_BUFFER_USHORT(Register, Buffer, Count);
305 }
306
307 VOID
308 NTAPI
309 VideoPortWriteRegisterBufferUlong(
310 PULONG Register,
311 PULONG Buffer,
312 ULONG Count)
313 {
314 WRITE_REGISTER_BUFFER_ULONG(Register, Buffer, Count);
315 }
316
317 LONG
318 FASTCALL
319 VideoPortInterlockedDecrement(
320 IN PLONG Addend)
321 {
322 return _InterlockedDecrement(Addend);
323 }
324
325 LONG
326 FASTCALL
327 VideoPortInterlockedIncrement(
328 IN PLONG Addend)
329 {
330 return _InterlockedIncrement(Addend);
331 }
332
333 LONG
334 FASTCALL
335 VideoPortInterlockedExchange(
336 IN OUT PLONG Target,
337 IN LONG Value)
338 {
339 return InterlockedExchange(Target, Value);
340 }
341
342 VOID
343 NTAPI
344 VideoPortQuerySystemTime(
345 OUT PLARGE_INTEGER CurrentTime)
346 {
347 KeQuerySystemTime(CurrentTime);
348 }
349
350 #endif /* _M_AMD64 */