59 #define VGA_EXTENDED // define this for 80x50 console mode 62 #define SCREEN_BUFFER_SIZE (80*25*2) 64 #define SCREEN_BUFFER_SIZE (80*50*2) 68 #define MISCOUTPUT 0x3c2 69 #define FEATURECONTROL 0x3da 70 #define SEQUENCER 0x3c4 72 #define GRAPHICS 0x3ce 73 #define ATTRIBS 0x03c0 74 #define PELADDRESSWRITE 0x3c8 75 #define PELDATAREG 0x3c9 82 #define MAXATTRIB 0x015 103 #endif // VGA_EXTENDED 151 #define GRREGSETRESET 0 152 #define GRREGENABLESETRESET 1 153 #define GRREGREADMAPSEL 4 154 #define SQREGMAPMASK 2 155 #define SQREGMEMORY 4 156 #define GRREGWRMODE 5 194 #define BYTESPERFONT 8 195 #define FONTENTRIES 256 196 #define FONTBUFFERSIZE 8192 205 for (
j=0;
j < 16;
j++)
206 graph_table[
i*16+
j] = FontBase[
i*32+
j];
221 for (
j=0;
j < 8;
j++)
223 #else // VGA_EXTENDED 225 for (
j=0;
j < 16;
j++)
227 #endif // VGA_EXTENDED 232 for (
j=0;
j < 16;
j++)
233 FontBase[
i*32+
j] = graph_table[
i*16+
j];
245 attr.u.bits.fgcol = col;
246 attr.u.bits.blink = 0;
255 attr.u.bits.bkcol = col;
256 attr.u.bits.blink = 0;
511 #else // VGA_EXTENDED 513 #endif // VGA_EXTENDED 515 attr.u.Asuchar = 0x07;
522 FontBuffer.
u.LowPart = 0xA0000;
540 DPRINT((0,
"VGA memory cleared!\n"));
544 DPRINT((0,
"ConsoleInitVga() SUCCESS!\n"));
void(* PrintLogo)(BOOLEAN bShow)
void save_font(UCHAR *graph_table)
void ConsoleShutdownVga(void)
void KeyboardFlushKeyboardQueue(void)
void InvertLineVga(ULONG line)
struct _attr::@1554::@1555 bits
void SetWindowGeometry(PVOID pWindow)
UCHAR inportb(PUCHAR port)
void EmptyRingBuffer(void)
void load_font(UCHAR *graph_table, int bEnter)
unsigned char oldgraphicssetresetenable
ULONG GLOBAL_SCREEN_WIDTH
GLuint GLuint GLsizei count
unsigned char oldsqregmemory
ULONG GLOBAL_SCREEN_HEIGHT
void pice_restore_current_registers(void)
GLint GLint GLint GLint GLint x
PVOID NTAPI MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress, IN SIZE_T NumberOfBytes, IN MEMORY_CACHING_TYPE CacheType)
BOOLEAN ConsoleInitVga(void)
void map_font_memory(void)
void pice_save_current_registers(void)
#define SCREEN_BUFFER_SIZE
void ClrLineVga(ULONG line)
void(* SetBackgroundColor)(ECOLORS)
void(* SetForegroundColor)(ECOLORS)
void outb_p(UCHAR data, PUCHAR port)
void unmap_font_memory(void)
void(* ClrLine)(ULONG line)
UCHAR cGraphTable2[16 *256]
void(* RestoreGraphicsState)(void)
void * PICE_malloc(size_t numBytes, BOOLEAN fromPaged)
void RestoreGraphicsStateVga(void)
void SaveGraphicsStateVga(void)
OUTPUT_HANDLERS ohandlers
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 GLint GLint j
PUCHAR pScreenBufferTempVga
void outportb(PUCHAR port, UCHAR data)
void(* PrintGraf)(ULONG x, ULONG y, UCHAR c)
void PrintCursorVga(BOOLEAN bForce)
void(* PrintCursor)(BOOLEAN bForce)
unsigned char read_vga_reg(int port, int reg)
PUCHAR pScreenBufferSaveVga
void PICE_memcpy(void *t, void *s, int sz)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void PrintLogoVga(BOOLEAN bShow)
void PrintGrafVga(ULONG x, ULONG y, UCHAR c)
void pice_set_mode_3_80x25(void)
void(* SaveGraphicsState)(void)
void(* HatchLine)(ULONG line)
void SetBackgroundColorVga(ECOLORS col)
unsigned char oldsqregmapmask
unsigned char oldgraphicsmode
PUCHAR pScreenBufferHardwareVga
void HatchLineVga(ULONG line)
void SetForegroundColorVga(ECOLORS col)
void CopyLineToVga(USHORT dest, USHORT src)
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
unsigned char oldgraphicsreadmapsel
VOID NTAPI MmUnmapIoSpace(IN PVOID BaseAddress, IN SIZE_T NumberOfBytes)
unsigned char oldgraphicsmisc
#define GRREGENABLESETRESET
void(* CopyLineTo)(USHORT dest, USHORT src)
GLint GLint GLint GLint GLint GLint y
void(* InvertLine)(ULONG line)
void pice_set_mode_3_80x50(void)
UCHAR KeyboardGetKeyPolled(void)
void write_vga_reg(int port, unsigned char reg, unsigned char value)
UCHAR cGraphTable[8 *256]
struct _LARGE_INTEGER::@2269 u
void PICE_memset(void *p, unsigned char c, int sz)
#define NOT_IMPLEMENTED()