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$
   28  */
   29 
   30 /*
   31  * PC-9801 specific definitions for DP8390/SMC8216 NICs.
   32  */
   33 #ifndef PC98
   34 #error Why you include if_ed98.h?
   35 #endif
   36 
   37 /*
   38  * Vendor types
   39  */
   40 #define ED_VENDOR_MISC          0xf0            /* others */
   41 
   42 /*
   43  * Card types.
   44  *
   45  * Type  Card
   46  * 0x00  Allied Telesis CenterCom LA-98-T / SMC EtherEZ98.
   47  * 0x10  ** RESERVED **
   48  * 0x20  PLANET SMART COM 98 EN-2298 / ELECOM LANEED LD-BDN[123]A.
   49  * 0x30  MELCO EGY-98 / Contec C-NET(98)E-A/L-A.
   50  * 0x40  MELCO LGY-98, IND-SP, IND-SS / MACNICA NE2098(XXX).
   51  * 0x50  ICM DT-ET-25, DT-ET-T5, IF-2766ET, IF-2771ET /
   52  *       D-Link DE-298P{T,CAT}, DE-298{T,TP,CAT}.
   53  * 0x60  Allied Telesis SIC-98.
   54  * 0x70  ** RESERVED **
   55  * 0x80  NEC PC-9801-108.
   56  * 0x90  IO-DATA LA-98 / NEC PC-9801-77.
   57  * 0xa0  Contec C-NET(98).
   58  * 0xb0  Contec C-NET(98)E/L.
   59  * 0xc0  ** RESERVED **
   60  * 0xd0  Networld EC/EP-98X.
   61  * 0xe0  Soliton SB-9801 / Fujikura FN-9801 / Networld EC/EP-98S.
   62  * 0xf0  NextCom NC5098.
   63  */
   64 #define ED_TYPE98_BASE          0x80
   65 
   66 #define ED_TYPE98_GENERIC       0x80
   67 #define ED_TYPE98_BDN           0x82
   68 #define ED_TYPE98_EGY           0x83
   69 #define ED_TYPE98_LGY           0x84
   70 #define ED_TYPE98_ICM           0x85
   71 #define ED_TYPE98_SIC           0x86
   72 #define ED_TYPE98_108           0x88
   73 #define ED_TYPE98_LA98          0x89
   74 #define ED_TYPE98_CNET98        0x8a
   75 #define ED_TYPE98_CNET98EL      0x8b
   76 #define ED_TYPE98_NW98X         0x8d
   77 #define ED_TYPE98_SB98          0x8e
   78 #define ED_TYPE98_NC5098        0x8f
   79 
   80 #define ED_TYPE98(x)    (((x & 0xffff0000) >> 20) | ED_TYPE98_BASE)
   81 #define ED_TYPE98SUB(x) ((x & 0xf0000) >> 16)
   82 
   83 /*
   84  *              Definitions for C-NET(98) serise
   85  */
   86 /*
   87  * Initial Register(on board JP1)
   88  */
   89 #define ED_CNET98_INIT          0xaaed          /* default */
   90 #define ED_CNET98_INIT2         0x55ed          /* another setting */
   91 
   92 #define ED_CNET98EL_PAGE_OFFSET 0x0000  /* Page offset for NIC access to mem */
   93 
   94 /*
   95  *              Definitions for Soliton SB-9801
   96  */
   97 /*
   98  * I/O port select register
   99  */
  100 #define ED_SB98_IO_INHIBIT      0x0040  /* XXX - shares printer port! */
  101 
  102 /*
  103  *              Definitions for SMC EtherEZ98(SMC8498BTA)
  104  */
  105 #define ED_EZ98_NIC_OFFSET      0x100           /* I/O base offset to NIC */
  106 #define ED_EZ98_ASIC_OFFSET     0               /* I/O base offset to ASIC */
  107 /*
  108  * XXX - The I/O address range is fragmented in the EtherEZ98;
  109  *      it occupies 16*2 I/O addresses, by the way.
  110  */
  111 #define ED_EZ98_IO_PORTS        16              /* # of i/o addresses used */

Cache object: 99af39aac94cd5e348e1e0e93fe099e3


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