1*018421d1Sderaadt /* $OpenBSD: if_levar.h,v 1.8 2010/05/23 11:41:22 deraadt Exp $ */ 2aa76beb5Smiod /* $NetBSD: if_levar.h,v 1.4 1997/03/15 18:12:07 is Exp $ */ 30391cee5Sderaadt 40391cee5Sderaadt /*- 50391cee5Sderaadt * Copyright (c) 1992, 1993 60391cee5Sderaadt * The Regents of the University of California. All rights reserved. 70391cee5Sderaadt * 80391cee5Sderaadt * This code is derived from software contributed to Berkeley by 90391cee5Sderaadt * Ralph Campbell and Rick Macklem. 100391cee5Sderaadt * 110391cee5Sderaadt * Redistribution and use in source and binary forms, with or without 120391cee5Sderaadt * modification, are permitted provided that the following conditions 130391cee5Sderaadt * are met: 140391cee5Sderaadt * 1. Redistributions of source code must retain the above copyright 150391cee5Sderaadt * notice, this list of conditions and the following disclaimer. 160391cee5Sderaadt * 2. Redistributions in binary form must reproduce the above copyright 170391cee5Sderaadt * notice, this list of conditions and the following disclaimer in the 180391cee5Sderaadt * documentation and/or other materials provided with the distribution. 1929295d1cSmillert * 3. Neither the name of the University nor the names of its contributors 200391cee5Sderaadt * may be used to endorse or promote products derived from this software 210391cee5Sderaadt * without specific prior written permission. 220391cee5Sderaadt * 230391cee5Sderaadt * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 240391cee5Sderaadt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 250391cee5Sderaadt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 260391cee5Sderaadt * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 270391cee5Sderaadt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 280391cee5Sderaadt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 290391cee5Sderaadt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 300391cee5Sderaadt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 310391cee5Sderaadt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 320391cee5Sderaadt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 330391cee5Sderaadt * SUCH DAMAGE. 340391cee5Sderaadt * 350391cee5Sderaadt * @(#)if_lereg.h 8.1 (Berkeley) 6/10/93 360391cee5Sderaadt */ 370391cee5Sderaadt 380391cee5Sderaadt /* Local Area Network Controller for Ethernet (LANCE) registers */ 390391cee5Sderaadt struct lereg1 { 400391cee5Sderaadt volatile u_int16_t ler1_rdp; /* data port */ 410391cee5Sderaadt int16_t pad0; 42*018421d1Sderaadt #if defined(__alpha__) 430391cee5Sderaadt int32_t pad1; 440391cee5Sderaadt #endif 450391cee5Sderaadt volatile u_int16_t ler1_rap; /* register select port */ 460391cee5Sderaadt int16_t pad2; 47*018421d1Sderaadt #if defined(__alpha__) 480391cee5Sderaadt int32_t pad3; 490391cee5Sderaadt #endif 500391cee5Sderaadt }; 510391cee5Sderaadt 520391cee5Sderaadt /* 530391cee5Sderaadt * Ethernet software status per interface. 540391cee5Sderaadt * 550391cee5Sderaadt * Each interface is referenced by a network interface structure, 56aa76beb5Smiod * ethercom.ec_if, which the routing code uses to locate the interface. 570391cee5Sderaadt * This structure contains the output queue for the interface, its address, ... 580391cee5Sderaadt */ 590391cee5Sderaadt struct le_softc { 6017fbbb3bSderaadt struct am7990_softc sc_am7990; /* glue to MI code */ 610391cee5Sderaadt 620391cee5Sderaadt struct lereg1 *sc_r1; /* LANCE registers */ 630391cee5Sderaadt }; 64fbc5a27fSderaadt 65c4071fd1Smillert void dec_le_common_attach(struct am7990_softc *, u_char *); 66