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 27 VP_STATUS 28 NTAPI 29 VideoPortFlushRegistry( 30 PVOID HwDeviceExtension) 31 { 32 UNIMPLEMENTED; 33 return 0; 34 } 35 36 ULONG 37 NTAPI 38 VideoPortGetAssociatedDeviceID( 39 IN PVOID DeviceObject) 40 { 41 UNIMPLEMENTED; 42 return 0; 43 } 44 45 46 ULONG 47 NTAPI 48 VideoPortGetBytesUsed( 49 IN PVOID HwDeviceExtension, 50 IN PDMA pDma) 51 { 52 UNIMPLEMENTED; 53 return 0; 54 } 55 56 PVOID 57 NTAPI 58 VideoPortGetMdl( 59 IN PVOID HwDeviceExtension, 60 IN PDMA pDma) 61 { 62 UNIMPLEMENTED; 63 return 0; 64 } 65 66 LONG 67 NTAPI 68 VideoPortReadStateEvent( 69 IN PVOID HwDeviceExtension, 70 IN PEVENT pEvent) 71 { 72 UNIMPLEMENTED; 73 return 0; 74 } 75 76 VOID 77 NTAPI 78 VideoPortSetBytesUsed( 79 IN PVOID HwDeviceExtension, 80 IN OUT PDMA pDma, 81 IN ULONG BytesUsed) 82 { 83 UNIMPLEMENTED; 84 } 85 86 BOOLEAN 87 NTAPI 88 VideoPortUnlockPages( 89 IN PVOID hwDeviceExtension, 90 IN PDMA pDma) 91 { 92 UNIMPLEMENTED; 93 return 0; 94 } 95 96 _Function_class_(KDEFERRED_ROUTINE) 97 VOID 98 NTAPI 99 WdDdiWatchdogDpcCallback( 100 _In_ PKDPC Dpc, 101 _In_opt_ PVOID DeferredContext, 102 _In_opt_ PVOID SystemArgument1, 103 _In_opt_ PVOID SystemArgument2) 104 { 105 UNIMPLEMENTED; 106 } 107 108 LONG 109 FASTCALL 110 VideoPortInterlockedDecrement( 111 IN PLONG Addend) 112 { 113 return _InterlockedDecrement(Addend); 114 } 115 116 LONG 117 FASTCALL 118 VideoPortInterlockedIncrement( 119 IN PLONG Addend) 120 { 121 return _InterlockedIncrement(Addend); 122 } 123 124 LONG 125 FASTCALL 126 VideoPortInterlockedExchange( 127 IN OUT PLONG Target, 128 IN LONG Value) 129 { 130 return InterlockedExchange(Target, Value); 131 } 132 133 #ifdef _M_AMD64 134 UCHAR 135 NTAPI 136 VideoPortReadPortUchar( 137 PUCHAR Port) 138 { 139 return READ_PORT_UCHAR(Port); 140 } 141 142 USHORT 143 NTAPI 144 VideoPortReadPortUshort( 145 PUSHORT Port) 146 { 147 return READ_PORT_USHORT(Port); 148 } 149 150 ULONG 151 NTAPI 152 VideoPortReadPortUlong( 153 PULONG Port) 154 { 155 return READ_PORT_ULONG(Port); 156 } 157 158 VOID 159 NTAPI 160 VideoPortReadPortBufferUchar( 161 PUCHAR Port, 162 PUCHAR Buffer, 163 ULONG Count) 164 { 165 READ_PORT_BUFFER_UCHAR(Port, Buffer, Count); 166 } 167 168 VOID 169 NTAPI 170 VideoPortReadPortBufferUshort( 171 PUSHORT Port, 172 PUSHORT Buffer, 173 ULONG Count) 174 { 175 READ_PORT_BUFFER_USHORT(Port, Buffer, Count); 176 } 177 178 VOID 179 NTAPI 180 VideoPortReadPortBufferUlong( 181 PULONG Port, 182 PULONG Buffer, 183 ULONG Count) 184 { 185 READ_PORT_BUFFER_ULONG(Port, Buffer, Count); 186 } 187 188 UCHAR 189 NTAPI 190 VideoPortReadRegisterUchar( 191 PUCHAR Register) 192 { 193 return READ_REGISTER_UCHAR(Register); 194 } 195 196 USHORT 197 NTAPI 198 VideoPortReadRegisterUshort( 199 PUSHORT Register) 200 { 201 return READ_REGISTER_USHORT(Register); 202 } 203 204 ULONG 205 NTAPI 206 VideoPortReadRegisterUlong( 207 PULONG Register) 208 { 209 return READ_REGISTER_ULONG(Register); 210 } 211 212 VOID 213 NTAPI 214 VideoPortReadRegisterBufferUchar( 215 PUCHAR Register, 216 PUCHAR Buffer, 217 ULONG Count) 218 { 219 READ_REGISTER_BUFFER_UCHAR(Register, Buffer, Count); 220 } 221 222 VOID 223 NTAPI 224 VideoPortReadRegisterBufferUshort( 225 PUSHORT Register, 226 PUSHORT Buffer, 227 ULONG Count) 228 { 229 READ_REGISTER_BUFFER_USHORT(Register, Buffer, Count); 230 } 231 232 VOID 233 NTAPI 234 VideoPortReadRegisterBufferUlong( 235 PULONG Register, 236 PULONG Buffer, 237 ULONG Count) 238 { 239 READ_REGISTER_BUFFER_ULONG(Register, Buffer, Count); 240 } 241 242 VOID 243 NTAPI 244 VideoPortWritePortUchar( 245 PUCHAR Port, 246 UCHAR Value) 247 { 248 WRITE_PORT_UCHAR(Port, Value); 249 } 250 251 VOID 252 NTAPI 253 VideoPortWritePortUshort( 254 PUSHORT Port, 255 USHORT Value) 256 { 257 WRITE_PORT_USHORT(Port, Value); 258 } 259 260 VOID 261 NTAPI 262 VideoPortWritePortUlong( 263 PULONG Port, 264 ULONG Value) 265 { 266 WRITE_PORT_ULONG(Port, Value); 267 } 268 269 VOID 270 NTAPI 271 VideoPortWritePortBufferUchar( 272 PUCHAR Port, 273 PUCHAR Buffer, 274 ULONG Count) 275 { 276 WRITE_PORT_BUFFER_UCHAR(Port, Buffer, Count); 277 } 278 279 VOID 280 NTAPI 281 VideoPortWritePortBufferUshort( 282 PUSHORT Port, 283 PUSHORT Buffer, 284 ULONG Count) 285 { 286 WRITE_PORT_BUFFER_USHORT(Port, Buffer, Count); 287 } 288 289 VOID 290 NTAPI 291 VideoPortWritePortBufferUlong( 292 PULONG Port, 293 PULONG Buffer, 294 ULONG Count) 295 { 296 WRITE_PORT_BUFFER_ULONG(Port, Buffer, Count); 297 } 298 299 VOID 300 NTAPI 301 VideoPortWriteRegisterUchar( 302 PUCHAR Register, 303 UCHAR Value) 304 { 305 WRITE_REGISTER_UCHAR(Register, Value); 306 } 307 308 VOID 309 NTAPI 310 VideoPortWriteRegisterUshort( 311 PUSHORT Register, 312 USHORT Value) 313 { 314 WRITE_REGISTER_USHORT(Register, Value); 315 } 316 317 VOID 318 NTAPI 319 VideoPortWriteRegisterUlong( 320 PULONG Register, 321 ULONG Value) 322 { 323 WRITE_REGISTER_ULONG(Register, Value); 324 } 325 326 VOID 327 NTAPI 328 VideoPortWriteRegisterBufferUchar( 329 PUCHAR Register, 330 PUCHAR Buffer, 331 ULONG Count) 332 { 333 WRITE_REGISTER_BUFFER_UCHAR(Register, Buffer, Count); 334 } 335 336 VOID 337 NTAPI 338 VideoPortWriteRegisterBufferUshort( 339 PUSHORT Register, 340 PUSHORT Buffer, 341 ULONG Count) 342 { 343 WRITE_REGISTER_BUFFER_USHORT(Register, Buffer, Count); 344 } 345 346 VOID 347 NTAPI 348 VideoPortWriteRegisterBufferUlong( 349 PULONG Register, 350 PULONG Buffer, 351 ULONG Count) 352 { 353 WRITE_REGISTER_BUFFER_ULONG(Register, Buffer, Count); 354 } 355 356 VOID 357 NTAPI 358 VideoPortQuerySystemTime( 359 OUT PLARGE_INTEGER CurrentTime) 360 { 361 KeQuerySystemTime(CurrentTime); 362 } 363 364 #endif /* _M_AMD64 */ 365