if_levar.h revision 1.9.4.1 1 /* $NetBSD: if_levar.h,v 1.9.4.1 1997/09/16 03:50:18 thorpej Exp $ */
2
3 /*
4 * LANCE Ethernet driver header file
5 *
6 * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
7 *
8 * Copyright (C) 1993, Paul Richards. This software may be used, modified,
9 * copied, distributed, and sold, in both source and binary form provided
10 * that the above copyright and these terms are retained. Under no
11 * circumstances is the author responsible for the proper functioning
12 * of this software, nor does the author assume any responsibility
13 * for damages incurred with its use.
14 */
15
16 /* Board types */
17 #define BICC 1
18 #define BICC_RDP 0xc
19 #define BICC_RAP 0xe
20
21 #define NE2100 2
22 #define PCnet_ISA 4
23 #define NE2100_RDP 0x10
24 #define NE2100_RAP 0x12
25
26 #define DEPCA 3
27 #define DEPCA_CSR 0x0
28 #define DEPCA_CSR_SHE 0x80 /* Shared memory enabled */
29 #define DEPCA_CSR_LOW32K 0x40 /* Map lower 32K chunk */
30 #define DEPCA_CSR_DUM 0x08 /* rev E compatibility */
31 #define DEPCA_CSR_IM 0x04 /* Interrupt masked */
32 #define DEPCA_CSR_IEN 0x02 /* Interrupt enabled */
33 #define DEPCA_RDP 0x4
34 #define DEPCA_RAP 0x6
35 #define DEPCA_ADP 0xc
36
37 /*
38 * Ethernet software status per interface.
39 *
40 * Each interface is referenced by a network interface structure,
41 * ethercom.ec_if, which the routing code uses to locate the interface.
42 * This structure contains the output queue for the interface, its address, ...
43 */
44 struct le_softc {
45 struct am7990_softc sc_am7990; /* glue to MI code */
46
47 void *sc_ih;
48 bus_space_tag_t sc_iot;
49 bus_space_tag_t sc_memt;
50 bus_space_handle_t sc_ioh;
51 bus_space_handle_t sc_memh;
52 bus_dma_tag_t sc_dmat; /* DMA glue for non-DEPCA */
53 bus_dmamap_t sc_dmam;
54 int sc_card;
55 int sc_rap, sc_rdp; /* offsets to LANCE registers */
56 };
57