ReactOS  0.4.14-dev-114-gc8cbd56
vga.c File Reference
#include "remods.h"
#include "precomp.h"
Include dependency graph for vga.c:

Go to the source code of this file.

Classes

struct  _attr
 

Macros

#define VGA_EXTENDED
 
#define SCREEN_BUFFER_SIZE   (80*50*2)
 
#define MISCOUTPUT   0x3c2
 
#define FEATURECONTROL   0x3da
 
#define SEQUENCER   0x3c4
 
#define CRTC   0x03d4
 
#define GRAPHICS   0x3ce
 
#define ATTRIBS   0x03c0
 
#define PELADDRESSWRITE   0x3c8
 
#define PELDATAREG   0x3c9
 
#define MAXSEQ   5
 
#define MAXCRTC   0x19
 
#define MAXGRAPH   0x9
 
#define MAXATTRIB   0x015
 
#define VREND   0x11
 
#define GRREGSETRESET   0
 
#define GRREGENABLESETRESET   1
 
#define GRREGREADMAPSEL   4
 
#define SQREGMAPMASK   2
 
#define SQREGMEMORY   4
 
#define GRREGWRMODE   5
 
#define GRREGMISC   6
 
#define BYTESPERFONT   8
 
#define FONTENTRIES   256
 
#define FONTBUFFERSIZE   8192
 

Functions

void pice_save_current_registers (void)
 
void pice_restore_current_registers (void)
 
void pice_set_mode_3_80x50 (void)
 
void pice_set_mode_3_80x25 (void)
 
unsigned char read_vga_reg (int port, int reg)
 
void write_vga_reg (int port, unsigned char reg, unsigned char value)
 
void map_font_memory (void)
 
void unmap_font_memory (void)
 
void save_font (UCHAR *graph_table)
 
void load_font (UCHAR *graph_table, int bEnter)
 
void SetForegroundColorVga (ECOLORS col)
 
void SetBackgroundColorVga (ECOLORS col)
 
void PrintGrafVga (ULONG x, ULONG y, UCHAR c)
 
void ShowCursorVga (void)
 
void HideCursorVga (void)
 
void CopyLineToVga (USHORT dest, USHORT src)
 
void InvertLineVga (ULONG line)
 
void HatchLineVga (ULONG line)
 
void ClrLineVga (ULONG line)
 
void PrintLogoVga (BOOLEAN bShow)
 
void PrintCursorVga (BOOLEAN bForce)
 
void SaveGraphicsStateVga (void)
 
void RestoreGraphicsStateVga (void)
 
BOOLEAN ConsoleInitVga (void)
 
void ConsoleShutdownVga (void)
 

Variables

UCHAR cGraphTable [8 *256]
 
UCHAR cGraphTable2 [16 *256]
 
WINDOW wWindowVga [4]
 
PUCHAR pScreenBufferVga
 
PUCHAR pScreenBufferSaveVga = NULL
 
PUCHAR pScreenBufferTempVga
 
PUCHAR pScreenBufferHardwareVga
 
PUCHAR pFontBufferVga = NULL
 
UCHAR offset_a = 0
 
UCHAR offset_c = 0
 
UCHAR offset_d = 0
 
UCHAR offset_e = 0
 
UCHAR offset_f = 0
 
struct _attr attr
 
unsigned char oldgraphicsmode
 
unsigned char oldgraphicsmisc
 
unsigned char oldsqregmapmask
 
unsigned char oldsqregmemory
 
unsigned char oldgraphicssetresetenable
 
unsigned char oldgraphicsreadmapsel
 

Macro Definition Documentation

◆ ATTRIBS

#define ATTRIBS   0x03c0

Definition at line 73 of file vga.c.

◆ BYTESPERFONT

#define BYTESPERFONT   8

Definition at line 194 of file vga.c.

◆ CRTC

#define CRTC   0x03d4

Definition at line 71 of file vga.c.

◆ FEATURECONTROL

#define FEATURECONTROL   0x3da

Definition at line 69 of file vga.c.

◆ FONTBUFFERSIZE

#define FONTBUFFERSIZE   8192

Definition at line 196 of file vga.c.

◆ FONTENTRIES

#define FONTENTRIES   256

Definition at line 195 of file vga.c.

◆ GRAPHICS

#define GRAPHICS   0x3ce

Definition at line 72 of file vga.c.

◆ GRREGENABLESETRESET

#define GRREGENABLESETRESET   1

Definition at line 152 of file vga.c.

◆ GRREGMISC

#define GRREGMISC   6

Definition at line 157 of file vga.c.

◆ GRREGREADMAPSEL

#define GRREGREADMAPSEL   4

Definition at line 153 of file vga.c.

◆ GRREGSETRESET

#define GRREGSETRESET   0

Definition at line 151 of file vga.c.

◆ GRREGWRMODE

#define GRREGWRMODE   5

Definition at line 156 of file vga.c.

◆ MAXATTRIB

#define MAXATTRIB   0x015

Definition at line 82 of file vga.c.

◆ MAXCRTC

#define MAXCRTC   0x19

Definition at line 80 of file vga.c.

◆ MAXGRAPH

#define MAXGRAPH   0x9

Definition at line 81 of file vga.c.

◆ MAXSEQ

#define MAXSEQ   5

Definition at line 79 of file vga.c.

◆ MISCOUTPUT

#define MISCOUTPUT   0x3c2

Definition at line 68 of file vga.c.

◆ PELADDRESSWRITE

#define PELADDRESSWRITE   0x3c8

Definition at line 74 of file vga.c.

◆ PELDATAREG

#define PELDATAREG   0x3c9

Definition at line 75 of file vga.c.

◆ SCREEN_BUFFER_SIZE

#define SCREEN_BUFFER_SIZE   (80*50*2)

Definition at line 64 of file vga.c.

◆ SEQUENCER

#define SEQUENCER   0x3c4

Definition at line 70 of file vga.c.

◆ SQREGMAPMASK

#define SQREGMAPMASK   2

Definition at line 154 of file vga.c.

◆ SQREGMEMORY

#define SQREGMEMORY   4

Definition at line 155 of file vga.c.

◆ VGA_EXTENDED

#define VGA_EXTENDED

Definition at line 59 of file vga.c.

◆ VREND

#define VREND   0x11

Definition at line 150 of file vga.c.

Function Documentation

◆ ClrLineVga()

void ClrLineVga ( ULONG  line)

Definition at line 360 of file vga.c.

361 {
362  ULONG i;
364 
366  {
367  for(i=0;i<GLOBAL_SCREEN_WIDTH;i++)
368  p[line*GLOBAL_SCREEN_WIDTH + i] = (USHORT)((attr.u.Asuchar<<8) | 0x20);
369  }
370 }
ULONG GLOBAL_SCREEN_WIDTH
Definition: hardware.c:62
ULONG GLOBAL_SCREEN_HEIGHT
Definition: hardware.c:62
PUCHAR pScreenBufferVga
Definition: vga.c:105
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
Definition: glfuncs.h:248
Definition: parser.c:48
Definition: cookie.c:170
unsigned short USHORT
Definition: pedump.c:61
unsigned int ULONG
Definition: retypes.h:1
GLfloat GLfloat p
Definition: glext.h:8902
unsigned short * PUSHORT
Definition: retypes.h:2

Referenced by ConsoleInitVga().

◆ ConsoleInitVga()

BOOLEAN ConsoleInitVga ( void  )

Definition at line 479 of file vga.c.

480 {
481  BOOLEAN bResult = FALSE;
482  PUSHORT p;
484  PHYSICAL_ADDRESS FontBuffer;
485 
486 
487  ENTER_FUNC();
488 
502 
505 
507 
508  GLOBAL_SCREEN_WIDTH = 80;
509 #ifndef VGA_EXTENDED
511 #else // VGA_EXTENDED
513 #endif // VGA_EXTENDED
514 
515  attr.u.Asuchar = 0x07;
516 
517  // the real framebuffer
518  FrameBuffer.u.LowPart = 0xB8000;
520 
521  //The real font buffer
522  FontBuffer.u.LowPart = 0xA0000;
524 
525  // the console
527  // the save area
529 
530  if(pScreenBufferVga)
531  {
532  DPRINT((0,"VGA memory phys. 0x000b0000 mapped to virt. 0x%x\n",pScreenBufferVga));
533 
534  bResult = TRUE;
535 
537 
539 
540  DPRINT((0,"VGA memory cleared!\n"));
541 
542  EmptyRingBuffer();
543 
544  DPRINT((0,"ConsoleInitVga() SUCCESS!\n"));
545  }
546 
547  LEAVE_FUNC();
548 
549  return bResult;
550 }
#define FONTBUFFERSIZE
Definition: vga.c:196
void(* PrintLogo)(BOOLEAN bShow)
Definition: hardware.h:47
void KeyboardFlushKeyboardQueue(void)
Definition: utils.c:1455
void InvertLineVga(ULONG line)
Definition: vga.c:322
#define TRUE
Definition: types.h:120
void SetWindowGeometry(PVOID pWindow)
Definition: hardware.c:915
GLint x0
Definition: linetemp.h:95
void EmptyRingBuffer(void)
Definition: hardware.c:104
void(* FlushKeyboardQueue)(void)
Definition: hardware.h:61
ULONG GLOBAL_SCREEN_WIDTH
Definition: hardware.c:62
ULONG GLOBAL_SCREEN_HEIGHT
Definition: hardware.c:62
void(* HideCursor)(void)
Definition: hardware.h:52
PUCHAR pScreenBufferVga
Definition: vga.c:105
#define LEAVE_FUNC()
Definition: debug.h:43
PVOID NTAPI MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress, IN SIZE_T NumberOfBytes, IN MEMORY_CACHING_TYPE CacheType)
Definition: iosup.c:47
#define NONPAGEDPOOL
Definition: utils.h:306
#define SCREEN_BUFFER_SIZE
Definition: vga.c:64
void ClrLineVga(ULONG line)
Definition: vga.c:360
void(* SetBackgroundColor)(ECOLORS)
Definition: hardware.h:54
WINDOW wWindowVga[4]
Definition: vga.c:88
void(* SetForegroundColor)(ECOLORS)
Definition: hardware.h:53
void(* ClrLine)(ULONG line)
Definition: hardware.h:44
void(* RestoreGraphicsState)(void)
Definition: hardware.h:50
unsigned char BOOLEAN
struct _LARGE_INTEGER::@2205 u
void * PICE_malloc(size_t numBytes, BOOLEAN fromPaged)
Definition: utils.c:2212
void DPRINT(...)
Definition: polytest.cpp:61
void ShowCursorVga(void)
Definition: vga.c:273
void RestoreGraphicsStateVga(void)
Definition: vga.c:452
void SaveGraphicsStateVga(void)
Definition: vga.c:413
OUTPUT_HANDLERS ohandlers
Definition: hardware.c:65
UCHAR(* GetKeyPolled)(void)
Definition: hardware.h:60
PUCHAR pScreenBufferTempVga
Definition: vga.c:107
void(* PrintGraf)(ULONG x, ULONG y, UCHAR c)
Definition: hardware.h:42
INPUT_HANDLERS ihandlers
Definition: hardware.c:66
void PrintCursorVga(BOOLEAN bForce)
Definition: vga.c:386
void(* PrintCursor)(BOOLEAN bForce)
Definition: hardware.h:48
void(* ShowCursor)(void)
Definition: hardware.h:51
Definition: cookie.c:170
void PrintLogoVga(BOOLEAN bShow)
Definition: vga.c:376
void PrintGrafVga(ULONG x, ULONG y, UCHAR c)
Definition: vga.c:263
PUCHAR pFontBufferVga
Definition: vga.c:109
void(* SaveGraphicsState)(void)
Definition: hardware.h:49
void(* HatchLine)(ULONG line)
Definition: hardware.h:46
void SetBackgroundColorVga(ECOLORS col)
Definition: vga.c:253
PUCHAR pScreenBufferHardwareVga
Definition: vga.c:108
void HatchLineVga(ULONG line)
Definition: vga.c:343
void SetForegroundColorVga(ECOLORS col)
Definition: vga.c:243
void CopyLineToVga(USHORT dest, USHORT src)
Definition: vga.c:306
void HideCursorVga(void)
Definition: vga.c:290
void(* CopyLineTo)(USHORT dest, USHORT src)
Definition: hardware.h:41
void(* InvertLine)(ULONG line)
Definition: hardware.h:45
#define ENTER_FUNC()
Definition: debug.h:42
UCHAR KeyboardGetKeyPolled(void)
Definition: utils.c:1375
GLfloat GLfloat p
Definition: glext.h:8902
PVOID FrameBuffer
Definition: xboxvideo.c:27
unsigned short * PUSHORT
Definition: retypes.h:2
void PICE_memset(void *p, unsigned char c, int sz)
Definition: utils.c:228

Referenced by ConsoleInit().

◆ ConsoleShutdownVga()

void ConsoleShutdownVga ( void  )

Definition at line 557 of file vga.c.

558 {
559  ENTER_FUNC();
560 
561  if(pScreenBufferVga)
562  {
567  }
568 
569  LEAVE_FUNC();
570 }
#define FONTBUFFERSIZE
Definition: vga.c:196
PUCHAR pScreenBufferVga
Definition: vga.c:105
#define LEAVE_FUNC()
Definition: debug.h:43
#define SCREEN_BUFFER_SIZE
Definition: vga.c:64
PUCHAR pScreenBufferTempVga
Definition: vga.c:107
void PICE_free(void *p)
Definition: utils.c:2222
PUCHAR pFontBufferVga
Definition: vga.c:109
PUCHAR pScreenBufferHardwareVga
Definition: vga.c:108
VOID NTAPI MmUnmapIoSpace(IN PVOID BaseAddress, IN SIZE_T NumberOfBytes)
Definition: iosup.c:193
#define ENTER_FUNC()
Definition: debug.h:42

Referenced by ConsoleShutdown().

◆ CopyLineToVga()

void CopyLineToVga ( USHORT  dest,
USHORT  src 
)

Definition at line 306 of file vga.c.

307 {
309 
310  ENTER_FUNC();
311 
313 
314  LEAVE_FUNC();
315 }
ULONG GLOBAL_SCREEN_WIDTH
Definition: hardware.c:62
PUCHAR pScreenBufferVga
Definition: vga.c:105
#define LEAVE_FUNC()
Definition: debug.h:43
void PICE_memcpy(void *t, void *s, int sz)
Definition: utils.c:239
GLenum src
Definition: glext.h:6340
unsigned short USHORT
Definition: pedump.c:61
#define ENTER_FUNC()
Definition: debug.h:42
static char * dest
Definition: rtl.c:135
GLfloat GLfloat p
Definition: glext.h:8902
unsigned short * PUSHORT
Definition: retypes.h:2

Referenced by ConsoleInitVga().

◆ HatchLineVga()

void HatchLineVga ( ULONG  line)

Definition at line 343 of file vga.c.

344 {
345  ULONG i;
347 
349  {
350  for(i=0;i<GLOBAL_SCREEN_WIDTH;i++)
351  p[line*GLOBAL_SCREEN_WIDTH + i] = (p[line*GLOBAL_SCREEN_WIDTH + i] & 0xF0FF) | 0x0c00;
352  }
353 }
ULONG GLOBAL_SCREEN_WIDTH
Definition: hardware.c:62
ULONG GLOBAL_SCREEN_HEIGHT
Definition: hardware.c:62
PUCHAR pScreenBufferVga
Definition: vga.c:105
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
Definition: glfuncs.h:248
Definition: parser.c:48
unsigned int ULONG
Definition: retypes.h:1
GLfloat GLfloat p
Definition: glext.h:8902
unsigned short * PUSHORT
Definition: retypes.h:2

Referenced by ConsoleInitVga().

◆ HideCursorVga()

void HideCursorVga ( void  )

Definition at line 290 of file vga.c.

291 {
292  ENTER_FUNC();
294 
295  outb_p(0x0a,0x3d4);
296  outb_p(inb_p(0x3d5)|0x20,0x3d5);
297 
298  LEAVE_FUNC();
299 }
BOOLEAN bCursorEnabled
Definition: hardware.c:51
#define LEAVE_FUNC()
Definition: debug.h:43
void outb_p(UCHAR data, PUCHAR port)
Definition: utils.c:2159
UCHAR inb_p(PUCHAR port)
Definition: utils.c:2179
#define ENTER_FUNC()
Definition: debug.h:42

Referenced by ConsoleInitVga().

◆ InvertLineVga()

void InvertLineVga ( ULONG  line)

Definition at line 322 of file vga.c.

323 {
324  ULONG i;
326  USHORT attr;
327 
329  {
331  attr = ((attr & 0x07)<<4) | ((attr & 0xF0)>>4);
332  attr <<= 8;
333  for(i=0;i<GLOBAL_SCREEN_WIDTH;i++)
334  p[line*GLOBAL_SCREEN_WIDTH + i] = (p[line*GLOBAL_SCREEN_WIDTH + i] & 0x00FF) | attr;
335  }
336 }
ULONG GLOBAL_SCREEN_WIDTH
Definition: hardware.c:62
ULONG GLOBAL_SCREEN_HEIGHT
Definition: hardware.c:62
PUCHAR pScreenBufferVga
Definition: vga.c:105
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
Definition: glfuncs.h:248
struct _attr attr
Definition: parser.c:48
Definition: cookie.c:170
unsigned short USHORT
Definition: pedump.c:61
unsigned int ULONG
Definition: retypes.h:1
GLfloat GLfloat p
Definition: glext.h:8902
unsigned short * PUSHORT
Definition: retypes.h:2

Referenced by ConsoleInitVga().

◆ load_font()

void load_font ( UCHAR graph_table,
int  bEnter 
)

Definition at line 211 of file vga.c.

212 {
213  PUCHAR FontBase = pFontBufferVga;
214  int i,j;
215  map_font_memory();
216 
217  if(bEnter)
218  {
219 #ifdef VGA_EXTENDED
220  for (i=0; i < FONTENTRIES; i++)
221  for (j=0; j < 8; j++)
222  FontBase[i*32+j] = graph_table[i*BYTESPERFONT+j];
223 #else // VGA_EXTENDED
224  for (i=0; i < FONTENTRIES; i++)
225  for (j=0; j < 16; j++)
226  FontBase[i*32+j] = graph_table[i*BYTESPERFONT+(j/2)] << (j&1);
227 #endif // VGA_EXTENDED
228  }
229  else
230  {
231  for (i=0; i < FONTENTRIES; i++)
232  for (j=0; j < 16; j++)
233  FontBase[i*32+j] = graph_table[i*16+j];
234  }
235 
237 }
unsigned char * PUCHAR
Definition: retypes.h:3
void map_font_memory(void)
Definition: vga.c:159
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
Definition: glfuncs.h:248
void unmap_font_memory(void)
Definition: vga.c:183
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
Definition: glfuncs.h:250
#define BYTESPERFONT
Definition: vga.c:194
PUCHAR pFontBufferVga
Definition: vga.c:109
#define FONTENTRIES
Definition: vga.c:195

Referenced by RestoreGraphicsStateVga(), and SaveGraphicsStateVga().

◆ map_font_memory()

void map_font_memory ( void  )

Definition at line 159 of file vga.c.

160 {
167 
168 
169  /* Make sure set/reset enable is off */
171  /* Select read plane 2 */
173  /* Make sure write and read mode = 0 */
175  /* Set mapping to 64K at a000:0 & turn off odd/even at the graphics reg */
177  /* Set sequencer plane to 2 */
179  /* Turn off odd/even at the sequencer */
181 }
#define GRREGREADMAPSEL
Definition: vga.c:153
unsigned char oldgraphicssetresetenable
Definition: vga.c:134
#define SQREGMAPMASK
Definition: vga.c:154
unsigned char oldsqregmemory
Definition: vga.c:133
#define SEQUENCER
Definition: vga.c:70
#define GRREGMISC
Definition: vga.c:157
#define GRAPHICS
Definition: vga.c:72
#define SQREGMEMORY
Definition: vga.c:155
unsigned char read_vga_reg(int port, int reg)
Definition: vga.c:137
#define GRREGWRMODE
Definition: vga.c:156
unsigned char oldsqregmapmask
Definition: vga.c:132
unsigned char oldgraphicsmode
Definition: vga.c:130
unsigned char oldgraphicsreadmapsel
Definition: vga.c:135
unsigned char oldgraphicsmisc
Definition: vga.c:131
#define GRREGENABLESETRESET
Definition: vga.c:152
void write_vga_reg(int port, unsigned char reg, unsigned char value)
Definition: vga.c:143

Referenced by load_font(), and save_font().

◆ pice_restore_current_registers()

void pice_restore_current_registers ( void  )

Referenced by RestoreGraphicsStateVga().

◆ pice_save_current_registers()

void pice_save_current_registers ( void  )

Referenced by SaveGraphicsStateVga().

◆ pice_set_mode_3_80x25()

void pice_set_mode_3_80x25 ( void  )

Referenced by SaveGraphicsStateVga().

◆ pice_set_mode_3_80x50()

void pice_set_mode_3_80x50 ( void  )

Referenced by SaveGraphicsStateVga().

◆ PrintCursorVga()

void PrintCursorVga ( BOOLEAN  bForce)

Definition at line 386 of file vga.c.

387 {
388  static ULONG count=0;
389  USHORT charoffset;
390  UCHAR data;
392 
393  if( count++>250 )
394  {
395  count=0;
396 
397  charoffset = (y* GLOBAL_SCREEN_WIDTH + x);
398 
399  outb_p(0x0e,0x3d4);
400  data=(UCHAR)((charoffset>>8)&0xFF);
401  outb_p(data,0x3d5);
402 
403  outb_p(0x0f,0x3d4);
404  data=(UCHAR)(charoffset & 0xFF);
405  outb_p(data,0x3d5);
406  }
407 }
ULONG GLOBAL_SCREEN_WIDTH
Definition: hardware.c:62
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
void outb_p(UCHAR data, PUCHAR port)
Definition: utils.c:2159
WINDOW wWindow[4]
Definition: hardware.c:59
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
unsigned char UCHAR
Definition: xmlstorage.h:181
USHORT y
Definition: hardware.h:33
unsigned short USHORT
Definition: pedump.c:61
USHORT usCurX
Definition: hardware.h:34
USHORT usCurY
Definition: hardware.h:34
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
unsigned int ULONG
Definition: retypes.h:1

Referenced by ConsoleInitVga().

◆ PrintGrafVga()

void PrintGrafVga ( ULONG  x,
ULONG  y,
UCHAR  c 
)

Definition at line 263 of file vga.c.

264 {
265  ((PUSHORT)pScreenBufferVga)[y*GLOBAL_SCREEN_WIDTH + x] = (USHORT)((attr.u.Asuchar<<8)|c);
266 }
ULONG GLOBAL_SCREEN_WIDTH
Definition: hardware.c:62
PUCHAR pScreenBufferVga
Definition: vga.c:105
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
Definition: cookie.c:170
unsigned short USHORT
Definition: pedump.c:61
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define c
Definition: ke_i.h:80
unsigned short * PUSHORT
Definition: retypes.h:2

Referenced by ConsoleInitVga().

◆ PrintLogoVga()

void PrintLogoVga ( BOOLEAN  bShow)

Definition at line 376 of file vga.c.

377 {
378  NOT_IMPLEMENTED();
379 }
#define NOT_IMPLEMENTED()
Definition: hardware.h:153

Referenced by ConsoleInitVga().

◆ read_vga_reg()

unsigned char read_vga_reg ( int  port,
int  reg 
)

Definition at line 137 of file vga.c.

138 {
139  outportb(port,reg);
140  return(inportb(port+1));
141 }
UCHAR inportb(PUCHAR port)
Definition: utils.c:2174
void outportb(PUCHAR port, UCHAR data)
Definition: utils.c:2154
static int reg
Definition: i386-dis.c:1275
USHORT port
Definition: uri.c:227

Referenced by map_font_memory().

◆ RestoreGraphicsStateVga()

void RestoreGraphicsStateVga ( void  )

Definition at line 452 of file vga.c.

453 {
454  UCHAR data;
455 
456  // unprotect crtc regs 0-7
457  outb_p(0x11,0x3d4);
458  data = inb_p(0x3d5);
459  outb_p(data & 0x7F,0x3d5);
460 
461  // restore original regs
463 
464  // load a font
466 
468  // copy screen to the console
470  // copy the temp area to the screen
472 }
void load_font(UCHAR *graph_table, int bEnter)
Definition: vga.c:211
void pice_restore_current_registers(void)
PUCHAR pScreenBufferVga
Definition: vga.c:105
#define SCREEN_BUFFER_SIZE
Definition: vga.c:64
void outb_p(UCHAR data, PUCHAR port)
Definition: utils.c:2159
UCHAR cGraphTable2[16 *256]
Definition: vga.c:54
PUCHAR pScreenBufferTempVga
Definition: vga.c:107
PUCHAR pScreenBufferSaveVga
Definition: vga.c:106
void PICE_memcpy(void *t, void *s, int sz)
Definition: utils.c:239
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
unsigned char UCHAR
Definition: xmlstorage.h:181
PUCHAR pScreenBufferHardwareVga
Definition: vga.c:108
UCHAR inb_p(PUCHAR port)
Definition: utils.c:2179

Referenced by ConsoleInitVga().

◆ save_font()

void save_font ( UCHAR graph_table)

Definition at line 198 of file vga.c.

199 {
200  PUCHAR FontBase = pFontBufferVga;
201  int i,j;
202  map_font_memory();
203 
204  for (i=0; i < FONTENTRIES; i++)
205  for (j=0; j < 16; j++)
206  graph_table[i*16+j] = FontBase[i*32+j];
207 
209 }
unsigned char * PUCHAR
Definition: retypes.h:3
void map_font_memory(void)
Definition: vga.c:159
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
Definition: glfuncs.h:248
void unmap_font_memory(void)
Definition: vga.c:183
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
Definition: glfuncs.h:250
PUCHAR pFontBufferVga
Definition: vga.c:109
#define FONTENTRIES
Definition: vga.c:195

Referenced by SaveGraphicsStateVga().

◆ SaveGraphicsStateVga()

void SaveGraphicsStateVga ( void  )

Definition at line 413 of file vga.c.

414 {
415  UCHAR data;
416 
417  // save current regs
419 
420  // unprotect crtc regs 0-7
421  outb_p(0x11,0x3d4);
422  data = inb_p(0x3d5);
423  outb_p(data & 0x7F,0x3d5);
424 
425  // save current font
427 
428  // restore original regs
429 #ifdef VGA_EXTENDED
431 #else
433 #endif
434 
435  // load a font
437 
438  // copy the screen content to temp area
440  // copy the console to the screen
442  // save original pointer
444  // pScreenBufferVga now points to screen
446 }
void save_font(UCHAR *graph_table)
Definition: vga.c:198
void load_font(UCHAR *graph_table, int bEnter)
Definition: vga.c:211
PUCHAR pScreenBufferVga
Definition: vga.c:105
void pice_save_current_registers(void)
#define SCREEN_BUFFER_SIZE
Definition: vga.c:64
void outb_p(UCHAR data, PUCHAR port)
Definition: utils.c:2159
UCHAR cGraphTable2[16 *256]
Definition: vga.c:54
PUCHAR pScreenBufferTempVga
Definition: vga.c:107
PUCHAR pScreenBufferSaveVga
Definition: vga.c:106
void PICE_memcpy(void *t, void *s, int sz)
Definition: utils.c:239
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
unsigned char UCHAR
Definition: xmlstorage.h:181
void pice_set_mode_3_80x25(void)
PUCHAR pScreenBufferHardwareVga
Definition: vga.c:108
UCHAR inb_p(PUCHAR port)
Definition: utils.c:2179
void pice_set_mode_3_80x50(void)
UCHAR cGraphTable[8 *256]
Definition: charset.h:3

Referenced by ConsoleInitVga().

◆ SetBackgroundColorVga()

void SetBackgroundColorVga ( ECOLORS  col)

Definition at line 253 of file vga.c.

254 {
255  attr.u.bits.bkcol = col;
256  attr.u.bits.blink = 0;
257 }
Definition: cookie.c:170

Referenced by ConsoleInitVga().

◆ SetForegroundColorVga()

void SetForegroundColorVga ( ECOLORS  col)

Definition at line 243 of file vga.c.

244 {
245  attr.u.bits.fgcol = col;
246  attr.u.bits.blink = 0;
247 }
Definition: cookie.c:170

Referenced by ConsoleInitVga().

◆ ShowCursorVga()

void ShowCursorVga ( void  )

Definition at line 273 of file vga.c.

274 {
275  ENTER_FUNC();
276 
278 
279  outb_p(0x0a,0x3d4);
280  outb_p(inb_p(0x3d5)&~0x20,0x3d5);
281 
282  LEAVE_FUNC();
283 }
BOOLEAN bCursorEnabled
Definition: hardware.c:51
#define TRUE
Definition: types.h:120
#define LEAVE_FUNC()
Definition: debug.h:43
void outb_p(UCHAR data, PUCHAR port)
Definition: utils.c:2159
UCHAR inb_p(PUCHAR port)
Definition: utils.c:2179
#define ENTER_FUNC()
Definition: debug.h:42

Referenced by ConsoleInitVga().

◆ unmap_font_memory()

void unmap_font_memory ( void  )

Definition at line 183 of file vga.c.

184 {
191 }
#define GRREGREADMAPSEL
Definition: vga.c:153
unsigned char oldgraphicssetresetenable
Definition: vga.c:134
#define SQREGMAPMASK
Definition: vga.c:154
unsigned char oldsqregmemory
Definition: vga.c:133
#define SEQUENCER
Definition: vga.c:70
#define GRREGMISC
Definition: vga.c:157
#define GRAPHICS
Definition: vga.c:72
#define SQREGMEMORY
Definition: vga.c:155
#define GRREGWRMODE
Definition: vga.c:156
unsigned char oldsqregmapmask
Definition: vga.c:132
unsigned char oldgraphicsmode
Definition: vga.c:130
unsigned char oldgraphicsreadmapsel
Definition: vga.c:135
unsigned char oldgraphicsmisc
Definition: vga.c:131
#define GRREGENABLESETRESET
Definition: vga.c:152
void write_vga_reg(int port, unsigned char reg, unsigned char value)
Definition: vga.c:143

Referenced by load_font(), and save_font().

◆ write_vga_reg()

void write_vga_reg ( int  port,
unsigned char  reg,
unsigned char  value 
)

Definition at line 143 of file vga.c.

144 {
145  outportb(port,reg);
146  outportb(port+1,value);
147 }
void outportb(PUCHAR port, UCHAR data)
Definition: utils.c:2154
static int reg
Definition: i386-dis.c:1275
USHORT port
Definition: uri.c:227

Referenced by map_font_memory(), and unmap_font_memory().

Variable Documentation

◆ attr

Referenced by InvertLineVga().

◆ cGraphTable

UCHAR cGraphTable[8 *256]

Definition at line 3 of file charset.h.

Referenced by PrintGrafHercules(), and SaveGraphicsStateVga().

◆ cGraphTable2

UCHAR cGraphTable2[16 *256]

Definition at line 54 of file vga.c.

Referenced by RestoreGraphicsStateVga(), and SaveGraphicsStateVga().

◆ offset_a

UCHAR offset_a = 0

Definition at line 111 of file vga.c.

◆ offset_c

UCHAR offset_c = 0

Definition at line 112 of file vga.c.

◆ offset_d

UCHAR offset_d = 0

Definition at line 112 of file vga.c.

◆ offset_e

UCHAR offset_e = 0

Definition at line 113 of file vga.c.

◆ offset_f

UCHAR offset_f = 0

Definition at line 113 of file vga.c.

◆ oldgraphicsmisc

unsigned char oldgraphicsmisc

Definition at line 131 of file vga.c.

Referenced by map_font_memory(), and unmap_font_memory().

◆ oldgraphicsmode

unsigned char oldgraphicsmode

Definition at line 130 of file vga.c.

Referenced by map_font_memory(), and unmap_font_memory().

◆ oldgraphicsreadmapsel

unsigned char oldgraphicsreadmapsel

Definition at line 135 of file vga.c.

Referenced by map_font_memory(), and unmap_font_memory().

◆ oldgraphicssetresetenable

unsigned char oldgraphicssetresetenable

Definition at line 134 of file vga.c.

Referenced by map_font_memory(), and unmap_font_memory().

◆ oldsqregmapmask

unsigned char oldsqregmapmask

Definition at line 132 of file vga.c.

Referenced by map_font_memory(), and unmap_font_memory().

◆ oldsqregmemory

unsigned char oldsqregmemory

Definition at line 133 of file vga.c.

Referenced by map_font_memory(), and unmap_font_memory().

◆ pFontBufferVga

PUCHAR pFontBufferVga = NULL

Definition at line 109 of file vga.c.

Referenced by ConsoleInitVga(), ConsoleShutdownVga(), load_font(), and save_font().

◆ pScreenBufferHardwareVga

PUCHAR pScreenBufferHardwareVga

◆ pScreenBufferSaveVga

PUCHAR pScreenBufferSaveVga = NULL

Definition at line 106 of file vga.c.

Referenced by RestoreGraphicsStateVga(), and SaveGraphicsStateVga().

◆ pScreenBufferTempVga

PUCHAR pScreenBufferTempVga

◆ pScreenBufferVga

◆ wWindowVga

WINDOW wWindowVga[4]
Initial value:
=
{
{1,3,1,0,FALSE},
{5,4,1,0,FALSE},
{10,24,1,0,FALSE},
{35,14,1,0,FALSE}
}

Definition at line 88 of file vga.c.

Referenced by ConsoleInitVga().