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/dev/ed/if_ed98.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  * Copyright (c) KATO Takenori, 1996.  All rights reserved.
    3  *
    4  * Redistribution and use in source and binary forms, with or without
    5  * modification, are permitted provided that the following conditions
    6  * are met:
    7  * 1. Redistributions of source code must retain the above copyright
    8  *    notice, this list of conditions and the following disclaimer as
    9  *    the first lines of this file unmodified.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  * 3. The name of the author may not be used to endorse or promote products
   14  *    derived from this software without specific prior written permission.
   15  *
   16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   17  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   18  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   19  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   20  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   21  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   22  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   23  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   25  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   26  *
   27  * $FreeBSD: releng/8.3/sys/dev/ed/if_ed98.h 145009 2005-04-13 13:02:58Z nyan $
   28  */
   29 
   30 /*
   31  * PC-9801 specific definitions for DP8390/SMC8216 NICs.
   32  */
   33 
   34 /*
   35  * Vendor types
   36  */
   37 #define ED_VENDOR_MISC          0xf0            /* others */
   38 
   39 /*
   40  * Card types.
   41  *
   42  * Type  Card
   43  * 0x00  Allied Telesis CenterCom LA-98-T / SMC EtherEZ98.
   44  * 0x10  ** RESERVED **
   45  * 0x20  PLANET SMART COM 98 EN-2298 / ELECOM LANEED LD-BDN[123]A.
   46  * 0x30  MELCO EGY-98 / Contec C-NET(98)E-A/L-A.
   47  * 0x40  MELCO LGY-98, IND-SP, IND-SS / MACNICA NE2098(XXX).
   48  * 0x50  ICM DT-ET-25, DT-ET-T5, IF-2766ET, IF-2771ET /
   49  *       D-Link DE-298P{T,CAT}, DE-298{T,TP,CAT}.
   50  * 0x60  Allied Telesis SIC-98.
   51  * 0x70  ** RESERVED **
   52  * 0x80  NEC PC-9801-108.
   53  * 0x90  IO-DATA LA-98 / NEC PC-9801-77.
   54  * 0xa0  Contec C-NET(98).
   55  * 0xb0  Contec C-NET(98)E/L.
   56  * 0xc0  ** RESERVED **
   57  * 0xd0  Networld EC/EP-98X.
   58  * 0xe0  Soliton SB-9801 / Fujikura FN-9801 / Networld EC/EP-98S.
   59  * 0xf0  NextCom NC5098.
   60  */
   61 #define ED_TYPE98_BASE          0x80
   62 
   63 #define ED_TYPE98_GENERIC       0x80
   64 #define ED_TYPE98_BDN           0x82
   65 #define ED_TYPE98_EGY           0x83
   66 #define ED_TYPE98_LGY           0x84
   67 #define ED_TYPE98_ICM           0x85
   68 #define ED_TYPE98_SIC           0x86
   69 #define ED_TYPE98_108           0x88
   70 #define ED_TYPE98_LA98          0x89
   71 #define ED_TYPE98_CNET98        0x8a
   72 #define ED_TYPE98_CNET98EL      0x8b
   73 #define ED_TYPE98_NW98X         0x8d
   74 #define ED_TYPE98_SB98          0x8e
   75 #define ED_TYPE98_NC5098        0x8f
   76 
   77 #define ED_TYPE98(x)    (((x & 0xffff0000) >> 20) | ED_TYPE98_BASE)
   78 #define ED_TYPE98SUB(x) ((x & 0xf0000) >> 16)
   79 
   80 /*
   81  *              Definitions for C-NET(98) serise
   82  */
   83 /*
   84  * Initial Register(on board JP1)
   85  */
   86 #define ED_CNET98_INIT          0xaaed          /* default */
   87 #define ED_CNET98_INIT2         0x55ed          /* another setting */
   88 
   89 #define ED_CNET98EL_PAGE_OFFSET 0x0000  /* Page offset for NIC access to mem */
   90 
   91 /*
   92  *              Definitions for Soliton SB-9801
   93  */
   94 /*
   95  * I/O port select register
   96  */
   97 #define ED_SB98_IO_INHIBIT      0x0040  /* XXX - shares printer port! */
   98 
   99 /*
  100  *              Definitions for SMC EtherEZ98(SMC8498BTA)
  101  */
  102 #define ED_EZ98_NIC_OFFSET      0x100           /* I/O base offset to NIC */
  103 #define ED_EZ98_ASIC_OFFSET     0               /* I/O base offset to ASIC */
  104 /*
  105  * XXX - The I/O address range is fragmented in the EtherEZ98;
  106  *      it occupies 16*2 I/O addresses, by the way.
  107  */
  108 #define ED_EZ98_IO_PORTS        16              /* # of i/o addresses used */

Cache object: 2d0b8613c6bd7b4d4ff24c2340069061


[ 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.