1997-09-10 07:05:39 +04:00
|
|
|
/* $NetBSD: if_levar.h,v 1.10 1997/09/10 03:05:40 mycroft Exp $ */
|
1995-07-24 22:04:21 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* LANCE Ethernet driver header file
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
|
|
|
|
*
|
|
|
|
* Copyright (C) 1993, Paul Richards. This software may be used, modified,
|
|
|
|
* copied, distributed, and sold, in both source and binary form provided
|
|
|
|
* that the above copyright and these terms are retained. Under no
|
|
|
|
* circumstances is the author responsible for the proper functioning
|
|
|
|
* of this software, nor does the author assume any responsibility
|
|
|
|
* for damages incurred with its use.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Board types */
|
|
|
|
#define BICC 1
|
|
|
|
#define BICC_RDP 0xc
|
|
|
|
#define BICC_RAP 0xe
|
|
|
|
|
|
|
|
#define NE2100 2
|
1995-07-27 08:39:05 +04:00
|
|
|
#define PCnet_ISA 4
|
1995-07-24 22:04:21 +04:00
|
|
|
#define NE2100_RDP 0x10
|
|
|
|
#define NE2100_RAP 0x12
|
|
|
|
|
|
|
|
#define DEPCA 3
|
|
|
|
#define DEPCA_CSR 0x0
|
|
|
|
#define DEPCA_CSR_SHE 0x80 /* Shared memory enabled */
|
1997-09-10 07:05:39 +04:00
|
|
|
#define DEPCA_CSR_LOW32K 0x40 /* Map lower 32K chunk */
|
1995-07-24 22:04:21 +04:00
|
|
|
#define DEPCA_CSR_DUM 0x08 /* rev E compatibility */
|
|
|
|
#define DEPCA_CSR_IM 0x04 /* Interrupt masked */
|
|
|
|
#define DEPCA_CSR_IEN 0x02 /* Interrupt enabled */
|
|
|
|
#define DEPCA_RDP 0x4
|
|
|
|
#define DEPCA_RAP 0x6
|
|
|
|
#define DEPCA_ADP 0xc
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Ethernet software status per interface.
|
|
|
|
*
|
|
|
|
* Each interface is referenced by a network interface structure,
|
1997-03-15 21:09:08 +03:00
|
|
|
* ethercom.ec_if, which the routing code uses to locate the interface.
|
1995-07-24 22:04:21 +04:00
|
|
|
* This structure contains the output queue for the interface, its address, ...
|
|
|
|
*/
|
|
|
|
struct le_softc {
|
1996-05-07 05:50:04 +04:00
|
|
|
struct am7990_softc sc_am7990; /* glue to MI code */
|
1995-07-24 22:04:21 +04:00
|
|
|
|
|
|
|
void *sc_ih;
|
1996-10-22 02:34:38 +04:00
|
|
|
bus_space_tag_t sc_iot;
|
1996-12-02 08:44:17 +03:00
|
|
|
bus_space_tag_t sc_memt;
|
1996-10-22 02:34:38 +04:00
|
|
|
bus_space_handle_t sc_ioh;
|
1996-12-02 08:44:17 +03:00
|
|
|
bus_space_handle_t sc_memh;
|
1997-06-07 03:43:45 +04:00
|
|
|
bus_dma_tag_t sc_dmat; /* DMA glue for non-DEPCA */
|
|
|
|
bus_dmamap_t sc_dmam;
|
1995-07-27 08:39:05 +04:00
|
|
|
int sc_card;
|
1996-05-07 05:50:04 +04:00
|
|
|
int sc_rap, sc_rdp; /* offsets to LANCE registers */
|
1995-07-24 22:04:21 +04:00
|
|
|
};
|