Project

General

Profile

Statistics
| Revision:

root / lab4 / .minix-src / include / sys / video.h @ 13

History | View | Annotate | Download (1.61 KB)

1

    
2
#ifndef _SYS_VIDEO_H
3
#define _SYS_VIDEO_H 1
4

    
5
/* Definitions used by the console driver. */
6
#define MONO_BASE    0xB0000L   /* base of mono video memory */
7
#define COLOR_BASE   0xB8000L   /* base of color video memory */
8
#define MONO_SIZE     0x1000    /* 4K mono video memory */
9
#define COLOR_SIZE    0x4000    /* 16K color video memory */
10
#define EGA_SIZE      0x8000    /* EGA & VGA have at least 32K */
11
#define BLANK_COLOR   0x0700    /* determines cursor color on blank screen */
12
#define SCROLL_UP          0    /* scroll forward */
13
#define SCROLL_DOWN        1    /* scroll backward */
14
#define CONS_RAM_WORDS    80    /* video ram buffer size */
15
#define MAX_ESC_PARMS      4    /* number of escape sequence params allowed */
16

    
17
/* Constants relating to the controller chips. */
18
#define M_6845         0x3B4    /* port for 6845 mono */
19
#define C_6845         0x3D4    /* port for 6845 color */
20
#define INDEX              0    /* 6845's index register */
21
#define DATA               1    /* 6845's data register */
22
#define STATUS             6    /* 6845's status register */
23
#define VID_ORG           12    /* 6845's origin register */
24
#define CURSOR            14    /* 6845's cursor register */
25

    
26
/* Beeper. */
27
#define BEEP_FREQ     0x0533    /* value to put into timer to set beep freq */
28
#define B_TIME             3    /* length of CTRL-G beep is ticks */
29

    
30
/* definitions used for font management */
31
#define GA_SEQUENCER_INDEX      0x3C4
32
#define GA_SEQUENCER_DATA       0x3C5
33
#define GA_GRAPHICS_INDEX       0x3CE
34
#define GA_GRAPHICS_DATA        0x3CF
35
#define GA_VIDEO_ADDRESS        0xA0000L
36
#define GA_FONT_SIZE            8192
37

    
38
#endif