60 (OemRevision == 0x311))
83 CHAR ProductRevision[80];
91 Context = VgaExtension->Int10Interface.Context;
94 if (VbeInfo->Info.Signature !=
VESA_MAGIC)
return VesaBiosOk;
95 if (VbeInfo->Info.Version < 0x102)
return VesaBiosOk;
98 Status = VgaExtension->Int10Interface.Int10ReadMemory(
Context,
99 HIWORD(VbeInfo->Info.OemStringPtr),
100 LOWORD(VbeInfo->Info.OemStringPtr),
104 Status = VgaExtension->Int10Interface.Int10ReadMemory(
Context,
105 HIWORD(VbeInfo->Info.OemVendorNamePtr),
106 LOWORD(VbeInfo->Info.OemVendorNamePtr),
110 Status = VgaExtension->Int10Interface.Int10ReadMemory(
Context,
111 HIWORD(VbeInfo->Info.OemProductNamePtr),
112 LOWORD(VbeInfo->Info.OemProductNamePtr),
114 sizeof(ProductName));
116 Status = VgaExtension->Int10Interface.Int10ReadMemory(
Context,
117 HIWORD(VbeInfo->Info.OemProductRevPtr),
118 LOWORD(VbeInfo->Info.OemProductRevPtr),
120 sizeof(ProductRevision));
130 VesaBiosOk =
IsVesaBiosOk(&VgaExtension->Int10Interface,
131 VbeInfo->Info.OemSoftwareRevision,
135 VgaExtension->VesaBiosOk = VesaBiosOk;
149 USHORT TrampolineMemorySegment, TrampolineMemoryOffset;
152 PVIDEOMODE CurrentMode = VgaExtension->CurrentMode;
154 Entries = ClutBuffer->NumEntries;
163 if(!CurrentMode->NonVgaMode)
165 for (
i=ClutBuffer->FirstEntry; i<ClutBuffer->FirstEntry +
Entries;
i++)
179 Context = VgaExtension->Int10Interface.Context;
180 Status = VgaExtension->Int10Interface.Int10AllocateBuffer(
Context,
181 &TrampolineMemorySegment,
182 &TrampolineMemoryOffset,
189 VesaClut[
i].
Blue = ClutBuffer->LookupTable[
i].RgbArray.Blue;
190 VesaClut[
i].
Green = ClutBuffer->LookupTable[
i].RgbArray.Green;
191 VesaClut[
i].
Red = ClutBuffer->LookupTable[
i].RgbArray.Red;
194 Status = VgaExtension->Int10Interface.Int10WriteMemory(
Context,
195 TrampolineMemorySegment,
196 TrampolineMemoryOffset,
203 BiosArguments.
Ebx = 0;
205 BiosArguments.
Edx = ClutBuffer->FirstEntry;
206 BiosArguments.
Edi = TrampolineMemoryOffset;
207 BiosArguments.
SegEs = TrampolineMemorySegment;
209 Status = VgaExtension->Int10Interface.Int10CallBios(
Context, &BiosArguments);
static const ENTRY Entries[]
static const char VendorName[]
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
#define ERROR_INVALID_PARAMETER
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
VPAPI VOID NTAPI VideoPortZeroMemory(IN PVOID Destination, IN ULONG Length)
VPAPI VOID NTAPI VideoPortFreePool(IN PVOID HwDeviceExtension, IN PVOID Ptr)
VPAPI PVOID NTAPI VideoPortAllocatePool(IN PVOID HwDeviceExtension, IN VP_POOL_TYPE PoolType, IN SIZE_T NumberOfBytes, IN ULONG Tag)
VPAPI VOID NTAPI VideoPortWritePortUchar(IN PUCHAR Port, IN UCHAR Value)
#define VideoDebugPrint(x)
#define VBE_GETRETURNCODE(x)
#define VBE_SET_GET_PALETTE_DATA
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
static const CHAR IntelBrookdale[]
BOOLEAN g_bIntelBrookdaleBIOS
static const PCHAR BrokenVesaBiosList[]
BOOLEAN NTAPI ValidateVbeInfo(IN PHW_DEVICE_EXTENSION VgaExtension, IN PVBE_INFO VbeInfo)
static const CHAR Nv11Board[]
static const CHAR Nv11Chip[]
BOOLEAN NTAPI IsVesaBiosOk(IN PVIDEO_PORT_INT10_INTERFACE Interface, IN ULONG OemRevision, IN PCHAR Vendor, IN PCHAR Product, IN PCHAR Revision)
VP_STATUS NTAPI VbeSetColorLookup(IN PHW_DEVICE_EXTENSION VgaExtension, IN PVIDEO_CLUT ClutBuffer)
static const CHAR Nv11Vendor[]
*BytesInOemString PCHAR OemString