]> Joshua Wise's Git repositories - netwatch.git/blame_incremental - include/video_defines.h
put the stack in bss to save space on disk
[netwatch.git] / include / video_defines.h
... / ...
CommitLineData
1/*
2 * Name: video_defines.h
3 * Date: January 15th 2003
4 * Author: Steve Muckle <smuckle@andrew.cmu.edu>
5 *
6 * Description:
7 *
8 * Important values for console output.
9 */
10
11#ifndef _VIDEO_DEFINES_H
12#define _VIDEO_DEFINES_H
13
14#define CONSOLE_MEM_BASE 0xB8000
15#define CONSOLE_WIDTH 80
16#define CONSOLE_HEIGHT 25
17
18/* Bits 3:0 are the foreground color, bits 6:4 are the
19 background color, and bit 7 specifies blink (annoying). */
20#define FGND_BLACK 0x0
21#define FGND_BLUE 0x1
22#define FGND_GREEN 0x2
23#define FGND_CYAN 0x3
24#define FGND_RED 0x4
25#define FGND_MAG 0x5
26#define FGND_BRWN 0x6
27#define FGND_LGRAY 0x7 /* Light gray. */
28#define FGND_DGRAY 0x8 /* Dark gray. */
29#define FGND_BBLUE 0x9 /* Bright blue. */
30#define FGND_BGRN 0xA /* Bright green. */
31#define FGND_BCYAN 0xB /* Bright cyan. */
32#define FGND_PINK 0xC
33#define FGND_BMAG 0xD /* Bright magenta. */
34#define FGND_YLLW 0xE
35#define FGND_WHITE 0xF
36
37#define BGND_BLACK 0x00
38#define BGND_BLUE 0x10
39#define BGND_GREEN 0x20
40#define BGND_CYAN 0x30
41#define BGND_RED 0x40
42#define BGND_MAG 0x50
43#define BGND_BRWN 0x60
44#define BGND_LGRAY 0x70 /* Light gray. */
45
46#define BLINK 0x80 /* Annoying. */
47
48/* --- CRTC Register Manipulation --- */
49#define CRTC_IDX_REG 0x3d4
50#define CRTC_DATA_REG 0x3d5
51#define CRTC_CURSOR_LSB_IDX 15
52#define CRTC_CURSOR_MSB_IDX 14
53
54#endif
This page took 0.026048 seconds and 4 git commands to generate.