Home | History | Annotate | Line # | Download | only in ic
am7990var.h revision 1.3
      1  1.3  mycroft /*	$NetBSD: am7990var.h,v 1.3 1995/12/11 19:48:58 mycroft Exp $	*/
      2  1.1      cgd 
      3  1.1      cgd /*
      4  1.1      cgd  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
      5  1.1      cgd  *
      6  1.1      cgd  * Redistribution and use in source and binary forms, with or without
      7  1.1      cgd  * modification, are permitted provided that the following conditions
      8  1.1      cgd  * are met:
      9  1.1      cgd  * 1. Redistributions of source code must retain the above copyright
     10  1.1      cgd  *    notice, this list of conditions and the following disclaimer.
     11  1.1      cgd  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1      cgd  *    notice, this list of conditions and the following disclaimer in the
     13  1.1      cgd  *    documentation and/or other materials provided with the distribution.
     14  1.1      cgd  * 3. All advertising materials mentioning features or use of this software
     15  1.1      cgd  *    must display the following acknowledgement:
     16  1.1      cgd  *	This product includes software developed by Charles M. Hannum.
     17  1.1      cgd  * 4. The name of the author may not be used to endorse or promote products
     18  1.1      cgd  *    derived from this software without specific prior written permission.
     19  1.1      cgd  *
     20  1.1      cgd  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     21  1.1      cgd  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     22  1.1      cgd  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     23  1.1      cgd  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     24  1.1      cgd  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     25  1.1      cgd  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     26  1.1      cgd  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     27  1.1      cgd  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     28  1.1      cgd  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     29  1.1      cgd  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     30  1.1      cgd  */
     31  1.1      cgd 
     32  1.1      cgd #ifdef DDB
     33  1.1      cgd #define	integrate
     34  1.1      cgd #else
     35  1.1      cgd #define	integrate	static inline
     36  1.1      cgd #endif
     37  1.1      cgd 
     38  1.1      cgd void leconfig __P((struct le_softc *));
     39  1.1      cgd void leinit __P((struct le_softc *));
     40  1.1      cgd int leioctl __P((struct ifnet *, u_long, caddr_t));
     41  1.1      cgd void lememinit __P((struct le_softc *));
     42  1.1      cgd void lereset __P((struct le_softc *));
     43  1.1      cgd void lesetladrf __P((struct arpcom *, u_int16_t *));
     44  1.1      cgd void lestart __P((struct ifnet *));
     45  1.1      cgd void lestop __P((struct le_softc *));
     46  1.3  mycroft void lewatchdog __P((int));
     47  1.1      cgd 
     48  1.1      cgd integrate u_int16_t lerdcsr __P((/* struct le_softc *, u_int16_t */));
     49  1.1      cgd integrate void lewrcsr __P((/* struct le_softc *, u_int16_t, u_int16_t */));
     50  1.1      cgd 
     51  1.1      cgd integrate void lerint __P((struct le_softc *));
     52  1.1      cgd integrate void letint __P((struct le_softc *));
     53  1.1      cgd 
     54  1.1      cgd integrate int leput __P((struct le_softc *, int, struct mbuf *));
     55  1.1      cgd integrate struct mbuf *leget __P((struct le_softc *, int, int));
     56  1.1      cgd integrate void leread __P((struct le_softc *, int, int));
     57  1.1      cgd 
     58  1.2      cgd /*
     59  1.2      cgd  * The following functions are only useful on certain cpu/bus
     60  1.2      cgd  * combinations.  They should be written in assembly language for
     61  1.2      cgd  * maximum efficiency, but machine-independent versions are provided
     62  1.2      cgd  * for drivers that have not yet been optimized.
     63  1.2      cgd  */
     64  1.2      cgd #ifdef LE_NEED_BUF_CONTIG
     65  1.2      cgd integrate void copytobuf_contig __P((struct le_softc *, void *, int, int));
     66  1.2      cgd integrate void copyfrombuf_contig __P((struct le_softc *, void *, int, int));
     67  1.2      cgd integrate void zerobuf_contig __P((struct le_softc *, int, int));
     68  1.2      cgd #endif /* LE_NEED_BUF_CONTIG */
     69  1.2      cgd #ifdef LE_NEED_BUF_GAP2
     70  1.2      cgd integrate void copytobuf_gap2 __P((struct le_softc *, void *, int, int));
     71  1.2      cgd integrate void copyfrombuf_gap2 __P((struct le_softc *, void *, int, int));
     72  1.2      cgd integrate void zerobuf_gap2 __P((struct le_softc *, int, int));
     73  1.2      cgd #endif /* LE_NEED_BUF_GAP2 */
     74  1.2      cgd #ifdef LE_NEED_BUF_GAP16
     75  1.2      cgd integrate void copytobuf_gap16 __P((struct le_softc *, void *, int, int));
     76  1.2      cgd integrate void copyfrombuf_gap16 __P((struct le_softc *, void *, int, int));
     77  1.2      cgd integrate void zerobuf_gap16 __P((struct le_softc *, int, int));
     78  1.2      cgd #endif /* LE_NEED_BUF_GAP16 */
     79