ReactOS  0.4.15-dev-3294-ge98684e
stubs.c
Go to the documentation of this file.
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 #include "videoprt.h"
23 
24 #define NDEBUG
25 #include <debug.h>
26 
28 NTAPI
30  PVOID HwDeviceExtension)
31 {
33  return 0;
34 }
35 
36 ULONG
37 NTAPI
40 {
42  return 0;
43 }
44 
45 
46 ULONG
47 NTAPI
49  IN PVOID HwDeviceExtension,
50  IN PDMA pDma)
51 {
53  return 0;
54 }
55 
56 PVOID
57 NTAPI
59  IN PVOID HwDeviceExtension,
60  IN PDMA pDma)
61 {
63  return 0;
64 }
65 
66 VOID
67 NTAPI
69  IN PVOID HwDeviceExtension,
70  IN OUT PDMA pDma,
71  IN ULONG BytesUsed)
72 {
74 }
75 
76 BOOLEAN
77 NTAPI
79  IN PVOID hwDeviceExtension,
80  IN PDMA pDma)
81 {
83  return 0;
84 }
85 
86 _Function_class_(KDEFERRED_ROUTINE)
87 VOID
88 NTAPI
89 WdDdiWatchdogDpcCallback(
90  _In_ PKDPC Dpc,
94 {
96 }
97 
98 LONG
101  IN PLONG Addend)
102 {
104 }
105 
106 LONG
107 FASTCALL
109  IN PLONG Addend)
110 {
112 }
113 
114 LONG
115 FASTCALL
117  IN OUT PLONG Target,
118  IN LONG Value)
119 {
121 }
122 
123 #ifdef _M_AMD64
124 UCHAR
125 NTAPI
127  PUCHAR Port)
128 {
129  return READ_PORT_UCHAR(Port);
130 }
131 
132 USHORT
133 NTAPI
135  PUSHORT Port)
136 {
137  return READ_PORT_USHORT(Port);
138 }
139 
140 ULONG
141 NTAPI
143  PULONG Port)
144 {
145  return READ_PORT_ULONG(Port);
146 }
147 
148 VOID
149 NTAPI
151  PUCHAR Port,
152  PUCHAR Buffer,
153  ULONG Count)
154 {
156 }
157 
158 VOID
159 NTAPI
161  PUSHORT Port,
162  PUSHORT Buffer,
163  ULONG Count)
164 {
166 }
167 
168 VOID
169 NTAPI
171  PULONG Port,
172  PULONG Buffer,
173  ULONG Count)
174 {
176 }
177 
178 UCHAR
179 NTAPI
181  PUCHAR Register)
182 {
183  return READ_REGISTER_UCHAR(Register);
184 }
185 
186 USHORT
187 NTAPI
189  PUSHORT Register)
190 {
191  return READ_REGISTER_USHORT(Register);
192 }
193 
194 ULONG
195 NTAPI
197  PULONG Register)
198 {
199  return READ_REGISTER_ULONG(Register);
200 }
201 
202 VOID
203 NTAPI
205  PUCHAR Register,
206  PUCHAR Buffer,
207  ULONG Count)
208 {
210 }
211 
212 VOID
213 NTAPI
215  PUSHORT Register,
216  PUSHORT Buffer,
217  ULONG Count)
218 {
220 }
221 
222 VOID
223 NTAPI
225  PULONG Register,
226  PULONG Buffer,
227  ULONG Count)
228 {
230 }
231 
232 VOID
233 NTAPI
235  PUCHAR Port,
236  UCHAR Value)
237 {
239 }
240 
241 VOID
242 NTAPI
244  PUSHORT Port,
245  USHORT Value)
246 {
248 }
249 
250 VOID
251 NTAPI
253  PULONG Port,
254  ULONG Value)
255 {
257 }
258 
259 VOID
260 NTAPI
262  PUCHAR Port,
263  PUCHAR Buffer,
264  ULONG Count)
265 {
267 }
268 
269 VOID
270 NTAPI
272  PUSHORT Port,
273  PUSHORT Buffer,
274  ULONG Count)
275 {
277 }
278 
279 VOID
280 NTAPI
282  PULONG Port,
283  PULONG Buffer,
284  ULONG Count)
285 {
287 }
288 
289 VOID
290 NTAPI
292  PUCHAR Register,
293  UCHAR Value)
294 {
295  WRITE_REGISTER_UCHAR(Register, Value);
296 }
297 
298 VOID
299 NTAPI
301  PUSHORT Register,
302  USHORT Value)
303 {
304  WRITE_REGISTER_USHORT(Register, Value);
305 }
306 
307 VOID
308 NTAPI
310  PULONG Register,
311  ULONG Value)
312 {
313  WRITE_REGISTER_ULONG(Register, Value);
314 }
315 
316 VOID
317 NTAPI
319  PUCHAR Register,
320  PUCHAR Buffer,
321  ULONG Count)
322 {
324 }
325 
326 VOID
327 NTAPI
329  PUSHORT Register,
330  PUSHORT Buffer,
331  ULONG Count)
332 {
334 }
335 
336 VOID
337 NTAPI
339  PULONG Register,
340  PULONG Buffer,
341  ULONG Count)
342 {
344 }
345 
346 VOID
347 NTAPI
349  OUT PLARGE_INTEGER CurrentTime)
350 {
351  KeQuerySystemTime(CurrentTime);
352 }
353 
354 #endif /* _M_AMD64 */
VPAPI ULONG NTAPI VideoPortReadPortUlong(IN PULONG Port)
#define KeQuerySystemTime(t)
Definition: env_spec_w32.h:570
CPPORT Port[4]
Definition: headless.c:35
#define IN
Definition: typedefs.h:39
NTKERNELAPI VOID NTAPI WRITE_REGISTER_ULONG(IN PULONG Register, IN ULONG Value)
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
Definition: wdfdpc.h:107
#define _In_opt_
Definition: ms_sal.h:309
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
Definition: portio.c:115
_Function_class_(KDEFERRED_ROUTINE)
Definition: stubs.c:86
VPAPI VOID NTAPI VideoPortReadPortBufferUlong(IN PULONG Port, OUT PULONG Buffer, IN ULONG Count)
VPAPI VOID NTAPI VideoPortWritePortUlong(IN PULONG Port, IN ULONG Value)
VOID NTAPI WRITE_PORT_BUFFER_UCHAR(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:77
#define READ_PORT_UCHAR(p)
Definition: pc98vid.h:22
VPAPI VOID NTAPI VideoPortWritePortBufferUshort(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
unsigned char * PUCHAR
Definition: retypes.h:3
VPAPI VOID NTAPI VideoPortWriteRegisterBufferUchar(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
VPAPI VOID NTAPI VideoPortReadRegisterBufferUlong(IN PULONG Register, OUT PULONG Buffer, IN ULONG Count)
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
NTKERNELAPI VOID NTAPI WRITE_REGISTER_USHORT(IN PUSHORT Register, IN USHORT Value)
ULONG NTAPI VideoPortGetAssociatedDeviceID(IN PVOID DeviceObject)
Definition: stubs.c:38
NTKERNELAPI ULONG NTAPI READ_REGISTER_ULONG(IN PULONG Register)
#define UNIMPLEMENTED
Definition: stubs.c:20
#define FASTCALL
Definition: nt_native.h:50
VPAPI USHORT NTAPI VideoPortReadPortUshort(IN PUSHORT Port)
IN OUT PLONG Addend
Definition: CrNtStubs.h:22
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
VPAPI UCHAR NTAPI VideoPortReadPortUchar(IN PUCHAR Port)
long __cdecl _InterlockedIncrement(_Interlocked_operand_ long volatile *_Addend)
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
long LONG
Definition: pedump.c:60
VOID NTAPI VideoPortSetBytesUsed(IN PVOID HwDeviceExtension, IN OUT PDMA pDma, IN ULONG BytesUsed)
Definition: stubs.c:68
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_ULONG(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
unsigned char BOOLEAN
long __cdecl _InterlockedDecrement(_Interlocked_operand_ long volatile *_Addend)
#define _In_
Definition: ms_sal.h:308
Definition: bufpool.h:45
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:406
VPAPI VOID NTAPI VideoPortWritePortUshort(IN PUSHORT Port, IN USHORT Value)
_In_opt_ PVOID _In_opt_ PVOID SystemArgument1
Definition: ketypes.h:675
int Count
Definition: noreturn.cpp:7
PVOID NTAPI VideoPortGetMdl(IN PVOID HwDeviceExtension, IN PDMA pDma)
Definition: stubs.c:58
VPAPI ULONG NTAPI VideoPortReadRegisterUlong(IN PULONG Register)
VPAPI VOID NTAPI VideoPortWritePortBufferUlong(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
VP_STATUS NTAPI VideoPortFlushRegistry(PVOID HwDeviceExtension)
Definition: stubs.c:29
ULONG NTAPI VideoPortGetBytesUsed(IN PVOID HwDeviceExtension, IN PDMA pDma)
Definition: stubs.c:48
LONG FASTCALL VideoPortInterlockedDecrement(IN PLONG Addend)
Definition: stubs.c:100
VPAPI VOID NTAPI VideoPortReadRegisterBufferUshort(IN PUSHORT Register, OUT PUSHORT Buffer, IN ULONG Count)
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
VPAPI VOID NTAPI VideoPortWriteRegisterUshort(IN PUSHORT Register, IN USHORT Value)
VPAPI UCHAR NTAPI VideoPortReadRegisterUchar(IN PUCHAR Register)
Definition: ketypes.h:687
#define WRITE_PORT_UCHAR(p, d)
Definition: pc98vid.h:21
BOOLEAN NTAPI VideoPortUnlockPages(IN PVOID hwDeviceExtension, IN PDMA pDma)
Definition: stubs.c:78
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)
#define InterlockedExchange
Definition: armddk.h:54
_In_opt_ PVOID _In_opt_ PVOID _In_opt_ PVOID SystemArgument2
Definition: ketypes.h:675
VPAPI USHORT NTAPI VideoPortReadRegisterUshort(IN PUSHORT Register)
VPAPI VOID NTAPI VideoPortQuerySystemTime(OUT PLARGE_INTEGER CurrentTime)
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)
VPAPI VOID NTAPI VideoPortWriteRegisterBufferUlong(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
_In_ WDFIOTARGET Target
Definition: wdfrequest.h:306
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
#define OUT
Definition: typedefs.h:40
VPAPI VOID NTAPI VideoPortWritePortBufferUchar(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
struct __DMA_PARAMETERS * PDMA
Definition: video.h:158
VOID NTAPI READ_PORT_BUFFER_ULONG(IN PULONG Port, OUT PULONG Buffer, IN ULONG Count)
Definition: portio.c:46
VPAPI VOID NTAPI VideoPortReadPortBufferUshort(IN PUSHORT Port, OUT PUSHORT Buffer, IN ULONG Count)
unsigned int ULONG
Definition: retypes.h:1
LONG FASTCALL VideoPortInterlockedExchange(IN OUT PLONG Target, IN LONG Value)
Definition: stubs.c:116
NTKERNELAPI USHORT NTAPI READ_REGISTER_USHORT(IN PUSHORT Register)
LONG VP_STATUS
Definition: video.h:153
VPAPI VOID NTAPI VideoPortWriteRegisterBufferUshort(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
VPAPI VOID NTAPI VideoPortReadRegisterBufferUchar(IN PUCHAR Register, OUT PUCHAR Buffer, IN ULONG Count)
VPAPI VOID NTAPI VideoPortWriteRegisterUchar(IN PUCHAR Register, IN UCHAR Value)
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
VPAPI VOID NTAPI VideoPortWritePortUchar(IN PUCHAR Port, IN UCHAR Value)
signed int * PLONG
Definition: retypes.h:5
VPAPI VOID NTAPI VideoPortReadPortBufferUchar(IN PUCHAR Port, OUT PUCHAR Buffer, IN ULONG Count)
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
unsigned short * PUSHORT
Definition: retypes.h:2
VPAPI VOID NTAPI VideoPortWriteRegisterUlong(IN PULONG Register, IN ULONG Value)
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)
LONG FASTCALL VideoPortInterlockedIncrement(IN PLONG Addend)
Definition: stubs.c:108
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_USHORT(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
_In_opt_ PVOID DeferredContext
Definition: ketypes.h:675