1995-01-03 18:43:36 +03:00
|
|
|
/* $NetBSD: if_le.h,v 1.6 1995/01/03 15:43:38 gwr Exp $ */
|
1994-10-26 12:07:55 +03:00
|
|
|
|
1993-08-16 03:01:58 +04:00
|
|
|
/*
|
|
|
|
* Ethernet software status per interface.
|
1995-01-03 18:43:36 +03:00
|
|
|
*
|
1993-08-16 03:01:58 +04:00
|
|
|
* Each interface is referenced by a network interface structure,
|
1995-01-03 18:43:36 +03:00
|
|
|
* arpcom, which the routing code uses to locate the interface.
|
1994-05-28 19:45:51 +04:00
|
|
|
* This structure contains the output queue for the interface,
|
|
|
|
* its address, ...
|
1993-08-16 03:01:58 +04:00
|
|
|
*/
|
|
|
|
struct le_softc {
|
1994-05-28 19:45:51 +04:00
|
|
|
struct device sc_dev; /* base device */
|
|
|
|
struct arpcom sc_ac; /* common Ethernet structures */
|
1995-01-03 18:43:36 +03:00
|
|
|
#define sc_if sc_ac.ac_if /* network-visible interface */
|
|
|
|
#define sc_enaddr sc_ac.ac_enaddr /* hardware Ethernet address */
|
1994-12-12 21:58:45 +03:00
|
|
|
|
1995-01-03 18:43:36 +03:00
|
|
|
volatile struct le_regs *sc_regs; /* LANCE registers */
|
|
|
|
void *sc_mem; /* Shared RAM */
|
1994-12-12 21:58:45 +03:00
|
|
|
|
1995-01-03 18:43:36 +03:00
|
|
|
volatile struct init_block *sc_init; /* Lance init. block */
|
|
|
|
volatile struct mds *sc_rd, *sc_td;
|
|
|
|
u_char *sc_rbuf, *sc_tbuf;
|
|
|
|
int sc_last_rd, sc_last_td;
|
|
|
|
int sc_no_td;
|
|
|
|
#ifdef LEDEBUG
|
|
|
|
int sc_debug;
|
|
|
|
#endif
|
1993-08-16 03:01:58 +04:00
|
|
|
};
|