Lines Matching defs:al_eth_adapter
220 struct al_eth_adapter { struct
221 enum board_t board_type;
222 device_t miibus;
223 struct mii_data *mii;
224 uint16_t dev_id;
225 uint8_t rev_id;
227 device_t dev;
228 struct ifnet *netdev;
229 struct ifmedia media;
230 struct resource *udma_res;
231 struct resource *mac_res;
232 struct resource *ec_res;
256 struct al_hal_eth_adapter hal_adapter; argument
261 unsigned int small_copy_len;
264 unsigned int max_rx_buff_alloc_size;
265 uint32_t rx_mbuf_sz;
268 int num_tx_queues;
271 int num_rx_queues;
274 struct al_eth_ring tx_ring[AL_ETH_NUM_QUEUES];
277 struct al_eth_ring rx_ring[AL_ETH_NUM_QUEUES];
279 enum al_iofic_mode int_mode;
284 struct al_eth_irq irq_tbl[AL_ETH_MAX_MSIX_VEC];
285 struct msix_entry *msix_entries;
286 int msix_vecs;
287 int irq_vecs;
289 unsigned int tx_usecs, rx_usecs; /* interrupt coalescing */
291 unsigned int tx_ring_count;
292 unsigned int tx_descs_count;
293 unsigned int rx_ring_count;
294 unsigned int rx_descs_count;
297 uint32_t toeplitz_hash_key[AL_ETH_RX_HASH_KEY_NUM];
299 uint8_t rss_ind_tbl[AL_ETH_RX_RSS_TABLE_SIZE];
324 struct al_eth_adapter_params eth_hal_params; argument
326 struct task link_status_task;
327 uint32_t link_poll_interval; /* task interval in mSec */
329 bool serdes_init;
330 struct al_serdes_grp_obj serdes_obj;
331 uint8_t serdes_grp;
332 uint8_t serdes_lane;
334 bool an_en; /* run kr auto-negotiation */
335 bool lt_en; /* run kr link-training */
337 bool sfp_detection_needed; /* true if need to run sfp detection */
338 bool auto_speed; /* true if allowed to change SerDes speed configuration */
339 uint8_t i2c_adapter_id; /* identifier for the i2c adapter to use to access SFP+ module */
340 enum al_eth_ref_clk_freq ref_clk_freq; /* reference clock frequency */
341 unsigned int mdio_freq; /* MDIO frequency [Khz] */
343 bool up;
345 bool last_link;
346 bool last_establish_failed;
347 struct al_eth_lm_context lm_context;
348 bool use_lm;
350 bool dont_override_serdes; /* avoid overriding serdes parameters
352 struct mtx serdes_config_lock;
353 struct mtx if_rx_lock;
355 uint32_t wol;
357 struct al_eth_retimer_params retimer;
359 bool phy_fixup_needed;
361 enum al_eth_lm_max_speed max_speed;