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