1*95e1ffb1Schristos /* $NetBSD: if_levar.h,v 1.7 2005/12/11 12:24:00 christos Exp $ */ 2cf967a31Scgd 3cf967a31Scgd /*- 4cf967a31Scgd * Copyright (c) 1992, 1993 5cf967a31Scgd * The Regents of the University of California. All rights reserved. 6cf967a31Scgd * 7cf967a31Scgd * This code is derived from software contributed to Berkeley by 8cf967a31Scgd * Ralph Campbell and Rick Macklem. 9cf967a31Scgd * 10cf967a31Scgd * Redistribution and use in source and binary forms, with or without 11cf967a31Scgd * modification, are permitted provided that the following conditions 12cf967a31Scgd * are met: 13cf967a31Scgd * 1. Redistributions of source code must retain the above copyright 14cf967a31Scgd * notice, this list of conditions and the following disclaimer. 15cf967a31Scgd * 2. Redistributions in binary form must reproduce the above copyright 16cf967a31Scgd * notice, this list of conditions and the following disclaimer in the 17cf967a31Scgd * documentation and/or other materials provided with the distribution. 18aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 19cf967a31Scgd * may be used to endorse or promote products derived from this software 20cf967a31Scgd * without specific prior written permission. 21cf967a31Scgd * 22cf967a31Scgd * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23cf967a31Scgd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24cf967a31Scgd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25cf967a31Scgd * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26cf967a31Scgd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27cf967a31Scgd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28cf967a31Scgd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29cf967a31Scgd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30cf967a31Scgd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31cf967a31Scgd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32cf967a31Scgd * SUCH DAMAGE. 33cf967a31Scgd * 34cf967a31Scgd * @(#)if_lereg.h 8.1 (Berkeley) 6/10/93 35cf967a31Scgd */ 36cf967a31Scgd 37cf967a31Scgd /* Local Area Network Controller for Ethernet (LANCE) registers */ 38cf967a31Scgd struct lereg1 { 39cf967a31Scgd volatile u_int16_t ler1_rdp; /* data port */ 40cf967a31Scgd int16_t pad0; 41cf967a31Scgd #ifdef alpha 42cf967a31Scgd int32_t pad1; 43cf967a31Scgd #endif 44cf967a31Scgd volatile u_int16_t ler1_rap; /* register select port */ 45cf967a31Scgd int16_t pad2; 46cf967a31Scgd #ifdef alpha 47cf967a31Scgd int32_t pad3; 48cf967a31Scgd #endif 49cf967a31Scgd }; 50cf967a31Scgd 51cf967a31Scgd /* 52cf967a31Scgd * Ethernet software status per interface. 53cf967a31Scgd * 54cf967a31Scgd * Each interface is referenced by a network interface structure, 5507b064e0Sis * ethercom.ec_if, which the routing code uses to locate the interface. 56cf967a31Scgd * This structure contains the output queue for the interface, its address, ... 57cf967a31Scgd */ 58cf967a31Scgd struct le_softc { 5913e808bbSthorpej struct am7990_softc sc_am7990; /* glue to MI code */ 60cf967a31Scgd 61cf967a31Scgd struct lereg1 *sc_r1; /* LANCE registers */ 62cf967a31Scgd }; 63f8073d36Scgd 6418db93c7Sperry void dec_le_common_attach(struct am7990_softc *, u_char *); 65