Annotation of Gnu-Mach/i386/i386at/eisa.h, revision 1.1.1.1

1.1       root        1: /* 
                      2:  * Mach Operating System
                      3:  * Copyright (c) 1993 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:  * Copyright 1992 by Open Software Foundation,
                     28:  * Grenoble, FRANCE
                     29:  *
                     30:  *             All Rights Reserved
                     31:  * 
                     32:  *   Permission to use, copy, modify, and distribute this software and
                     33:  * its documentation for any purpose and without fee is hereby granted,
                     34:  * provided that the above copyright notice appears in all copies and
                     35:  * that both the copyright notice and this permission notice appear in
                     36:  * supporting documentation, and that the name of OSF or Open Software
                     37:  * Foundation not be used in advertising or publicity pertaining to
                     38:  * distribution of the software without specific, written prior
                     39:  * permission.
                     40:  * 
                     41:  *   OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
                     42:  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
                     43:  * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
                     44:  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
                     45:  * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
                     46:  * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
                     47:  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
                     48:  */
                     49: /*
                     50:  * Eisa defs
                     51:  */
                     52: 
                     53: #ifndef _I386AT_EISA_H_
                     54: #define _I386AT_EISA_H_
                     55: 
                     56: #include <mach/boolean.h>
                     57: 
                     58: #if    EISA
                     59: extern boolean_t is_eisa_bus;
                     60: 
                     61: #define EISA_ID_REG(board, byte)       (0xc80 | (byte) | ((board) << 12))
                     62: 
                     63: #define EISA_ID_REG_0  0x0
                     64: #define EISA_ID_REG_1  0x1
                     65: #define EISA_ID_REG_2  0x2
                     66: #define EISA_ID_REG_3  0x3
                     67: 
                     68: #define EISA_SYSTEM_BOARD 0x0
                     69: 
                     70: struct std_board_id {
                     71:        unsigned revision:      8,      /* Revision number */
                     72:                 product:       8;      /* Product number */ 
                     73: };
                     74: 
                     75: struct sys_board_id {
                     76:        unsigned bus_vers:      3,      /* EISA bus version */
                     77:                 reserved:      13;     /* Manufacturer reserved */
                     78: };
                     79: 
                     80: struct board_id {
                     81:        union {
                     82:                struct sys_board_id sys_id;
                     83:                struct std_board_id std_id;
                     84:        } bd_id;
                     85:        unsigned name_char_2:   5,      /* 3nd compressed char */
                     86:                 name_char_1:   5,      /* 2nd compressed char */
                     87:                 name_char_0:   5,      /* 1st compressed char */
                     88:                 not_eisa:      1;      /* 0 if eisa board */
                     89: };
                     90: 
                     91: union eisa_board_id {
                     92:        unsigned char byte[4];
                     93:        struct board_id id;
                     94: };
                     95: 
                     96: typedef union eisa_board_id eisa_board_id_t;
                     97: 
                     98: 
                     99: /* Additional DMA registers */
                    100: 
                    101: #define        DMA0HIPAGE      0x481           /* DMA 0 address: bits 24-31 */
                    102: #define        DMA0HICNT       0x405           /* DMA 0 count: bits 16-23 */
                    103: 
                    104: 
                    105: #else  /* EISA */
                    106: #define is_eisa_bus FALSE
                    107: #define probe_eisa()
                    108: #endif /* EISA */
                    109: 
                    110: #endif /* _I386AT_EISA_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.