diff options
Diffstat (limited to 'sys/dev/ic/midwayvar.h')
-rw-r--r-- | sys/dev/ic/midwayvar.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/dev/ic/midwayvar.h b/sys/dev/ic/midwayvar.h index 28661608b6c..2b5061d45ab 100644 --- a/sys/dev/ic/midwayvar.h +++ b/sys/dev/ic/midwayvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: midwayvar.h,v 1.8 1996/07/16 22:08:16 chuck Exp $ */ +/* $OpenBSD: midwayvar.h,v 1.9 1997/03/20 22:03:05 chuck Exp $ */ /* * @@ -101,9 +101,11 @@ struct en_softc { struct ifnet enif; /* network ifnet handle */ /* bus glue */ - bus_chipset_tag_t en_bc; /* for EN_READ/EN_WRITE */ - bus_mem_handle_t en_base; /* base of en card */ - bus_mem_size_t en_obmemsz; /* size of en card (bytes) */ + bus_space_tag_t en_memt; /* for EN_READ/EN_WRITE */ + bus_space_handle_t en_base; /* base of en card */ + bus_size_t en_obmemsz; /* size of en card (bytes) */ + void (*en_busreset) __P((void *)); + /* bus specific reset function */ /* serv list */ u_int32_t hwslistp; /* hw pointer to service list (byte offset) */ @@ -133,12 +135,14 @@ struct en_softc { u_int32_t bfree; /* # free bytes in buffer (not dma or xmit) */ u_int32_t start, stop; /* ends of buffer area (byte offset) */ u_int32_t cur; /* next free area (byte offset) */ + u_int32_t nref; /* # of VCs using this channel */ struct ifqueue indma; /* mbufs being dma'd now */ struct ifqueue q; /* mbufs waiting for dma now */ } txslot[MID_NTX_CH]; /* xmit vc ctrl. (per vc) */ u_int8_t txspeed[MID_N_VC]; /* speed of tx on a VC */ + u_int8_t txvc2slot[MID_N_VC]; /* map VC to slot */ /* recv vc ctrl. (per vc). maps VC number to recv slot */ u_int16_t rxvc2slot[MID_N_VC]; @@ -189,6 +193,7 @@ struct en_softc { u_int8_t bestburstshift; /* (x >> shift) == (x / bestburstlen) */ u_int8_t bestburstmask; /* bits to check if not multiple of burst */ u_int8_t alburst; /* align dma bursts? */ + u_int8_t is_adaptec; /* adaptec version of midway? */ }; /* |