ReactOS  0.4.14-dev-1296-g56aa513
precomp.h File Reference
#include <ntifs.h>
#include <ndk/halfuncs.h>
#include <drivers/bootvid/bootvid.h>
#include "vga.h"
Include dependency graph for precomp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tagBITMAPINFOHEADER
 

Macros

#define BOOTCHAR_HEIGHT   13
 
#define BOOTCHAR_WIDTH   8
 
#define SCREEN_WIDTH   640
 
#define SCREEN_HEIGHT   480
 
#define BI_RGB   0
 
#define BI_RLE4   2
 
#define __inpb(Port)   READ_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)))
 
#define __inpw(Port)   READ_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)))
 
#define __outpb(Port, Value)   WRITE_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)), (UCHAR)(Value))
 
#define __outpw(Port, Value)   WRITE_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)), (USHORT)(Value))
 

Typedefs

typedef struct tagBITMAPINFOHEADER BITMAPINFOHEADER
 
typedef struct tagBITMAPINFOHEADERPBITMAPINFOHEADER
 

Functions

VOID NTAPI InitializePalette (VOID)
 

Variables

ULONG curr_x
 
ULONG curr_y
 
ULONG_PTR VgaRegisterBase
 
ULONG_PTR VgaBase
 
USHORT AT_Initialization []
 
USHORT VGA_640x480 []
 
UCHAR FontData [256 *BOOTCHAR_HEIGHT]
 

Macro Definition Documentation

◆ __inpb

#define __inpb (   Port)    READ_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)))

Definition at line 59 of file precomp.h.

◆ __inpw

#define __inpw (   Port)    READ_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)))

Definition at line 62 of file precomp.h.

◆ __outpb

#define __outpb (   Port,
  Value 
)    WRITE_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)), (UCHAR)(Value))

Definition at line 65 of file precomp.h.

◆ __outpw

#define __outpw (   Port,
  Value 
)    WRITE_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)), (USHORT)(Value))

Definition at line 68 of file precomp.h.

◆ BI_RGB

#define BI_RGB   0

◆ BI_RLE4

#define BI_RLE4   2

◆ BOOTCHAR_HEIGHT

#define BOOTCHAR_HEIGHT   13

Definition at line 11 of file precomp.h.

◆ BOOTCHAR_WIDTH

#define BOOTCHAR_WIDTH   8

Definition at line 12 of file precomp.h.

◆ SCREEN_HEIGHT

#define SCREEN_HEIGHT   480

Definition at line 18 of file precomp.h.

◆ SCREEN_WIDTH

#define SCREEN_WIDTH   640

Definition at line 17 of file precomp.h.

Typedef Documentation

◆ BITMAPINFOHEADER

◆ PBITMAPINFOHEADER

Function Documentation

◆ InitializePalette()

VOID NTAPI InitializePalette ( VOID  )

Definition at line 291 of file vga.c.

292 {
293  ULONG PaletteEntry[16] = {0x000000,
294  0x000020,
295  0x002000,
296  0x002020,
297  0x200000,
298  0x200020,
299  0x202000,
300  0x202020,
301  0x303030,
302  0x00003F,
303  0x003F00,
304  0x003F3F,
305  0x3F0000,
306  0x3F003F,
307  0x3F3F00,
308  0x3F3F3F};
309  ULONG i;
310 
311  /* Loop all the entries and set their palettes */
312  for (i = 0; i < 16; i++) SetPaletteEntry(i, PaletteEntry[i]);
313 }
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
static VOID NTAPI SetPaletteEntry(IN ULONG Id, IN ULONG PaletteEntry)
Definition: vga.c:277
unsigned int ULONG
Definition: retypes.h:1

Referenced by VidResetDisplay().

Variable Documentation

◆ AT_Initialization

USHORT AT_Initialization[]

Definition at line 7 of file bootdata.c.

Referenced by VidInitialize(), and VidResetDisplay().

◆ curr_x

ULONG curr_x

Definition at line 67 of file vga.c.

Referenced by VidDisplayString(), VidInitialize(), VidResetDisplay(), and VidSetScrollRegion().

◆ curr_y

ULONG curr_y

Definition at line 68 of file vga.c.

Referenced by VidDisplayString(), VidInitialize(), VidResetDisplay(), and VidSetScrollRegion().

◆ FontData

UCHAR FontData[256 *BOOTCHAR_HEIGHT]

Definition at line 9 of file fontdata.c.

Referenced by DisplayCharacter(), and VgaWriteTextModeFont().

◆ VGA_640x480

USHORT VGA_640x480[]

Definition at line 38 of file bootdata.c.

Referenced by VidInitialize(), and VidResetDisplay().

◆ VgaBase

◆ VgaRegisterBase

ULONG_PTR VgaRegisterBase

Definition at line 65 of file vga.c.

Referenced by VgaInterpretCmdStream(), and VidInitialize().