Commit | Line | Data |
---|---|---|
2d415723 KB |
1 | /* |
2 | * Copyright (c) 1988 Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * Redistribution and use in source and binary forms are permitted | |
b36fc510 KB |
6 | * provided that the above copyright notice and this paragraph are |
7 | * duplicated in all such forms and that any documentation, | |
8 | * advertising materials, and other materials related to such | |
9 | * distribution and use acknowledge that the software was developed | |
10 | * by the University of California, Berkeley. The name of the | |
11 | * University may not be used to endorse or promote products derived | |
12 | * from this software without specific prior written permission. | |
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
2d415723 | 16 | * |
b36fc510 | 17 | * @(#)video.h 3.3 (Berkeley) %G% |
2d415723 KB |
18 | */ |
19 | ||
7c599191 GM |
20 | /* |
21 | * This is a header file describing the interface via int 10H to the | |
22 | * video subsystem. | |
23 | */ | |
24 | ||
25 | #define BIOS_VIDEO 0x10 | |
26 | ||
27 | typedef enum { | |
28 | SetMode = 0, | |
29 | SetCursorType, | |
30 | SetCursorPosition, | |
31 | ReadCursorPosition, | |
32 | ReadLightPenPosition, | |
33 | SelectActiveDisplayPage, | |
34 | ScrollActivePageUp, | |
35 | ScrollActivePageDown, | |
36 | ReadAttribute_Character, | |
2d734a9d GM |
37 | WriteAttribute_Character, |
38 | WriteCharacterOnly, | |
7c599191 GM |
39 | SetColorPalette, |
40 | WriteDot, | |
41 | ReadDot, | |
42 | WriteTeletypeToActivePage, | |
43 | CurrentVideoState, | |
44 | Reserved16, | |
45 | Reserved17, | |
46 | Reserved18, | |
47 | WriteString | |
48 | } VideoOperationsType; | |
49 | ||
50 | typedef enum { | |
51 | bw_40x25 = 0, | |
52 | color_40x25, | |
53 | bw_80x25, | |
54 | color_80x25, | |
55 | color_320x200, | |
56 | bw_320x200, | |
57 | bw_640x200, | |
58 | internal_bw_80x25 | |
59 | } VideoModeType; |