xref: /netbsd-src/sys/arch/amiga/dev/if_levar.h (revision 95e1ffb15694e54f29f8baaa4232152b703c2a5a)
1*95e1ffb1Schristos /*	$NetBSD: if_levar.h,v 1.7 2005/12/11 12:16:28 christos Exp $	*/
2f1443603Schopps 
3f1443603Schopps /*
4f1443603Schopps  * Copyright (c) 1982, 1990 The Regents of the University of California.
5f1443603Schopps  * All rights reserved.
6f1443603Schopps  *
7f1443603Schopps  * Redistribution and use in source and binary forms, with or without
8f1443603Schopps  * modification, are permitted provided that the following conditions
9f1443603Schopps  * are met:
10f1443603Schopps  * 1. Redistributions of source code must retain the above copyright
11f1443603Schopps  *    notice, this list of conditions and the following disclaimer.
12f1443603Schopps  * 2. Redistributions in binary form must reproduce the above copyright
13f1443603Schopps  *    notice, this list of conditions and the following disclaimer in the
14f1443603Schopps  *    documentation and/or other materials provided with the distribution.
15aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
16f1443603Schopps  *    may be used to endorse or promote products derived from this software
17f1443603Schopps  *    without specific prior written permission.
18f1443603Schopps  *
19f1443603Schopps  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20f1443603Schopps  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21f1443603Schopps  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22f1443603Schopps  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23f1443603Schopps  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24f1443603Schopps  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25f1443603Schopps  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26f1443603Schopps  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27f1443603Schopps  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28f1443603Schopps  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29f1443603Schopps  * SUCH DAMAGE.
30f1443603Schopps  */
31f1443603Schopps 
32f1443603Schopps /*
33fd019e12Sveego  * LANCE and PCnet-ISA registers.
34f1443603Schopps  */
35f1443603Schopps struct lereg1 {
36fd019e12Sveego 	u_int16_t ler1_rdp;	/* data port */
37fd019e12Sveego 	u_int16_t ler1_rap;	/* register select port */
38fd019e12Sveego 	/*
39fd019e12Sveego 	 * The next two registers are only available on PCnet-ISA cards.
40fd019e12Sveego 	 */
41fd019e12Sveego 	u_int16_t ler1_reset;	/* reading this resets the PCnet-ISA */
42fd019e12Sveego 	u_int16_t ler1_idp;	/* isa configuration port */
43f1443603Schopps };
44f1443603Schopps 
45f1443603Schopps /*
46f1443603Schopps  * Ethernet software status per interface.
47f1443603Schopps  *
48f1443603Schopps  * Each interface is referenced by a network interface structure,
4907b064e0Sis  * ethercom.ec_if, which the routing code uses to locate the interface.
50f1443603Schopps  * This structure contains the output queue for the interface, its address, ...
51f1443603Schopps  */
52f1443603Schopps struct le_softc {
53748810b0Sthorpej 	struct	am7990_softc sc_am7990;	/* glue to MI code */
54f1443603Schopps 
55f1443603Schopps 	struct	isr sc_isr;
56f1443603Schopps 	struct	lereg1 *sc_r1;		/* LANCE registers */
57f1443603Schopps };
58