ReactOS  0.4.14-dev-604-gcfdd483
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 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 52 of file precomp.h.

◆ __inpw

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

Definition at line 55 of file precomp.h.

◆ __outpb

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

Definition at line 58 of file precomp.h.

◆ __outpw

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

Definition at line 61 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.

Typedef Documentation

◆ BITMAPINFOHEADER

◆ PBITMAPINFOHEADER

Function Documentation

◆ InitializePalette()

VOID NTAPI InitializePalette ( VOID  )

Definition at line 295 of file vga.c.

296 {
297  ULONG PaletteEntry[16] = {0x000000,
298  0x000020,
299  0x002000,
300  0x002020,
301  0x200000,
302  0x200020,
303  0x202000,
304  0x202020,
305  0x303030,
306  0x00003F,
307  0x003F00,
308  0x003F3F,
309  0x3F0000,
310  0x3F003F,
311  0x3F3F00,
312  0x3F3F3F};
313  ULONG i;
314 
315  /* Loop all the entries and set their palettes */
316  for (i = 0; i < 16; i++) SetPaletteEntry(i, PaletteEntry[i]);
317 }
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:281
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 68 of file vga.c.

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

◆ curr_y

ULONG curr_y

Definition at line 69 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 66 of file vga.c.

Referenced by VgaInterpretCmdStream(), and VidInitialize().