FreeBSD/Linux Kernel Cross Reference
sys/i386at/cram.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: cram.h,v $
29 * Revision 2.5 91/05/14 16:22:13 mrt
30 * Correcting copyright
31 *
32 * Revision 2.4 91/02/05 17:16:50 mrt
33 * Changed to new Mach copyright
34 * [91/02/01 17:42:45 mrt]
35 *
36 * Revision 2.3 90/11/26 14:49:30 rvb
37 * jsb bet me to XMK34, sigh ...
38 * [90/11/26 rvb]
39 * Synched 2.5 & 3.0 at I386q (r1.5.1.3) & XMK35 (r2.3)
40 * [90/11/15 rvb]
41 *
42 * Revision 2.2 90/05/03 15:41:48 dbg
43 * First checkin.
44 *
45 * Revision 1.5.1.2 90/02/28 15:49:23 rvb
46 * Fix numerous typo's in Olivetti disclaimer.
47 * [90/02/28 rvb]
48 *
49 * Revision 1.5.1.1 90/01/08 13:31:57 rvb
50 * Add Olivetti copyright.
51 * [90/01/08 rvb]
52 *
53 * Revision 1.5 89/09/25 12:26:32 rvb
54 * File was provided by Intel 9/18/89.
55 * [89/09/23 rvb]
56 *
57 */
58
59 /*
60 * cram.h
61 */
62
63 /*
64 Copyright 1988, 1989 by Olivetti Advanced Technology Center, Inc.,
65 Cupertino, California.
66
67 All Rights Reserved
68
69 Permission to use, copy, modify, and distribute this software and
70 its documentation for any purpose and without fee is hereby
71 granted, provided that the above copyright notice appears in all
72 copies and that both the copyright notice and this permission notice
73 appear in supporting documentation, and that the name of Olivetti
74 not be used in advertising or publicity pertaining to distribution
75 of the software without specific, written prior permission.
76
77 OLIVETTI DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
78 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
79 IN NO EVENT SHALL OLIVETTI BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
80 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
81 LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
82 NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUR OF OR IN CONNECTION
83 WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
84 */
85
86 /*
87 * outb(CMOS_ADDR, addr);
88 * result = inb(CMOS_DATA);
89 *
90 * where "addr" tells what value you want to read (some are listed
91 * below). Interrupts should be disabled while you do this.
92 */
93
94 /* I/O ports */
95
96 #define CMOS_ADDR 0x70 /* port for CMOS ram address */
97 #define CMOS_DATA 0x71 /* port for CMOS ram data */
98
99
100 /* Addresses, related masks, and potential results */
101
102 #define CMOS_EB 0x14 /* read Equipment Byte */
103 #define CM_SCRMSK 0x30 /* mask for EB query to get screen */
104 #define CM_EGA_VGA 0x00 /* "not CGA or MONO" */
105 #define CM_CGA_40 0x10
106 #define CM_CGA_80 0x20
107 #define CM_MONO_80 0x30
108
Cache object: 5f0bc8f0944b3c35e875a308e5914dcd
|