1*0ec3b04cSmiod /* $OpenBSD: am7990var.h,v 1.11 2013/09/24 20:10:57 miod Exp $ */ 2*0ec3b04cSmiod /* $NetBSD: am7990var.h,v 1.24 2008/04/28 20:23:49 martin Exp $ */ 3df930be7Sderaadt 4*0ec3b04cSmiod /*- 5*0ec3b04cSmiod * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. 6*0ec3b04cSmiod * All rights reserved. 7*0ec3b04cSmiod * 8*0ec3b04cSmiod * This code is derived from software contributed to The NetBSD Foundation 9*0ec3b04cSmiod * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace 10*0ec3b04cSmiod * Simulation Facility, NASA Ames Research Center. 11df930be7Sderaadt * 12df930be7Sderaadt * Redistribution and use in source and binary forms, with or without 13df930be7Sderaadt * modification, are permitted provided that the following conditions 14df930be7Sderaadt * are met: 15df930be7Sderaadt * 1. Redistributions of source code must retain the above copyright 16df930be7Sderaadt * notice, this list of conditions and the following disclaimer. 17df930be7Sderaadt * 2. Redistributions in binary form must reproduce the above copyright 18df930be7Sderaadt * notice, this list of conditions and the following disclaimer in the 19df930be7Sderaadt * documentation and/or other materials provided with the distribution. 20df930be7Sderaadt * 21*0ec3b04cSmiod * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 22*0ec3b04cSmiod * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 23*0ec3b04cSmiod * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 24*0ec3b04cSmiod * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 25*0ec3b04cSmiod * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26*0ec3b04cSmiod * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27*0ec3b04cSmiod * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28*0ec3b04cSmiod * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29*0ec3b04cSmiod * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30*0ec3b04cSmiod * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31*0ec3b04cSmiod * POSSIBILITY OF SUCH DAMAGE. 32df930be7Sderaadt */ 33df930be7Sderaadt 34*0ec3b04cSmiod #ifndef _DEV_IC_AM7990VAR_H_ 35*0ec3b04cSmiod #define _DEV_IC_AM7990VAR_H_ 36df930be7Sderaadt 3717fbbb3bSderaadt /* 3817fbbb3bSderaadt * Ethernet software status per device. 3917fbbb3bSderaadt * 4017fbbb3bSderaadt * NOTE: this structure MUST be the first element in machine-dependent 4117fbbb3bSderaadt * le_softc structures! This is designed SPECIFICALLY to make it possible 4217fbbb3bSderaadt * to simply cast a "void *" to "struct le_softc *" or to 4317fbbb3bSderaadt * "struct am7990_softc *". Among other things, this saves a lot of hair 4417fbbb3bSderaadt * in the interrupt handlers. 4517fbbb3bSderaadt */ 4617fbbb3bSderaadt struct am7990_softc { 47*0ec3b04cSmiod struct lance_softc lsc; 4817fbbb3bSderaadt }; 4917fbbb3bSderaadt 50c4071fd1Smillert void am7990_config(struct am7990_softc *); 51c4071fd1Smillert int am7990_intr(void *); 52df930be7Sderaadt 53*0ec3b04cSmiod #endif /* _DEV_IC_AM7990VAR_H_ */ 54