35 ULONG ModeInformationSize,
53 ULONG ModeInformationSize,
63#if defined(ALLOC_PRAGMA)
64#pragma alloc_text(PAGE,VgaInterpretCmdStream)
65#pragma alloc_text(PAGE,VgaSetMode)
66#pragma alloc_text(PAGE,VgaQueryAvailableModes)
67#pragma alloc_text(PAGE,VgaQueryNumberOfAvailableModes)
68#pragma alloc_text(PAGE,VgaZeroVideoMemory)
109 if (pusCmdStream ==
NULL) {
111 VideoDebugPrint((1,
"VgaInterpretCmdStream - Invalid pusCmdStream\n"));
121 while ((ulCmd = *pusCmdStream++) !=
EOD) {
127 switch (ulCmd & 0xF0) {
145 if (!(ulCmd &
MULTI)) {
157 ulPort = *pusCmdStream++;
158 jValue = (
UCHAR) *pusCmdStream++;
168 ulPort = *pusCmdStream++;
169 usValue = *pusCmdStream++;
190 ulPort = ulBase + *pusCmdStream++;
191 culCount = *pusCmdStream++;
194 jValue = (
UCHAR) *pusCmdStream++;
206 ulPort = *pusCmdStream++;
207 culCount = *pusCmdStream++;
209 (ulBase + ulPort), pusCmdStream, culCount);
210 pusCmdStream += culCount;
230 ulPort = *pusCmdStream++;
239 ulPort = *pusCmdStream++;
259 switch (ulCmd & 0x0F) {
267 ulPort = ulBase + *pusCmdStream++;
268 culCount = *pusCmdStream++;
269 ulIndex = *pusCmdStream++;
273 usValue = (
USHORT) (ulIndex +
274 (((
ULONG)(*pusCmdStream++)) << 8));
289 ulPort = *pusCmdStream++;
291 jValue &= *pusCmdStream++;
292 jValue ^= *pusCmdStream++;
303 ulPort = ulBase + *pusCmdStream++;
304 culCount = *pusCmdStream++;
305 ulIndex = *pusCmdStream++;
314 jValue = (
UCHAR) *pusCmdStream++;
399 ULONG RequestedModeNum;
401 *PhysPtrChange =
FALSE;
416 RequestedModeNum =
Mode->RequestedMode &
434 VideoDebugPrint((0,
"Invalide Mode Number = %d!\n", RequestedModeNum));
445 "\tResolution: %dx%d\n",
446 pRequestedMode->hres,
447 pRequestedMode->vres ));
471 if (pRequestedMode->hres == 320)
498 pRequestedMode->FrameBufferSize;
501 pRequestedMode->FrameBufferBase;
520 ULONG ModeInformationSize,
564 if (ModeInformationSize < (*OutputSize =
602 videoModes->
RedMask = 0xff0000;
613 videoModes->
RedMask = 0x1F << 11;
625 videoModes->
RedMask = 0x3E << 9;
722 ULONG ModeInformationSize,
802 ModeInformation->
RedMask = 0xff0000;
804 ModeInformation->
BlueMask = 0x0000ff;
813 ModeInformation->
RedMask = 0x1F << 11;
825 ModeInformation->
RedMask = 0x3E << 9;
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_FUNCTION
#define ERROR_INVALID_PARAMETER
static const WCHAR Cleanup[]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
VP_STATUS NTAPI VgaQueryAvailableModes(PHW_DEVICE_EXTENSION HwDeviceExtension, PVIDEO_MODE_INFORMATION ModeInformation, ULONG ModeInformationSize, PULONG_PTR OutputSize)
VP_STATUS NTAPI VgaQueryNumberOfAvailableModes(PHW_DEVICE_EXTENSION HwDeviceExtension, PVIDEO_NUM_MODES NumModes, ULONG NumModesSize, PULONG_PTR OutputSize)
VP_STATUS NTAPI VgaSetMode(PHW_DEVICE_EXTENSION HwDeviceExtension, PVIDEO_MODE Mode, ULONG ModeSize, PULONG PhysPtrChange)
VP_STATUS NTAPI VgaQueryCurrentMode(PHW_DEVICE_EXTENSION HwDeviceExtension, PVIDEO_MODE_INFORMATION ModeInformation, ULONG ModeInformationSize, PULONG_PTR OutputSize)
VOID NTAPI VgaZeroVideoMemory(PHW_DEVICE_EXTENSION HwDeviceExtension)
VP_STATUS NTAPI VgaInterpretCmdStream(PHW_DEVICE_EXTENSION HwDeviceExtension, PUSHORT pusCmdStream)
#define VIDEO_MODE_GRAPHICS
#define VIDEO_MODE_PALETTE_DRIVEN
#define VIDEO_MODE_MANAGED_PALETTE
#define VIDEO_MODE_NO_ZERO_MEMORY
#define VIDEO_MODE_MAP_MEM_LINEAR
struct _VIDEO_MODE_INFORMATION VIDEO_MODE_INFORMATION
VPAPI VOID NTAPI VideoPortZeroDeviceMemory(IN PVOID Destination, IN ULONG Length)
VPAPI UCHAR NTAPI VideoPortReadPortUchar(IN PUCHAR Port)
VPAPI USHORT NTAPI VideoPortReadPortUshort(IN PUSHORT Port)
VPAPI VOID NTAPI VideoPortWritePortBufferUshort(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
VPAPI VOID NTAPI VideoPortWritePortUchar(IN PUCHAR Port, IN UCHAR Value)
#define VideoDebugPrint(x)
VPAPI VOID NTAPI VideoPortWritePortUshort(IN PUSHORT Port, IN USHORT Value)
PHYSICAL_ADDRESS PhysicalFrameOffset
PUCHAR VideoMemoryAddress
ULONG PhysicalFrameLength
PHYSICAL_ADDRESS PhysicalVideoMemoryBase
ULONG PhysicalVideoMemoryLength
ULONG ModeInformationLength
VP_STATUS NTAPI VbeSetMode(IN PHW_DEVICE_EXTENSION VgaDeviceExtension, IN PVIDEOMODE VgaMode, OUT PULONG PhysPtrChange)
USHORT DisableA000Color[]