The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386at/eisa.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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  Software.Distribution@CS.CMU.EDU
   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 /*
   51  * HISTORY
   52  * $Log:        eisa.h,v $
   53  * Revision 2.2  93/11/17  16:43:38  dbg
   54  *      RCSed.  Presumably Philippe Bernadat wrote this.
   55  *      [93/10/20            af]
   56  * 
   57 
   58 /*
   59  * Eisa defs
   60  */
   61 
   62 #ifndef _I386AT_EISA_H_
   63 #define _I386AT_EISA_H_
   64 
   65 #include <mach/boolean.h>
   66 
   67 #if     EISA
   68 extern boolean_t is_eisa_bus;
   69 
   70 #define EISA_ID_REG(board, byte)        (0xc80 | (byte) | ((board) << 12))
   71 
   72 #define EISA_ID_REG_0   0x0
   73 #define EISA_ID_REG_1   0x1
   74 #define EISA_ID_REG_2   0x2
   75 #define EISA_ID_REG_3   0x3
   76 
   77 #define EISA_SYSTEM_BOARD 0x0
   78 
   79 struct std_board_id {
   80         unsigned revision:      8,      /* Revision number */
   81                  product:       8;      /* Product number */ 
   82 };
   83 
   84 struct sys_board_id {
   85         unsigned bus_vers:      3,      /* EISA bus version */
   86                  reserved:      13;     /* Manufacturer reserved */
   87 };
   88 
   89 struct board_id {
   90         union {
   91                 struct sys_board_id sys_id;
   92                 struct std_board_id std_id;
   93         } bd_id;
   94         unsigned name_char_2:   5,      /* 3nd compressed char */
   95                  name_char_1:   5,      /* 2nd compressed char */
   96                  name_char_0:   5,      /* 1st compressed char */
   97                  not_eisa:      1;      /* 0 if eisa board */
   98 };
   99 
  100 union eisa_board_id {
  101         unsigned char byte[4];
  102         struct board_id id;
  103 };
  104 
  105 typedef union eisa_board_id eisa_board_id_t;
  106 
  107 
  108 /* Additional DMA registers */
  109 
  110 #define DMA0HIPAGE      0x481           /* DMA 0 address: bits 24-31 */
  111 #define DMA0HICNT       0x405           /* DMA 0 count: bits 16-23 */
  112 
  113 
  114 #else   /* EISA */
  115 #define is_eisa_bus FALSE
  116 #define probe_eisa()
  117 #endif  /* EISA */
  118 
  119 #endif  /* _I386AT_EISA_H_ */

Cache object: c54a5fac6a0661325e7a1f58f358e094


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.