17#define PEGC_MAX_COLORS 256
46 return !(NewValue & 0x80);
140 RamParameters.
Length = 1023;
198 RamParameters.
Length = 1023;
298 PULONG OldPosition, NewPosition;
339 for (
i = 0;
i < PixelCount /
sizeof(
ULONG);
i++)
344 for (
i = 0;
i < PixelCount %
sizeof(
ULONG);
i++)
466 USHORT PixelCount = (Right - Left) + 1;
471 PixelsPtr = (
PULONG)StartOffset;
472 for (
i = 0;
i < PixelCount /
sizeof(
ULONG);
i++)
475 PixelPtr = (
PUCHAR)PixelsPtr;
476 for (
i = 0;
i < PixelCount %
sizeof(
ULONG);
i++)
VOID PreserveRow(_In_ ULONG CurrentTop, _In_ ULONG TopDelta, _In_ BOOLEAN Restore)
VOID NTAPI VidScreenToBufferBlt(_Out_writes_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_ ULONG Delta)
VOID NTAPI VidSolidColorFill(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ UCHAR Color)
VOID NTAPI VidCleanUp(VOID)
VOID NTAPI VidResetDisplay(_In_ BOOLEAN HalReset)
VOID DisplayCharacter(_In_ CHAR Character, _In_ ULONG Left, _In_ ULONG Top, _In_ ULONG TextColor, _In_ ULONG BackColor)
VOID DoScroll(_In_ ULONG Scroll)
VOID InitPaletteWithTable(_In_ PULONG Table, _In_ ULONG Count)
BOOLEAN NTAPI VidInitialize(_In_ BOOLEAN SetMode)
#define WRITE_REGISTER_USHORT(r, v)
#define READ_REGISTER_USHORT(r)
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
#define WRITE_REGISTER_ULONG(r, v)
#define READ_REGISTER_ULONG(r)
static LPHIST_ENTRY Bottom
const RGBQUAD VidpDefaultPalette[BV_MAX_COLORS]
ULONG VidpScrollRegion[4]
#define GetFontPtr(_Char)
#define InitializePalette()
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
static BOOLEAN HasPegcController(VOID)
static ULONG_PTR PegcControl
static BOOLEAN TestMmio(VOID)
VOID PrepareForSetPixel(VOID)
static VOID TextSync(VOID)
static VOID InitializeDisplay(VOID)
static VOID SetPaletteEntryRGB(_In_ ULONG Id, _In_ RGBQUAD Rgb)
static BOOLEAN GraphGetStatus(_In_ UCHAR Status)
VOID NTAPI MmUnmapIoSpace(IN PVOID BaseAddress, IN SIZE_T NumberOfBytes)
PVOID NTAPI MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress, IN SIZE_T NumberOfBytes, IN MEMORY_CACHING_TYPE CacheType)
#define _Out_writes_bytes_(size)
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
static USHORT CursorPosition
#define READ_PORT_UCHAR(p)
#define WRITE_PORT_UCHAR(p, d)
#define BYTES_PER_SCANLINE
#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
FORCEINLINE VOID WRITE_GDC_CSRW(PUCHAR Port, PCSRWPARAM CursorParameters)
#define GDC2_IO_o_VIDEO_PAGE
#define PEGC_FRAMEBUFFER_SIZE
#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)
#define VRAM_NORMAL_PLANE_I
FORCEINLINE VOID WRITE_GDC_PRAM(PUCHAR Port, PPRAMPARAM RamParameters)
#define PEGC_CONTROL_SIZE
#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 GDC2_MODE_LINES_800
#define GRAPH_MODE_DISPLAY_DISABLE
#define SYNC_DRAW_DURING_ACTIVE_DISPLAY_TIME_AND_RETRACE_BLANKING
#define PEGC_FRAMEBUFFER_PACKED
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
UCHAR HorizontalBackPorchWidth
UCHAR VerticalBackPorchWidth
UCHAR HorizontalSyncWidth
UCHAR VerticalFrontPorchWidth
UCHAR HorizontalFrontPorchWidth
#define RtlZeroMemory(Destination, Length)
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
_In_ HFONT _Out_ PUINT Height
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
_Must_inspect_result_ _In_ WDFMEMORY _In_ size_t SourceOffset
_Must_inspect_result_ _In_ WDFMEMORY _In_ size_t DestinationOffset
_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
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)
#define SECONDBYTE(VALUE)