215{
217
219
222
223 switch (RequestPacket->IoControlCode)
224 {
226 {
228 {
230 break;
231 }
232
235 RequestPacket->StatusBlock);
236 break;
237 }
238
240 {
243 {
245 break;
246 }
247
250 RequestPacket->StatusBlock);
251 break;
252 }
253
255 {
256 if (RequestPacket->InputBufferLength <
sizeof(
VIDEO_MODE))
257 {
259 break;
260 }
261
264 break;
265 }
266
268 {
270 {
272 break;
273 }
274
277 RequestPacket->StatusBlock);
278 break;
279 }
280
282 {
283 if (RequestPacket->InputBufferLength <
sizeof(
VIDEO_MEMORY) ||
285 {
287 break;
288 }
289
293 RequestPacket->StatusBlock);
294 break;
295 }
296
298 {
299 if (RequestPacket->InputBufferLength <
sizeof(
VIDEO_MEMORY))
300 {
302 break;
303 }
304
307 break;
308 }
309
311 {
313 break;
314 }
315
317 {
318 if (RequestPacket->InputBufferLength <
sizeof(
VIDEO_CLUT))
319 {
321 break;
322 }
323
325 break;
326 }
327
329 {
330 if (RequestPacket->InputBufferLength <
sizeof(
ULONG) ||
331 RequestPacket->OutputBufferLength <
sizeof(
ULONG))
332 {
334 break;
335 }
336
338 (
PULONG)RequestPacket->InputBuffer,
339 (
PULONG)RequestPacket->OutputBuffer,
340 RequestPacket->StatusBlock);
341 break;
342 }
343
344 default:
346 }
347
350
351 RequestPacket->StatusBlock->Status =
Status;
352
354}
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_FUNCTION
#define IOCTL_VIDEO_MAP_VIDEO_MEMORY
#define IOCTL_VIDEO_UNMAP_VIDEO_MEMORY
#define IOCTL_VIDEO_QUERY_CURRENT_MODE
#define IOCTL_VIDEO_GET_CHILD_STATE
#define IOCTL_VIDEO_SET_CURRENT_MODE
#define IOCTL_VIDEO_SET_COLOR_REGISTERS
#define IOCTL_VIDEO_RESET_DEVICE
#define IOCTL_VIDEO_QUERY_AVAIL_MODES
#define IOCTL_VIDEO_QUERY_NUM_AVAIL_MODES
VP_STATUS FASTCALL Pc98VidSetColorRegisters(_In_ PVIDEO_CLUT ColorLookUpTable)
VP_STATUS FASTCALL Pc98VidSetCurrentMode(_In_ PHW_DEVICE_EXTENSION DeviceExtension, _In_ PVIDEO_MODE RequestedMode)
static VP_STATUS FASTCALL Pc98VidUnmapVideoMemory(_In_ PHW_DEVICE_EXTENSION DeviceExtension, _In_ PVIDEO_MEMORY VideoMemory)
static VP_STATUS FASTCALL Pc98VidMapVideoMemory(_In_ PHW_DEVICE_EXTENSION DeviceExtension, _In_ PVIDEO_MEMORY RequestedAddress, _Out_ PVIDEO_MEMORY_INFORMATION MapInformation, _Out_ PSTATUS_BLOCK StatusBlock)
static VP_STATUS FASTCALL Pc98VidGetChildState(_In_ PHW_DEVICE_EXTENSION DeviceExtension, _In_ PULONG ChildIndex, _Out_ PULONG ChildState, _Out_ PSTATUS_BLOCK StatusBlock)
static VP_STATUS FASTCALL Pc98VidQueryNumAvailModes(_In_ PHW_DEVICE_EXTENSION DeviceExtension, _Out_ PVIDEO_NUM_MODES Modes, _Out_ PSTATUS_BLOCK StatusBlock)
static VP_STATUS FASTCALL Pc98VidQueryAvailModes(_In_ PHW_DEVICE_EXTENSION DeviceExtension, _Out_ PVIDEO_MODE_INFORMATION ModeInformation, _Out_ PSTATUS_BLOCK StatusBlock)
static VP_STATUS FASTCALL Pc98VidResetDevice(VOID)
static VP_STATUS FASTCALL Pc98VidQueryCurrentMode(_In_ PHW_DEVICE_EXTENSION DeviceExtension, _Out_ PVIDEO_MODE_INFORMATION VideoMode, _Out_ PSTATUS_BLOCK StatusBlock)