|
|
1.1 root 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:
1.1.1.2 ! root 53: #ifndef _CRAM_H_
! 54: #define _CRAM_H_
! 55:
1.1 root 56: /*
57: * outb(CMOS_ADDR, addr);
58: * result = inb(CMOS_DATA);
59: *
60: * where "addr" tells what value you want to read (some are listed
61: * below). Interrupts should be disabled while you do this.
62: */
63:
64: /* I/O ports */
65:
66: #define CMOS_ADDR 0x70 /* port for CMOS ram address */
67: #define CMOS_DATA 0x71 /* port for CMOS ram data */
68:
69:
70: /* Addresses, related masks, and potential results */
71:
72: #define CMOS_EB 0x14 /* read Equipment Byte */
73: #define CM_SCRMSK 0x30 /* mask for EB query to get screen */
74: #define CM_EGA_VGA 0x00 /* "not CGA or MONO" */
75: #define CM_CGA_40 0x10
76: #define CM_CGA_80 0x20
77: #define CM_MONO_80 0x30
78:
1.1.1.2 ! root 79: #endif /* _CRAM_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.