Home | History | Annotate | Line # | Download | only in ic
am7990var.h revision 1.21.46.2
      1  1.21.46.1     skrll /*	$NetBSD: am7990var.h,v 1.21.46.2 2004/09/18 14:45:56 skrll Exp $	*/
      2       1.14   thorpej 
      3       1.14   thorpej /*-
      4       1.21   mycroft  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
      5       1.14   thorpej  * All rights reserved.
      6       1.14   thorpej  *
      7       1.14   thorpej  * This code is derived from software contributed to The NetBSD Foundation
      8       1.21   mycroft  * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace
      9       1.21   mycroft  * Simulation Facility, NASA Ames Research Center.
     10       1.14   thorpej  *
     11       1.14   thorpej  * Redistribution and use in source and binary forms, with or without
     12       1.14   thorpej  * modification, are permitted provided that the following conditions
     13       1.14   thorpej  * are met:
     14       1.14   thorpej  * 1. Redistributions of source code must retain the above copyright
     15       1.14   thorpej  *    notice, this list of conditions and the following disclaimer.
     16       1.14   thorpej  * 2. Redistributions in binary form must reproduce the above copyright
     17       1.14   thorpej  *    notice, this list of conditions and the following disclaimer in the
     18       1.14   thorpej  *    documentation and/or other materials provided with the distribution.
     19       1.14   thorpej  * 3. All advertising materials mentioning features or use of this software
     20       1.14   thorpej  *    must display the following acknowledgement:
     21       1.14   thorpej  *	This product includes software developed by the NetBSD
     22       1.14   thorpej  *	Foundation, Inc. and its contributors.
     23       1.14   thorpej  * 4. Neither the name of The NetBSD Foundation nor the names of its
     24       1.14   thorpej  *    contributors may be used to endorse or promote products derived
     25       1.14   thorpej  *    from this software without specific prior written permission.
     26       1.14   thorpej  *
     27       1.14   thorpej  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     28       1.14   thorpej  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     29       1.14   thorpej  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     30       1.14   thorpej  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     31       1.14   thorpej  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     32       1.14   thorpej  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     33       1.14   thorpej  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     34       1.14   thorpej  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     35       1.14   thorpej  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     36       1.14   thorpej  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     37       1.14   thorpej  * POSSIBILITY OF SUCH DAMAGE.
     38        1.1       cgd  */
     39        1.1       cgd 
     40  1.21.46.1     skrll #ifndef _DEV_IC_AM7990VAR_H_
     41  1.21.46.1     skrll #define	_DEV_IC_AM7990VAR_H_
     42  1.21.46.1     skrll 
     43        1.7   thorpej /*
     44        1.7   thorpej  * Ethernet software status per device.
     45        1.7   thorpej  *
     46        1.7   thorpej  * NOTE: this structure MUST be the first element in machine-dependent
     47        1.7   thorpej  * le_softc structures!  This is designed SPECIFICALLY to make it possible
     48        1.7   thorpej  * to simply cast a "void *" to "struct le_softc *" or to
     49        1.7   thorpej  * "struct am7990_softc *".  Among other things, this saves a lot of hair
     50        1.7   thorpej  * in the interrupt handlers.
     51        1.7   thorpej  */
     52        1.7   thorpej struct am7990_softc {
     53       1.20  drochner 	struct lance_softc lsc;
     54        1.7   thorpej };
     55        1.7   thorpej 
     56  1.21.46.1     skrll void	am7990_config(struct am7990_softc *);
     57  1.21.46.1     skrll int	am7990_intr(void *);
     58  1.21.46.1     skrll 
     59  1.21.46.1     skrll #endif /* _DEV_IC_AM7990VAR_H_ */
     60