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