14#define PEGC_MAX_COLORS 256
48 return !(NewValue & 0x80);
100 if (RequestedMode->RequestedMode > DeviceExtension->ModeCount)
118 VideoModes[RequestedMode->RequestedMode].Clock1);
120 VideoModes[RequestedMode->RequestedMode].Clock2);
122 VideoModes[RequestedMode->RequestedMode].HorizontalScanRate);
132 SyncParameters =
VideoModes[RequestedMode->RequestedMode].TextSyncParameters;
155 RamParameters.
Length = 1023;
182 SyncParameters =
VideoModes[RequestedMode->RequestedMode].VideoSyncParameters;
206 RamParameters.
Length = 1023;
237 VideoModes[RequestedMode->RequestedMode].Mem);
253 DeviceExtension->CurrentMode = RequestedMode->RequestedMode;
273 for (
Entry = ColorLookUpTable->FirstEntry;
274 Entry < ColorLookUpTable->FirstEntry + ColorLookUpTable->NumEntries;
279 ColorLookUpTable->LookupTable[
Entry].RgbArray.Red);
281 ColorLookUpTable->LookupTable[
Entry].RgbArray.Green);
283 ColorLookUpTable->LookupTable[
Entry].RgbArray.Blue);
304 switch (VideoPowerControl->PowerState)
337 switch (VideoPowerControl->PowerState)
#define ERROR_DEVICE_REINITIALIZATION_NEEDED
#define ERROR_INVALID_PARAMETER
static USHORT CursorPosition
VPAPI USHORT NTAPI VideoPortReadRegisterUshort(IN PUSHORT Register)
VPAPI VOID NTAPI VideoPortWriteRegisterUshort(IN PUSHORT Register, IN USHORT Value)
VPAPI UCHAR NTAPI VideoPortReadPortUchar(IN PUCHAR Port)
#define DISPLAY_ADAPTER_HW_ID
VPAPI VOID NTAPI VideoPortWritePortUchar(IN PUCHAR Port, IN UCHAR Value)
#define VideoDebugPrint(x)
#define GDC_COMMAND_PITCH
#define GDC1_IO_o_MODE_FLIPFLOP1
#define GDC2_IO_o_MODE_FLIPFLOP2
#define GDC_COMMAND_MASTER
#define GRAPH_IO_i_STATUS
#define GDC2_EGC_FF_PROTECT
#define SYNC_VIDEO_FRAMING_NONINTERLACED
#define GRAPH_STATUS_PEGC
FORCEINLINE VOID WRITE_GDC_CSRFORM(PUCHAR Port, PCSRFORMPARAM CursorParameters)
#define GDC2_IO_o_COMMAND
#define GRAPH_MODE_DISPLAY_ENABLE
#define SYNC_DISPLAY_MODE_GRAPHICS
#define GDC2_MODE_ODD_RLINE_SHOW
#define GDC2_MODE_LINES_400
#define GDC_COMMAND_BCTRL_START
#define GDC2_IO_o_VIDEO_PAGE_ACCESS
#define GRAPH_IO_o_STATUS_SELECT
#define GDC1_IO_o_COMMAND
#define PEGC_MMIO_FRAMEBUFFER
#define GRAPH_VID_SRC_INTERNAL
#define GRAPH_DPMS_HSYNC_MASK
FORCEINLINE VOID WRITE_GDC_CSRW(PUCHAR Port, PCSRWPARAM CursorParameters)
#define GDC2_IO_o_VIDEO_PAGE
#define GDC_COMMAND_SLAVE
FORCEINLINE VOID WRITE_GDC_ZOOM(PUCHAR Port, PZOOMPARAM ZoomParameters)
#define GDC2_IO_o_PALETTE_INDEX
#define GDC2_MODE_COLORS_16
FORCEINLINE VOID WRITE_GDC2_COMMAND(UCHAR Command)
FORCEINLINE VOID WRITE_GDC_PITCH(PUCHAR Port, PPITCHPARAM PitchParameters)
FORCEINLINE VOID WRITE_GDC_PRAM(PUCHAR Port, PPRAMPARAM RamParameters)
#define GRAPH_MODE_COLORED
#define SYNC_DRAW_ONLY_DURING_RETRACE_BLANKING
#define GDC2_EGC_FF_UNPROTECT
#define SYNC_STATIC_RAM_NO_REFRESH
#define GRAPH_IO_o_HORIZONTAL_SCAN_RATE
#define GDC_COMMAND_RESET1
#define SYNC_DISPLAY_MODE_GRAPHICS_AND_CHARACTERS
#define GRAPH_MODE_DISPLAY_DISABLE
#define GRAPH_DPMS_VSYNC_MASK
#define SYNC_DRAW_DURING_ACTIVE_DISPLAY_TIME_AND_RETRACE_BLANKING
FORCEINLINE VOID WRITE_GDC1_COMMAND(UCHAR Command)
#define GDC2_MODE_PEGC_ENABLE
FORCEINLINE VOID WRITE_GDC_SYNC(PUCHAR Port, PSYNCPARAM SyncParameters)
#define GDC_COMMAND_SYNC_ON
#define GDC_COMMAND_CSRFORM
#define GDC2_MODE_PEGC_DISABLE
base of all file and directory entries
static CONST VGA_MODE VideoModes[BIOS_MAX_VIDEO_MODE+1]
VP_STATUS FASTCALL Pc98VidSetColorRegisters(_In_ PVIDEO_CLUT ColorLookUpTable)
VP_STATUS FASTCALL Pc98VidSetCurrentMode(_In_ PHW_DEVICE_EXTENSION DeviceExtension, _In_ PVIDEO_MODE RequestedMode)
BOOLEAN NTAPI HasPegcController(_In_ PHW_DEVICE_EXTENSION DeviceExtension)
VP_STATUS NTAPI Pc98VidGetPowerState(_In_ PVOID HwDeviceExtension, _In_ ULONG HwId, _In_ PVIDEO_POWER_MANAGEMENT VideoPowerControl)
VP_STATUS NTAPI Pc98VidSetPowerState(_In_ PVOID HwDeviceExtension, _In_ ULONG HwId, _In_ PVIDEO_POWER_MANAGEMENT VideoPowerControl)
static VOID TextSync(VOID)
static BOOLEAN TestMmio(_In_ PHW_DEVICE_EXTENSION DeviceExtension)
static BOOLEAN GraphGetStatus(_In_ UCHAR Status)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO