186d7f5d3SJohn Marino /* $NetBSD: am7990var.h,v 1.23 2005/12/11 12:21:25 christos Exp $ */ 286d7f5d3SJohn Marino /* $FreeBSD: src/sys/dev/le/am7990var.h,v 1.1 2006/01/31 14:48:58 marius Exp $ */ 386d7f5d3SJohn Marino /* $DragonFly: src/sys/dev/netif/lnc/am7990var.h,v 1.1 2006/07/07 14:16:29 sephe Exp $ */ 486d7f5d3SJohn Marino 586d7f5d3SJohn Marino /*- 686d7f5d3SJohn Marino * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. 786d7f5d3SJohn Marino * All rights reserved. 886d7f5d3SJohn Marino * 986d7f5d3SJohn Marino * This code is derived from software contributed to The NetBSD Foundation 1086d7f5d3SJohn Marino * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace 1186d7f5d3SJohn Marino * Simulation Facility, NASA Ames Research Center. 1286d7f5d3SJohn Marino * 1386d7f5d3SJohn Marino * Redistribution and use in source and binary forms, with or without 1486d7f5d3SJohn Marino * modification, are permitted provided that the following conditions 1586d7f5d3SJohn Marino * are met: 1686d7f5d3SJohn Marino * 1. Redistributions of source code must retain the above copyright 1786d7f5d3SJohn Marino * notice, this list of conditions and the following disclaimer. 1886d7f5d3SJohn Marino * 2. Redistributions in binary form must reproduce the above copyright 1986d7f5d3SJohn Marino * notice, this list of conditions and the following disclaimer in the 2086d7f5d3SJohn Marino * documentation and/or other materials provided with the distribution. 2186d7f5d3SJohn Marino * 3. All advertising materials mentioning features or use of this software 2286d7f5d3SJohn Marino * must display the following acknowledgement: 2386d7f5d3SJohn Marino * This product includes software developed by the NetBSD 2486d7f5d3SJohn Marino * Foundation, Inc. and its contributors. 2586d7f5d3SJohn Marino * 4. Neither the name of The NetBSD Foundation nor the names of its 2686d7f5d3SJohn Marino * contributors may be used to endorse or promote products derived 2786d7f5d3SJohn Marino * from this software without specific prior written permission. 2886d7f5d3SJohn Marino * 2986d7f5d3SJohn Marino * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 3086d7f5d3SJohn Marino * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 3186d7f5d3SJohn Marino * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 3286d7f5d3SJohn Marino * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 3386d7f5d3SJohn Marino * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 3486d7f5d3SJohn Marino * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 3586d7f5d3SJohn Marino * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 3686d7f5d3SJohn Marino * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 3786d7f5d3SJohn Marino * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 3886d7f5d3SJohn Marino * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 3986d7f5d3SJohn Marino * POSSIBILITY OF SUCH DAMAGE. 4086d7f5d3SJohn Marino */ 4186d7f5d3SJohn Marino 4286d7f5d3SJohn Marino #ifndef _DEV_LE_AM7990VAR_H_ 4386d7f5d3SJohn Marino #define _DEV_LE_AM7990VAR_H_ 4486d7f5d3SJohn Marino 4586d7f5d3SJohn Marino /* 4686d7f5d3SJohn Marino * Ethernet software status per device. 4786d7f5d3SJohn Marino * 4886d7f5d3SJohn Marino * NOTE: this structure MUST be the first element in machine-dependent 4986d7f5d3SJohn Marino * le_softc structures! This is designed SPECIFICALLY to make it possible 5086d7f5d3SJohn Marino * to simply cast a "void *" to "struct le_softc *" or to 5186d7f5d3SJohn Marino * "struct am7990_softc *". Among other things, this saves a lot of hair 5286d7f5d3SJohn Marino * in the interrupt handlers. 5386d7f5d3SJohn Marino */ 5486d7f5d3SJohn Marino struct am7990_softc { 5586d7f5d3SJohn Marino struct lance_softc lsc; 5686d7f5d3SJohn Marino }; 5786d7f5d3SJohn Marino 5886d7f5d3SJohn Marino int am7990_config(struct am7990_softc *, const char*, int); 5986d7f5d3SJohn Marino void am7990_detach(struct am7990_softc *); 6086d7f5d3SJohn Marino void am7990_intr(void *); 6186d7f5d3SJohn Marino 6286d7f5d3SJohn Marino #endif /* !_DEV_LE_AM7990VAR_H_ */ 63