Debian Codegraph @

i386/i386at/cram.h

raw
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 [email protected]
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 * cram.h
28 */
29
30 /*
31 Copyright 1988, 1989 by Olivetti Advanced Technology Center, Inc.,
32 Cupertino, California.
33
34 All Rights Reserved
35
36 Permission to use, copy, modify, and distribute this software and
37 its documentation for any purpose and without fee is hereby
38 granted, provided that the above copyright notice appears in all
39 copies and that both the copyright notice and this permission notice
40 appear in supporting documentation, and that the name of Olivetti
41 not be used in advertising or publicity pertaining to distribution
42 of the software without specific, written prior permission.
43
44 OLIVETTI DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
45 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
46 IN NO EVENT SHALL OLIVETTI BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
47 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
48 LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
49 NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUR OF OR IN CONNECTION
50 WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
51 */
52
53 #ifndef _CRAM_H_
54 #define _CRAM_H_
55
56 /* XXX: this conflicts with read/writing the RTC */
57
58 /*
59 * outb(CMOS_ADDR, addr);
60 * result = inb(CMOS_DATA);
61 *
62 * where "addr" tells what value you want to read (some are listed
63 * below). Interrupts should be disabled while you do this.
64 */
65
66 /* I/O ports */
67
68 #define CMOS_ADDR 0x70 /* port for CMOS ram address */
69 #define CMOS_DATA 0x71 /* port for CMOS ram data */
70
71
72 /* Addresses, related masks, and potential results */
73
74 #define CMOS_SHUTDOWN 0xf
75 #define CM_NORM_RST 0x0
76 #define CM_LOAD_SYS 0x4
77 #define CM_JMP_467 0xa
78
79 #define CMOS_EB 0x14 /* read Equipment Byte */
80 #define CM_SCRMSK 0x30 /* mask for EB query to get screen */
81 #define CM_EGA_VGA 0x00 /* "not CGA or MONO" */
82 #define CM_CGA_40 0x10
83 #define CM_CGA_80 0x20
84 #define CM_MONO_80 0x30
85
86 #endif /* _CRAM_H_ */