Lines Matching defs:mec_softc
283 struct mec_softc { struct
284 device_t sc_dev; /* generic device structures */
286 bus_space_tag_t sc_st; /* bus_space tag */
287 bus_space_handle_t sc_sh; /* bus_space handle */
288 bus_dma_tag_t sc_dmat; /* bus_dma tag */
290 struct ethercom sc_ethercom; /* Ethernet common part */
292 struct mii_data sc_mii; /* MII/media information */
293 int sc_phyaddr; /* MII address */
294 struct callout sc_tick_ch; /* tick callout */
296 uint8_t sc_enaddr[ETHER_ADDR_LEN]; /* MAC address */
298 bus_dmamap_t sc_cddmamap; /* bus_dma map for control data */
302 struct mec_control_data *sc_control_data;
307 struct mec_txsoft sc_txsoft[MEC_NTXDESC];
309 int sc_txpending; /* number of TX requests pending */
310 int sc_txdirty; /* first dirty TX descriptor */
311 int sc_txlast; /* last used TX descriptor */
313 int sc_rxptr; /* next ready RX buffer */
315 krndsource_t sc_rnd_source; /* random source */
317 struct evcnt sc_ev_txpkts; /* TX packets queued total */
318 struct evcnt sc_ev_txdpad; /* TX packets padded in txdesc buf */
319 struct evcnt sc_ev_txdbuf; /* TX packets copied to txdesc buf */
320 struct evcnt sc_ev_txptr1; /* TX packets using concat ptr1 */
321 struct evcnt sc_ev_txptr1a; /* TX packets w/ptr1 ~160bytes */
322 struct evcnt sc_ev_txptr1b; /* TX packets w/ptr1 ~256bytes */
323 struct evcnt sc_ev_txptr1c; /* TX packets w/ptr1 ~512bytes */
324 struct evcnt sc_ev_txptr1d; /* TX packets w/ptr1 ~1024bytes */
325 struct evcnt sc_ev_txptr1e; /* TX packets w/ptr1 >1024bytes */
326 struct evcnt sc_ev_txptr2; /* TX packets using concat ptr1,2 */
327 struct evcnt sc_ev_txptr2a; /* TX packets w/ptr2 ~160bytes */
328 struct evcnt sc_ev_txptr2b; /* TX packets w/ptr2 ~256bytes */
329 struct evcnt sc_ev_txptr2c; /* TX packets w/ptr2 ~512bytes */
330 struct evcnt sc_ev_txptr2d; /* TX packets w/ptr2 ~1024bytes */
331 struct evcnt sc_ev_txptr2e; /* TX packets w/ptr2 >1024bytes */
332 struct evcnt sc_ev_txptr3; /* TX packets using concat ptr1,2,3 */
333 struct evcnt sc_ev_txptr3a; /* TX packets w/ptr3 ~160bytes */
334 struct evcnt sc_ev_txptr3b; /* TX packets w/ptr3 ~256bytes */
335 struct evcnt sc_ev_txptr3c; /* TX packets w/ptr3 ~512bytes */
336 struct evcnt sc_ev_txptr3d; /* TX packets w/ptr3 ~1024bytes */
337 struct evcnt sc_ev_txptr3e; /* TX packets w/ptr3 >1024bytes */
338 struct evcnt sc_ev_txmbuf; /* TX packets copied to new mbufs */
339 struct evcnt sc_ev_txmbufa; /* TX packets w/mbuf ~160bytes */
340 struct evcnt sc_ev_txmbufb; /* TX packets w/mbuf ~256bytes */
341 struct evcnt sc_ev_txmbufc; /* TX packets w/mbuf ~512bytes */
342 struct evcnt sc_ev_txmbufd; /* TX packets w/mbuf ~1024bytes */
343 struct evcnt sc_ev_txmbufe; /* TX packets w/mbuf >1024bytes */
344 struct evcnt sc_ev_txptrs; /* TX packets using ptrs total */
345 struct evcnt sc_ev_txptrc0; /* TX packets w/ptrs no hdr chain */
346 struct evcnt sc_ev_txptrc1; /* TX packets w/ptrs 1 hdr chain */
347 struct evcnt sc_ev_txptrc2; /* TX packets w/ptrs 2 hdr chains */
348 struct evcnt sc_ev_txptrc3; /* TX packets w/ptrs 3 hdr chains */
349 struct evcnt sc_ev_txptrc4; /* TX packets w/ptrs 4 hdr chains */
350 struct evcnt sc_ev_txptrc5; /* TX packets w/ptrs 5 hdr chains */
351 struct evcnt sc_ev_txptrc6; /* TX packets w/ptrs >5 hdr chains */
352 struct evcnt sc_ev_txptrh0; /* TX packets w/ptrs ~8bytes hdr */
353 struct evcnt sc_ev_txptrh1; /* TX packets w/ptrs ~16bytes hdr */
354 struct evcnt sc_ev_txptrh2; /* TX packets w/ptrs ~32bytes hdr */
355 struct evcnt sc_ev_txptrh3; /* TX packets w/ptrs ~64bytes hdr */
356 struct evcnt sc_ev_txptrh4; /* TX packets w/ptrs ~80bytes hdr */
357 struct evcnt sc_ev_txptrh5; /* TX packets w/ptrs ~96bytes hdr */
358 struct evcnt sc_ev_txdstall; /* TX stalled due to no txdesc */
359 struct evcnt sc_ev_txempty; /* TX empty interrupts */
360 struct evcnt sc_ev_txsent; /* TX sent interrupts */