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/mca/3c523reg.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 /*      $NetBSD: 3c523reg.h,v 1.1 2001/03/16 23:03:15 jdolecek Exp $    */
    2 
    3 /*-
    4  * Copyright (c) 2001 The NetBSD Foundation, Inc.
    5  * All rights reserved.
    6  *
    7  * Redistribution and use in source and binary forms, with or without
    8  * modification, are permitted provided that the following conditions
    9  * are met:
   10  * 1. Redistributions of source code must retain the above copyright
   11  *    notice, this list of conditions and the following disclaimer.
   12  * 2. Redistributions in binary form must reproduce the above copyright
   13  *    notice, this list of conditions and the following disclaimer in the
   14  *    documentation and/or other materials provided with the distribution.
   15  * 3. All advertising materials mentioning features or use of this software
   16  *    must display the following acknowledgement:
   17  *      This product includes software developed by the NetBSD
   18  *      Foundation, Inc. and its contributors.
   19  * 4. Neither the name of The NetBSD Foundation nor the names of its
   20  *    contributors may be used to endorse or promote products derived
   21  *    from this software without specific prior written permission.
   22  *
   23  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   24  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   25  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   26  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   27  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   28  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   29  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   30  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   31  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   32  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   33  * POSSIBILITY OF SUCH DAMAGE.
   34  */
   35 
   36 /*
   37  * The 3c523 i/o space is 8 bytes long. The first 6 bytes is the ethernet
   38  * address, followed by control & status register and card's revision number.
   39  */
   40 #define ELMC_IOADDR_BASE        0x300
   41 #define ELMC_IOADDR_SIZE        8
   42 #define ELMC_CTRL               6       /* control & status register */
   43 #define ELMC_REVISION           7       /* revision, first 4 bits only */
   44 #define ELMC_REVISION_MASK      0xf
   45 
   46 /*
   47  * The following define the bits for the control & status register.
   48  *
   49  * The bank select registers can be used if there is more than 16KB
   50  * of memory on the card. Bank 3 is the one for the bottom 16KB
   51  * (i.e. the common size), but the card defaults to bank 0. Hence we
   52  * need to set the bank to 3 to make the card operate at all.
   53  */
   54 #define ELMC_CTRL_BS0           0x01    /* RW bank select */
   55 #define ELMC_CTRL_BS1           0x02    /* RW bank select */
   56 #define ELMC_CTRL_BS3           (ELMC_CTRL_BS0|ELMC_CTRL_BS1)   /* shortcut */
   57 #define ELMC_CTRL_INT           0x04    /* RW interrupt enable, assert high */
   58 #define ELMC_CTRL_LOOP          0x20    /* RW loopback enable, assert high */
   59 #define ELMC_CTRL_CHA           0x40    /* RW channel attention, assert high */
   60 #define ELMC_CTRL_RST           0x80    /* RW 82586 reset, assert low */
   61 
   62 /*
   63  * The base memory space address is 0xc0000 (see 3c523 docs). The card
   64  * has actually 24KB of memory, but we only use first 16KB -
   65  * the upper 8KB is card's BIOS.
   66  */
   67 #define ELMC_MADDR_BASE         0x0c0000
   68 #define ELMC_MADDR_SIZE         0x4000          /* use only 16K of shared mem */
   69 

Cache object: 8f845b5a8cb15fd4020597e8d93fb8ea


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