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