Home | History | Annotate | Line # | Download | only in ic
am7990var.h revision 1.23.70.1
      1  1.23.70.1       mjf /*	$NetBSD: am7990var.h,v 1.23.70.1 2008/06/02 13:23:18 mjf 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  *
     20       1.14   thorpej  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     21       1.14   thorpej  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     22       1.14   thorpej  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     23       1.14   thorpej  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     24       1.14   thorpej  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     25       1.14   thorpej  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     26       1.14   thorpej  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     27       1.14   thorpej  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     28       1.14   thorpej  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     29       1.14   thorpej  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     30       1.14   thorpej  * POSSIBILITY OF SUCH DAMAGE.
     31        1.1       cgd  */
     32        1.1       cgd 
     33       1.22   thorpej #ifndef _DEV_IC_AM7990VAR_H_
     34       1.22   thorpej #define	_DEV_IC_AM7990VAR_H_
     35       1.22   thorpej 
     36        1.7   thorpej /*
     37        1.7   thorpej  * Ethernet software status per device.
     38        1.7   thorpej  *
     39        1.7   thorpej  * NOTE: this structure MUST be the first element in machine-dependent
     40        1.7   thorpej  * le_softc structures!  This is designed SPECIFICALLY to make it possible
     41        1.7   thorpej  * to simply cast a "void *" to "struct le_softc *" or to
     42        1.7   thorpej  * "struct am7990_softc *".  Among other things, this saves a lot of hair
     43        1.7   thorpej  * in the interrupt handlers.
     44        1.7   thorpej  */
     45        1.7   thorpej struct am7990_softc {
     46       1.20  drochner 	struct lance_softc lsc;
     47        1.7   thorpej };
     48        1.7   thorpej 
     49       1.22   thorpej void	am7990_config(struct am7990_softc *);
     50       1.22   thorpej int	am7990_intr(void *);
     51       1.22   thorpej 
     52       1.22   thorpej #endif /* _DEV_IC_AM7990VAR_H_ */
     53