am7990var.h revision 1.20 1 1.20 drochner /* $NetBSD: am7990var.h,v 1.20 1998/07/21 17:26:45 drochner Exp $ */
2 1.14 thorpej
3 1.14 thorpej /*-
4 1.14 thorpej * Copyright (c) 1997 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.14 thorpej * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
9 1.14 thorpej * 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.14 thorpej */
39 1.1 cgd
40 1.1 cgd /*
41 1.1 cgd * Copyright (c) 1995 Charles M. Hannum. All rights reserved.
42 1.1 cgd *
43 1.1 cgd * Redistribution and use in source and binary forms, with or without
44 1.1 cgd * modification, are permitted provided that the following conditions
45 1.1 cgd * are met:
46 1.1 cgd * 1. Redistributions of source code must retain the above copyright
47 1.1 cgd * notice, this list of conditions and the following disclaimer.
48 1.1 cgd * 2. Redistributions in binary form must reproduce the above copyright
49 1.1 cgd * notice, this list of conditions and the following disclaimer in the
50 1.1 cgd * documentation and/or other materials provided with the distribution.
51 1.1 cgd * 3. All advertising materials mentioning features or use of this software
52 1.1 cgd * must display the following acknowledgement:
53 1.1 cgd * This product includes software developed by Charles M. Hannum.
54 1.1 cgd * 4. The name of the author may not be used to endorse or promote products
55 1.1 cgd * derived from this software without specific prior written permission.
56 1.1 cgd *
57 1.1 cgd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
58 1.1 cgd * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
59 1.1 cgd * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
60 1.1 cgd * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
61 1.1 cgd * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
62 1.1 cgd * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
63 1.1 cgd * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
64 1.1 cgd * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
65 1.1 cgd * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
66 1.1 cgd * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
67 1.1 cgd */
68 1.1 cgd
69 1.7 thorpej /*
70 1.7 thorpej * Ethernet software status per device.
71 1.7 thorpej *
72 1.7 thorpej * NOTE: this structure MUST be the first element in machine-dependent
73 1.7 thorpej * le_softc structures! This is designed SPECIFICALLY to make it possible
74 1.7 thorpej * to simply cast a "void *" to "struct le_softc *" or to
75 1.7 thorpej * "struct am7990_softc *". Among other things, this saves a lot of hair
76 1.7 thorpej * in the interrupt handlers.
77 1.7 thorpej */
78 1.7 thorpej struct am7990_softc {
79 1.20 drochner struct lance_softc lsc;
80 1.7 thorpej };
81 1.7 thorpej
82 1.7 thorpej void am7990_config __P((struct am7990_softc *));
83 1.7 thorpej int am7990_intr __P((void *));
84