FreeNOS
Data Structures | Macros | Enumerations
video

This server provides support for video devices, including VGA. More...

Data Structures

class  VGA
 Video Graphics Array (VGA) support. More...
 

Macros

#define VGA_PADDR   (0xb8000)
 VGA physical video memory address. More...
 
#define VGA_IOADDR   0x3d4
 VGA I/O address port. More...
 
#define VGA_IODATA   0x3d5
 VGA I/O data port. More...
 
#define VGA_ATTR(front, back)   (((back & 0xf) << 4) | ((front & 0xf)))
 Encodes VGA attributes. More...
 
#define VGA_CHAR(ch, front, back)   ((VGA_ATTR(front,back) << 8) | (ch & 0xff))
 Encodes a character for VGA output. More...
 

Enumerations

enum  Colors {
  BLACK = 0, BLUE = 1, GREEN = 2, CYAN = 3,
  RED = 4, MAGENTA = 5, BROWN = 6, LIGHTGREY = 7,
  DARKGREY = 8, LIGHTBLUE = 9, LIGHTGREEN = 10, LIGHTCYAN = 11,
  LIGHTRED = 12, LIGHTMAGENTA = 13, LIGHTBROWN = 14, WHITE = 15
}
 VGA color attributes. More...
 

Detailed Description

This server provides support for video devices, including VGA.

Macro Definition Documentation

◆ VGA_ATTR

#define VGA_ATTR (   front,
  back 
)    (((back & 0xf) << 4) | ((front & 0xf)))

Encodes VGA attributes.

Parameters
frontFront text color.
backBackground color.

Definition at line 48 of file VGA.h.

◆ VGA_CHAR

#define VGA_CHAR (   ch,
  front,
  back 
)    ((VGA_ATTR(front,back) << 8) | (ch & 0xff))

Encodes a character for VGA output.

Parameters
chCharacter to encode.
frontFront text color.
backBackground color.

Definition at line 58 of file VGA.h.

◆ VGA_IOADDR

#define VGA_IOADDR   0x3d4

VGA I/O address port.

Definition at line 37 of file VGA.h.

◆ VGA_IODATA

#define VGA_IODATA   0x3d5

VGA I/O data port.

Definition at line 40 of file VGA.h.

◆ VGA_PADDR

#define VGA_PADDR   (0xb8000)

VGA physical video memory address.

Definition at line 34 of file VGA.h.

Enumeration Type Documentation

◆ Colors

enum Colors

VGA color attributes.

Enumerator
BLACK 
BLUE 
GREEN 
CYAN 
RED 
MAGENTA 
BROWN 
LIGHTGREY 
DARKGREY 
LIGHTBLUE 
LIGHTGREEN 
LIGHTCYAN 
LIGHTRED 
LIGHTMAGENTA 
LIGHTBROWN 
WHITE 

Definition at line 64 of file VGA.h.