Lines Matching defs:ae_softc
126 struct ae_softc { struct
127 device_t sc_dev; /* generic device information */
128 bus_space_tag_t sc_st; /* bus space tag */
129 bus_space_handle_t sc_sh; /* bus space handle */
130 bus_size_t sc_size; /* bus space size */
131 bus_dma_tag_t sc_dmat; /* bus DMA tag */
132 void *sc_ih; /* interrupt handle */
133 int sc_cirq; /* interrupt request line (cpu) */
134 int sc_mirq; /* interrupt request line (misc) */
135 struct ethercom sc_ethercom; /* ethernet common data */
136 void *sc_sdhook; /* shutdown hook */
137 void *sc_powerhook; /* power management hook */
139 struct ae_stats sc_stats; /* debugging stats */
141 int sc_flags; /* misc flags. */
143 struct mii_data sc_mii; /* MII/media information */
145 int sc_txthresh; /* current transmit threshold */
148 void (*sc_tick)(void *);
149 struct callout sc_tick_callout;
151 u_int32_t sc_inten; /* copy of CSR_INTEN */
153 u_int32_t sc_rxint_mask; /* mask of Rx interrupts we want */
154 u_int32_t sc_txint_mask; /* mask of Tx interrupts we want */
156 bus_dma_segment_t sc_cdseg; /* control data memory */
157 int sc_cdnseg; /* number of segments */
158 bus_dmamap_t sc_cddmamap; /* control data DMA map */
164 struct ae_txsoft sc_txsoft[AE_TXQUEUELEN];
165 struct ae_rxsoft sc_rxsoft[AE_NRXDESC];
170 struct ae_control_data *sc_control_data;
175 int sc_txfree; /* number of free Tx descriptors */
176 int sc_txnext; /* next ready Tx descriptor */
178 struct ae_txsq sc_txfreeq; /* free Tx descsofts */
179 struct ae_txsq sc_txdirtyq; /* dirty Tx descsofts */
181 u_short sc_if_flags;
183 int sc_rxptr; /* next ready RX descriptor/descsoft */
185 krndsource_t sc_rnd_source; /* random source */