source: rtems/c/src/lib/libbsp/i386/pc386/include/crt.h @ 90cf4cc

4.104.114.84.95
Last change on this file since 90cf4cc was 90cf4cc, checked in by Joel Sherrill <joel.sherrill@…>, on May 21, 1998 at 4:49:51 PM

Corrected license notices per Eric's permission

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*
2 * crt.h  - This file contains definitions for constants related to PC console.
3 *          More information can be found at
4 *      <http://millenium.atcg.com/~taco/helppc/tables.html>
5 *
6 * Copyright (C) 1998  Eric Valette (valette@crf.canon.fr)
7 *                     Canon Centre Recherche France.
8 *
9 *  The license and distribution terms for this file may be
10 *  found in found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 * $Id$
14 */
15
16#ifndef _CRT_H
17#define _CRT_H
18
19/*
20 * Bitmap video origins in text mode.
21 */
22
23        /* In monochrome */
24#define V_MONO  0xb0000
25        /* In color      */
26#define V_COLOR 0xb8000
27
28
29/*
30 * Video Option Byte location. It must be maintained
31 * by the BIOS.
32 */
33#define VIDEO_MODE_ADDR                 0x449
34/*
35 * Video controller base IO address location in
36 * BIOS data area
37 */
38#define DISPLAY_CRT_BASE_IO_ADDR        0x463
39/*
40 * Number of collums and lines locations for the
41 * actual video Configuration
42 */
43#define NB_MAX_COL_ADDR                 0x44a
44#define NB_MAX_ROW_ADDR                 0x484
45
46    /*
47     * Miscellaneous information set by the BIOS in offset video_mode,
48     */
49
50#   define VGAMODE7     0x7     /* VGA mode 7 */
51
52    /* Color codes in text mode for background and foreground. */
53#define BLACK           0x0
54#define BLUE            0x1
55#define GREEN           0x2
56#define CYAN            0x3
57#define RED             0x4
58#define MAGENTA         0x5
59#define BROWN           0x6
60#define WHITE           0x7
61
62#define GRAY            0x8
63#define LT_BLUE         0x9
64#define LT_GREEN        0xa
65#define LT_CYAN         0xb
66#define LT_RED          0xc
67#define LT_MAGENTA      0xd
68#define YELLOW          0xe
69#define LT_WHITE        0xf
70
71#define BLINK           0x8     /* Mask used to determine blinking */
72#define OFF             0
73#define ON              1
74
75
76/*
77 * CRT Controller register offset definitions
78 */
79
80#   define CC_CURSSTART 0x0a    /* Cursor start scan line */
81#   define CC_CURSEND   0x0b    /* Cursor end scan line */
82#   define CC_STARTADDRHI 0x0c  /* start video ram addr msb */
83#   define CC_STARTADDRLO 0x0d  /* start video ram lsb */
84#   define CC_CURSHIGH  0x0e    /* Cursor high location (8 msb) */
85#   define CC_CURSLOW   0x0f    /* Cursor low location (8 msb) */
86#   define CC_VRETSTART 0x10    /* vertical synchro start lsb */
87#   define CC_VRETEND   0x11    /* vertical syn end (also it control) */
88#   define CC_VDISPEND  0x12    /* vertical display end lsb register */
89
90#endif /* _CRT_H */
Note: See TracBrowser for help on using the repository browser.