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