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

4.115
Last change on this file since ba64905 was ba64905, checked in by Joel Sherrill <joel.sherrill@…>, on 01/28/11 at 20:35:34

2011-01-28 Joel Sherrill <joel.sherrilL@…>

  • clock/rtc.c, console/console.c, console/inch.c, console/outch.c, include/bsp.h, include/crt.h, ne2000/ne2000.c, startup/bspcmdline.c, startup/bspstart.c, startup/ldsegs.S, timer/timer.c, timer/timerisr.S: Fix typo where license said found in found in.
  • 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 the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
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 * Video Option Byte location. It must be maintained
30 * by the BIOS.
31 */
32#define VIDEO_MODE_ADDR                 0x449
33/*
34 * Video controller base IO address location in
35 * BIOS data area
36 */
37#define DISPLAY_CRT_BASE_IO_ADDR        0x463
38/*
39 * Number of collums and lines locations for the
40 * actual video Configuration
41 */
42#define NB_MAX_COL_ADDR                 0x44a
43#define NB_MAX_ROW_ADDR                 0x484
44
45    /*
46     * Miscellaneous information set by the BIOS in offset video_mode,
47     */
48
49#   define VGAMODE7     0x7     /* VGA mode 7 */
50
51    /* Color codes in text mode for background and foreground. */
52#define BLACK           0x0
53#define BLUE            0x1
54#define GREEN           0x2
55#define CYAN            0x3
56#define RED             0x4
57#define MAGENTA         0x5
58#define BROWN           0x6
59#define WHITE           0x7
60
61#define GRAY            0x8
62#define LT_BLUE         0x9
63#define LT_GREEN        0xa
64#define LT_CYAN         0xb
65#define LT_RED          0xc
66#define LT_MAGENTA      0xd
67#define YELLOW          0xe
68#define LT_WHITE        0xf
69
70#define BLINK           0x8     /* Mask used to determine blinking */
71#define OFF             0
72#define ON              1
73
74/*
75 * CRT Controller register offset definitions
76 */
77
78#   define CC_CURSSTART 0x0a    /* Cursor start scan line */
79#   define CC_CURSEND   0x0b    /* Cursor end scan line */
80#   define CC_STARTADDRHI 0x0c  /* start video ram addr msb */
81#   define CC_STARTADDRLO 0x0d  /* start video ram lsb */
82#   define CC_CURSHIGH  0x0e    /* Cursor high location (8 msb) */
83#   define CC_CURSLOW   0x0f    /* Cursor low location (8 msb) */
84#   define CC_VRETSTART 0x10    /* vertical synchro start lsb */
85#   define CC_VRETEND   0x11    /* vertical syn end (also it control) */
86#   define CC_VDISPEND  0x12    /* vertical display end lsb register */
87
88#endif /* _CRT_H */
Note: See TracBrowser for help on using the repository browser.