1*0ec3b04cSmiod /* $OpenBSD: am79900var.h,v 1.1 2013/09/24 20:10:56 miod Exp $ */ 2*0ec3b04cSmiod /* $NetBSD: am79900var.h,v 1.5 2008/04/28 20:23:49 martin Exp $ */ 3*0ec3b04cSmiod 4*0ec3b04cSmiod /*- 5*0ec3b04cSmiod * Copyright (c) 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. 11*0ec3b04cSmiod * 12*0ec3b04cSmiod * Redistribution and use in source and binary forms, with or without 13*0ec3b04cSmiod * modification, are permitted provided that the following conditions 14*0ec3b04cSmiod * are met: 15*0ec3b04cSmiod * 1. Redistributions of source code must retain the above copyright 16*0ec3b04cSmiod * notice, this list of conditions and the following disclaimer. 17*0ec3b04cSmiod * 2. Redistributions in binary form must reproduce the above copyright 18*0ec3b04cSmiod * notice, this list of conditions and the following disclaimer in the 19*0ec3b04cSmiod * documentation and/or other materials provided with the distribution. 20*0ec3b04cSmiod * 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. 32*0ec3b04cSmiod */ 33*0ec3b04cSmiod 34*0ec3b04cSmiod #ifndef _DEV_IC_AM79900VAR_H_ 35*0ec3b04cSmiod #define _DEV_IC_AM79900VAR_H_ 36*0ec3b04cSmiod 37*0ec3b04cSmiod /* 38*0ec3b04cSmiod * Ethernet software status per device. 39*0ec3b04cSmiod * 40*0ec3b04cSmiod * NOTE: this structure MUST be the first element in machine-dependent 41*0ec3b04cSmiod * le_softc structures! This is designed SPECIFICALLY to make it possible 42*0ec3b04cSmiod * to simply cast a "void *" to "struct le_softc *" or to 43*0ec3b04cSmiod * "struct am79900_softc *". Among other things, this saves a lot of hair 44*0ec3b04cSmiod * in the interrupt handlers. 45*0ec3b04cSmiod */ 46*0ec3b04cSmiod struct am79900_softc { 47*0ec3b04cSmiod struct lance_softc lsc; 48*0ec3b04cSmiod }; 49*0ec3b04cSmiod 50*0ec3b04cSmiod void am79900_config(struct am79900_softc *); 51*0ec3b04cSmiod int am79900_intr(void *); 52*0ec3b04cSmiod 53*0ec3b04cSmiod #endif /* _DEV_IC_AM79900VAR_H_ */ 54