Lines Matching defs:stge_softc

130 struct stge_softc {  struct
131 device_t sc_dev; /* generic device information */
132 bus_space_tag_t sc_st; /* bus space tag */
133 bus_space_handle_t sc_sh; /* bus space handle */
134 bus_dma_tag_t sc_dmat; /* bus DMA tag */
135 struct ethercom sc_ethercom; /* ethernet common data */
136 int sc_rev; /* silicon revision */
138 void *sc_ih; /* interrupt cookie */
140 struct mii_data sc_mii; /* MII/media information */
142 callout_t sc_tick_ch; /* tick callout */
144 bus_dmamap_t sc_cddmamap; /* control data DMA map */
150 struct stge_descsoft sc_txsoft[STGE_NTXDESC];
151 struct stge_descsoft sc_rxsoft[STGE_NRXDESC];
156 struct stge_control_data *sc_control_data;
164 struct evcnt sc_ev_txstall; /* Tx stalled */
165 struct evcnt sc_ev_txdmaintr; /* Tx DMA interrupts */
166 struct evcnt sc_ev_txindintr; /* Tx Indicate interrupts */
167 struct evcnt sc_ev_rxintr; /* Rx interrupts */
169 struct evcnt sc_ev_txseg1; /* Tx packets w/ 1 segment */
170 struct evcnt sc_ev_txseg2; /* Tx packets w/ 2 segments */
171 struct evcnt sc_ev_txseg3; /* Tx packets w/ 3 segments */
172 struct evcnt sc_ev_txseg4; /* Tx packets w/ 4 segments */
173 struct evcnt sc_ev_txseg5; /* Tx packets w/ 5 segments */
174 struct evcnt sc_ev_txsegmore; /* Tx packets w/ more than 5 segments */
175 struct evcnt sc_ev_txcopy; /* Tx packets that we had to copy */
177 struct evcnt sc_ev_rxipsum; /* IP checksums checked in-bound */
178 struct evcnt sc_ev_rxtcpsum; /* TCP checksums checked in-bound */
179 struct evcnt sc_ev_rxudpsum; /* UDP checksums checked in-bound */
181 struct evcnt sc_ev_txipsum; /* IP checksums comp. out-bound */
182 struct evcnt sc_ev_txtcpsum; /* TCP checksums comp. out-bound */
183 struct evcnt sc_ev_txudpsum; /* UDP checksums comp. out-bound */
186 int sc_txpending; /* number of Tx requests pending */
187 int sc_txdirty; /* first dirty Tx descriptor */
188 int sc_txlast; /* last used Tx descriptor */
190 int sc_rxptr; /* next ready Rx descriptor/descsoft */
191 int sc_rxdiscard;
192 int sc_rxlen;
193 struct mbuf *sc_rxhead;
194 struct mbuf *sc_rxtail;
195 struct mbuf **sc_rxtailp;
197 int sc_txthresh; /* Tx threshold */
198 uint32_t sc_usefiber:1; /* if we're fiber */
199 uint32_t sc_stge1023:1; /* are we a 1023 */
200 uint32_t sc_DMACtrl; /* prototype DMACtrl register */
201 uint32_t sc_MACCtrl; /* prototype MacCtrl register */
202 uint16_t sc_IntEnable; /* prototype IntEnable register */
203 uint16_t sc_ReceiveMode; /* prototype ReceiveMode register */
204 uint8_t sc_PhyCtrl; /* prototype PhyCtrl register */