Lines Matching defs:scx_softc
453 struct scx_softc { struct
454 device_t sc_dev; /* generic device information */
455 bus_space_tag_t sc_st; /* bus space tag */
456 bus_space_handle_t sc_sh; /* bus space handle */
457 bus_size_t sc_sz; /* csr map size */
458 bus_space_handle_t sc_eesh; /* eeprom section handle */
459 bus_size_t sc_eesz; /* eeprom map size */
460 bus_dma_tag_t sc_dmat; /* bus DMA tag */
461 struct ethercom sc_ethercom; /* Ethernet common data */
462 struct mii_data sc_mii; /* MII */
463 callout_t sc_callout; /* PHY monitor callout */
464 bus_dma_segment_t sc_seg; /* descriptor store seg */
465 int sc_nseg; /* descriptor store nseg */
466 void *sc_ih; /* interrupt cookie */
467 int sc_phy_id; /* PHY address */
468 int sc_flowflags; /* 802.3x PAUSE flow control */
469 uint32_t sc_mdclk; /* GAR 5:2 clock selection */
470 uint32_t sc_t0cotso; /* T0_CSUM | T0_TSO to run */
471 int sc_miigmii; /* 1: MII/GMII, 0: RGMII */
472 int sc_phandle; /* fdt phandle */
473 uint64_t sc_freq;
474 uint32_t sc_maxsize;
476 bus_dmamap_t sc_cddmamap; /* control data DMA map */
479 struct control_data *sc_control_data;
483 struct scx_txsoft sc_txsoft[MD_TXQUEUELEN];
484 struct scx_rxsoft sc_rxsoft[MD_NRXDESC];
485 int sc_txfree; /* number of free Tx descriptors */
486 int sc_txnext; /* next ready Tx descriptor */
487 int sc_txsfree; /* number of free Tx jobs */
488 int sc_txsnext; /* next ready Tx job */
489 int sc_txsdirty; /* dirty Tx jobs */
490 int sc_rxptr; /* next ready Rx descriptor/descsoft */
492 krndsource_t rnd_source; /* random source */