13 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
20 0x00, 0x00, 0x00, 0x00,
21 0x2A, 0x00, 0x15, 0x00,
22 0x00, 0x2A, 0x15, 0x00,
23 0x2A, 0x2A, 0x15, 0x00,
24 0x00, 0x00, 0x2A, 0x00,
25 0x2A, 0x15, 0x2A, 0x00,
26 0x15, 0x2A, 0x2A, 0x00,
27 0x21, 0x22, 0x23, 0x00,
28 0x30, 0x31, 0x32, 0x00,
29 0x3F, 0x00, 0x00, 0x00,
30 0x00, 0x3F, 0x00, 0x00,
31 0x3F, 0x3F, 0x00, 0x00,
32 0x00, 0x00, 0x3F, 0x00,
33 0x3F, 0x00, 0x3F, 0x00,
34 0x00, 0x3F, 0x3F, 0x00,
35 0x3F, 0x3F, 0x3F, 0x00
48 if (EngDeviceIoControl(
Driver,
67 if (*modeInformation ==
NULL)
74 if (EngDeviceIoControl(
Driver,
84 *modeInformation =
NULL;
93 VideoTemp = *modeInformation;
115 ULONG ReturnedDataLength;
125 &ReturnedDataLength))
127 DPRINT1(
"Failed to unmap video memory.\n");
136 ULONG ReturnedDataLength;
145 if (EngDeviceIoControl(ppdev->
KMDriver,
151 &ReturnedDataLength))
157 if (EngDeviceIoControl(ppdev->
KMDriver,
163 &ReturnedDataLength))
169 if (EngDeviceIoControl(ppdev->
KMDriver,
175 &ReturnedDataLength))
185 if (EngDeviceIoControl(ppdev->
KMDriver,
187 (
PVOID) &VideoMemory,
189 (
PVOID) &VideoMemoryInfo,
190 sizeof (VideoMemoryInfo),
191 &ReturnedDataLength))
197 ppdev->
fbScreen = VideoMemoryInfo.FrameBufferBase;
#define IOCTL_VIDEO_MAP_VIDEO_MEMORY
#define VIDEO_MODE_GRAPHICS
#define IOCTL_VIDEO_SET_PALETTE_REGISTERS
#define IOCTL_VIDEO_UNMAP_VIDEO_MEMORY
struct _VIDEO_MODE_INFORMATION * PVIDEO_MODE_INFORMATION
#define IOCTL_VIDEO_SET_CURRENT_MODE
#define IOCTL_VIDEO_SET_COLOR_REGISTERS
#define IOCTL_VIDEO_QUERY_AVAIL_MODES
#define IOCTL_VIDEO_QUERY_NUM_AVAIL_MODES
void * EngAllocMem(int zero, unsigned long size, int tag=0)
PVOID RequestedVirtualAddress
ULONG ModeInformationLength
#define BROKEN_RASTERS(stride, cy)
_Must_inspect_result_ _In_ WDFDRIVER Driver
DWORD getAvailableModes(IN HANDLE Driver, OUT PVIDEO_MODE_INFORMATION *modeInformation, OUT DWORD *ModeSize)
static WORD PaletteBuffer[]
static BYTE ColorBuffer[]
BOOL InitVGA(PPDEV ppdev, BOOL bFirst)
BOOL DeinitVGA(PPDEV ppdev)
_Analysis_noreturn_ ENGAPI VOID APIENTRY EngDebugBreak(VOID)
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList