ReactOS  0.4.15-dev-2361-g32428a3
pc98vid.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS framebuffer driver for NEC PC-98 series
3  * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE: Miniport driver header file
5  * COPYRIGHT: Copyright 2020 Dmitry Borisov (di.sean@protonmail.com)
6  */
7 
8 #ifndef _PC98VID_PCH_
9 #define _PC98VID_PCH_
10 
11 #include <ntdef.h>
12 #include <section_attribs.h>
13 #include <dderror.h>
14 #include <devioctl.h>
15 #include <miniport.h>
16 #include <video.h>
17 #include <debug.h>
18 
19 #undef WRITE_PORT_UCHAR
20 #undef READ_PORT_UCHAR
21 #define WRITE_PORT_UCHAR(p, d) VideoPortWritePortUchar(p, d)
22 #define READ_PORT_UCHAR(p) VideoPortReadPortUchar(p)
23 #include <drivers/pc98/video.h>
24 
25 #define MONITOR_HW_ID 0x1033FACE /* Dummy */
26 
27 typedef struct _VIDEOMODE
28 {
39 
40 typedef struct _HW_DEVICE_EXTENSION
41 {
51 
52 BOOLEAN
53 NTAPI
55  _In_ PHW_DEVICE_EXTENSION DeviceExtension);
56 
57 BOOLEAN
58 NTAPI
60  _In_ PVOID HwDeviceExtension,
61  _Inout_ PVIDEO_REQUEST_PACKET RequestPacket);
62 
66  _In_ PHW_DEVICE_EXTENSION DeviceExtension,
67  _In_ PVIDEO_MODE RequestedMode);
68 
72  _In_ PVIDEO_CLUT ColorLookUpTable);
73 
75 NTAPI
77  _In_ PVOID HwDeviceExtension,
78  _In_ ULONG HwId,
79  _In_ PVIDEO_POWER_MANAGEMENT VideoPowerControl);
80 
82 NTAPI
84  _In_ PVOID HwDeviceExtension,
85  _In_ ULONG HwId,
86  _In_ PVIDEO_POWER_MANAGEMENT VideoPowerControl);
87 
88 extern const VIDEOMODE VideoModes[];
89 
90 #endif /* _PC98VID_PCH_ */
UCHAR Clock2
Definition: pc98vid.h:33
SYNCPARAM VideoSyncParameters
Definition: pc98vid.h:37
BOOLEAN NTAPI HasPegcController(_In_ PHW_DEVICE_EXTENSION DeviceExtension)
Definition: hardware.c:63
struct _VIDEOMODE * PVIDEOMODE
UCHAR HorizontalScanRate
Definition: pc98vid.h:31
const VIDEOMODE VideoModes[]
Definition: pc98vid.c:14
struct _HW_DEVICE_EXTENSION * PHW_DEVICE_EXTENSION
#define FASTCALL
Definition: nt_native.h:50
Definition: vga.h:250
uint32_t ULONG_PTR
Definition: typedefs.h:65
UCHAR Mem
Definition: pc98vid.h:34
ULONG_PTR PegcControlVa
Definition: pc98vid.h:47
VP_STATUS FASTCALL Pc98VidSetCurrentMode(_In_ PHW_DEVICE_EXTENSION DeviceExtension, _In_ PVIDEO_MODE RequestedMode)
Definition: hardware.c:83
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
BOOLEAN NTAPI Pc98VidStartIO(_In_ PVOID HwDeviceExtension, _Inout_ PVIDEO_REQUEST_PACKET RequestPacket)
Definition: ioctl.c:212
PHYSICAL_ADDRESS PegcControl
Definition: pc98vid.h:45
unsigned char BOOLEAN
USHORT HResolution
Definition: pc98vid.h:29
PHYSICAL_ADDRESS FrameBuffer
Definition: pc98vid.h:48
ULONG PegcControlLength
Definition: pc98vid.h:46
#define _Inout_
Definition: no_sal2.h:162
unsigned char UCHAR
Definition: xmlstorage.h:181
VP_STATUS NTAPI Pc98VidGetPowerState(_In_ PVOID HwDeviceExtension, _In_ ULONG HwId, _In_ PVIDEO_POWER_MANAGEMENT VideoPowerControl)
Definition: hardware.c:292
VP_STATUS NTAPI Pc98VidSetPowerState(_In_ PVOID HwDeviceExtension, _In_ ULONG HwId, _In_ PVIDEO_POWER_MANAGEMENT VideoPowerControl)
Definition: hardware.c:321
#define _In_
Definition: no_sal2.h:158
unsigned short USHORT
Definition: pedump.c:61
struct _HW_DEVICE_EXTENSION HW_DEVICE_EXTENSION
VP_STATUS FASTCALL Pc98VidSetColorRegisters(_In_ PVIDEO_CLUT ColorLookUpTable)
Definition: hardware.c:261
SYNCPARAM TextSyncParameters
Definition: pc98vid.h:36
unsigned int ULONG
Definition: retypes.h:1
UCHAR Clock1
Definition: pc98vid.h:32
struct _VIDEOMODE VIDEOMODE
LONG VP_STATUS
Definition: video.h:153
UCHAR RefreshRate
Definition: pc98vid.h:35
ULONG FrameBufferLength
Definition: pc98vid.h:49
USHORT VResolution
Definition: pc98vid.h:30