]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
d7e50217 | 6 | * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. |
1c79356b | 7 | * |
d7e50217 A |
8 | * This file contains Original Code and/or Modifications of Original Code |
9 | * as defined in and that are subject to the Apple Public Source License | |
10 | * Version 2.0 (the 'License'). You may not use this file except in | |
11 | * compliance with the License. Please obtain a copy of the License at | |
12 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
13 | * file. | |
14 | * | |
15 | * The Original Code and all software distributed under the License are | |
16 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
1c79356b A |
17 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
18 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
d7e50217 A |
19 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
20 | * Please see the License for the specific language governing rights and | |
21 | * limitations under the License. | |
1c79356b A |
22 | * |
23 | * @APPLE_LICENSE_HEADER_END@ | |
24 | */ | |
25 | /* | |
26 | * @OSF_COPYRIGHT@ | |
27 | */ | |
28 | /* | |
29 | * HISTORY | |
30 | * | |
31 | * Revision 1.1.1.1 1998/09/22 21:05:38 wsanchez | |
32 | * Import of Mac OS X kernel (~semeria) | |
33 | * | |
34 | * Revision 1.1.1.1 1998/03/07 02:25:39 wsanchez | |
35 | * Import of OSF Mach kernel (~mburg) | |
36 | * | |
37 | * Revision 1.1.6.1 1994/09/23 01:33:48 ezf | |
38 | * change marker to not FREE | |
39 | * [1994/09/22 21:16:06 ezf] | |
40 | * | |
41 | * Revision 1.1.2.2 1993/06/02 23:19:06 jeffc | |
42 | * Added to OSF/1 R1.3 from NMK15.0. | |
43 | * [1993/06/02 21:01:43 jeffc] | |
44 | * | |
45 | * Revision 1.1 1992/09/30 02:26:37 robert | |
46 | * Initial revision | |
47 | * | |
48 | * $EndLog$ | |
49 | */ | |
50 | /* CMU_HIST */ | |
51 | /* | |
52 | * Revision 2.5 91/05/14 16:22:13 mrt | |
53 | * Correcting copyright | |
54 | * | |
55 | * Revision 2.4 91/02/05 17:16:50 mrt | |
56 | * Changed to new Mach copyright | |
57 | * [91/02/01 17:42:45 mrt] | |
58 | * | |
59 | * Revision 2.3 90/11/26 14:49:30 rvb | |
60 | * jsb bet me to XMK34, sigh ... | |
61 | * [90/11/26 rvb] | |
62 | * Synched 2.5 & 3.0 at I386q (r1.5.1.3) & XMK35 (r2.3) | |
63 | * [90/11/15 rvb] | |
64 | * | |
65 | * Revision 2.2 90/05/03 15:41:48 dbg | |
66 | * First checkin. | |
67 | * | |
68 | * Revision 1.5.1.2 90/02/28 15:49:23 rvb | |
69 | * Fix numerous typo's in Olivetti disclaimer. | |
70 | * [90/02/28 rvb] | |
71 | * | |
72 | * Revision 1.5.1.1 90/01/08 13:31:57 rvb | |
73 | * Add Olivetti copyright. | |
74 | * [90/01/08 rvb] | |
75 | * | |
76 | * Revision 1.5 89/09/25 12:26:32 rvb | |
77 | * File was provided by Intel 9/18/89. | |
78 | * [89/09/23 rvb] | |
79 | * | |
80 | */ | |
81 | /* CMU_ENDHIST */ | |
82 | /* | |
83 | * Mach Operating System | |
84 | * Copyright (c) 1991,1990,1989 Carnegie Mellon University | |
85 | * All Rights Reserved. | |
86 | * | |
87 | * Permission to use, copy, modify and distribute this software and its | |
88 | * documentation is hereby granted, provided that both the copyright | |
89 | * notice and this permission notice appear in all copies of the | |
90 | * software, derivative works or modified versions, and any portions | |
91 | * thereof, and that both notices appear in supporting documentation. | |
92 | * | |
93 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" | |
94 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR | |
95 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. | |
96 | * | |
97 | * Carnegie Mellon requests users of this software to return to | |
98 | * | |
99 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU | |
100 | * School of Computer Science | |
101 | * Carnegie Mellon University | |
102 | * Pittsburgh PA 15213-3890 | |
103 | * | |
104 | * any improvements or extensions that they make and grant Carnegie Mellon | |
105 | * the rights to redistribute these changes. | |
106 | */ | |
107 | /* | |
108 | */ | |
109 | ||
110 | /* | |
111 | * cram.h | |
112 | */ | |
113 | ||
114 | /* | |
115 | * Copyright 1988, 1989 by Olivetti Advanced Technology Center, Inc., | |
116 | * Cupertino, California. | |
117 | * | |
118 | * All Rights Reserved | |
119 | * | |
120 | * Permission to use, copy, modify, and distribute this software and | |
121 | * its documentation for any purpose and without fee is hereby | |
122 | * granted, provided that the above copyright notice appears in all | |
123 | * copies and that both the copyright notice and this permission notice | |
124 | * appear in supporting documentation, and that the name of Olivetti | |
125 | * not be used in advertising or publicity pertaining to distribution | |
126 | * of the software without specific, written prior permission. | |
127 | * | |
128 | * OLIVETTI DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE | |
129 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, | |
130 | * IN NO EVENT SHALL OLIVETTI BE LIABLE FOR ANY SPECIAL, INDIRECT, OR | |
131 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | |
132 | * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, | |
133 | * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUR OF OR IN CONNECTION | |
134 | * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
135 | * | |
136 | */ | |
137 | ||
138 | /* | |
139 | * outb(CMOS_ADDR, addr); | |
140 | * result = inb(CMOS_DATA); | |
141 | * | |
142 | * where "addr" tells what value you want to read (some are listed | |
143 | * below). Interrupts should be disabled while you do this. | |
144 | */ | |
145 | ||
146 | /* I/O ports */ | |
147 | ||
148 | #define CMOS_ADDR 0x70 /* port for CMOS ram address */ | |
149 | #define CMOS_DATA 0x71 /* port for CMOS ram data */ | |
150 | ||
151 | ||
152 | /* Addresses, related masks, and potential results */ | |
153 | ||
154 | #define CMOS_EB 0x14 /* read Equipment Byte */ | |
155 | #define CM_SCRMSK 0x30 /* mask for EB query to get screen */ | |
156 | #define CM_EGA_VGA 0x00 /* "not CGA or MONO" */ | |
157 | #define CM_CGA_40 0x10 | |
158 | #define CM_CGA_80 0x20 | |
159 | #define CM_MONO_80 0x30 | |
160 |