ReactOS  0.4.13-dev-479-gec9c8fd
vga.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BOOLEAN ConsoleInitVga (void)
 
void ConsoleShutdownVga (void)
 

Function Documentation

◆ 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
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
struct _LARGE_INTEGER::@2199 u
void(* HatchLine)(ULONG line)
Definition: hardware.h:46
void SetBackgroundColorVga(ECOLORS col)
Definition: vga.c:253
PUCHAR pScreenBufferHardwareVga
Definition: vga.c:108
static PVOID FrameBuffer
Definition: xboxvideo.c:24
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
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().