Lines Matching full:adapter
78 /* PCI Adapter Device/Revision ID */
411 /** Ethernet Adapter private data structure used by this driver */
413 uint8_t rev_id; /**<PCI adapter revision ID */
414 uint8_t udma_id; /**< the id of the UDMA used by this adapter */
446 uint8_t rev_id; /**<PCI adapter revision ID */
447 uint8_t udma_id; /**< the id of the UDMA used by this adapter */
461 /* adapter management */
463 * initialize the ethernet adapter's DMA
464 * - initialize the adapter data structure
468 * @param adapter pointer to the private structure
473 int al_eth_adapter_init(struct al_hal_eth_adapter *adapter, struct al_eth_adapter_params *params);
476 * stop the DMA of the ethernet adapter
478 * @param adapter pointer to the private structure
482 int al_eth_adapter_stop(struct al_hal_eth_adapter *adapter);
484 int al_eth_adapter_reset(struct al_hal_eth_adapter *adapter);
489 * @param adapter pointer to the private structure
493 int al_eth_ec_mac_ints_config(struct al_hal_eth_adapter *adapter);
499 * @param adapter pointer to the private structure
503 int al_eth_ec_mac_isr(struct al_hal_eth_adapter *adapter);
509 * @param adapter pointer to the private structure
516 int al_eth_queue_config(struct al_hal_eth_adapter *adapter, enum al_udma_type type, uint32_t qid,
523 * @param adapter pointer to the private structure
529 int al_eth_queue_enable(struct al_hal_eth_adapter *adapter, enum al_udma_type type, uint32_t qid);
533 * @param adapter pointer to the private structure
539 int al_eth_queue_disable(struct al_hal_eth_adapter *adapter, enum al_udma_type type, uint32_t qid);
547 * @param adapter pointer to the private structure.
552 int al_eth_mac_config(struct al_hal_eth_adapter *adapter, enum al_eth_mac_mode mode);
556 * @param adapter pointer to the private structure.
560 int al_eth_mac_stop(struct al_hal_eth_adapter *adapter);
564 * @param adapter pointer to the private structure.
568 int al_eth_mac_start(struct al_hal_eth_adapter *adapter);
576 * @param adapter pointer to the private structure.
580 void al_eth_gearbox_reset(struct al_hal_eth_adapter *adapter, al_bool tx_reset, al_bool rx_reset);
585 * @param adapter pointer to the private structure.
590 int al_eth_fec_enable(struct al_hal_eth_adapter *adapter, al_bool enable);
595 * @param adapter pointer to the private structure.
601 int al_eth_fec_stats_get(struct al_hal_eth_adapter *adapter,
605 * get the adapter capabilities (speed, duplex,..)
607 * @param adapter pointer to the private structure.
612 int al_eth_capabilities_get(struct al_hal_eth_adapter *adapter, struct al_eth_capabilities *caps);
619 * @param adapter pointer to the private structure
631 int al_eth_mac_link_config(struct al_hal_eth_adapter *adapter,
639 * @param adapter pointer to the private structure
644 int al_eth_mac_loopback_config(struct al_hal_eth_adapter *adapter, int enable);
649 * @param adapter pointer to the private structure
655 int al_eth_rx_pkt_limit_config(struct al_hal_eth_adapter *adapter, uint32_t min_rx_len, uint32_t ma…
671 * @param adapter pointer to the private structure
680 int al_eth_mdio_config(struct al_hal_eth_adapter *adapter,
690 * @param adapter pointer to the private structure
698 int al_eth_mdio_read(struct al_hal_eth_adapter *adapter, uint32_t phy_addr,
705 * @param adapter pointer to the private structure
713 int al_eth_mdio_write(struct al_hal_eth_adapter *adapter, uint32_t phy_addr,
720 * @param adapter adapter handle
725 static INLINE uint32_t al_eth_tx_available_get(struct al_hal_eth_adapter *adapter, in al_eth_tx_available_get() argument
730 al_udma_q_handle_get(&adapter->tx_udma, qid, &udma_q); in al_eth_tx_available_get()
777 * @param adapter pointer to the private structure
783 int al_eth_tso_mss_config(struct al_hal_eth_adapter *adapter, uint8_t idx, uint32_t mss_val);
789 * @param adapter pointer to the private structure
799 struct al_hal_eth_adapter *adapter,
812 * @param adapter pointer to the private structure
824 int al_eth_rx_header_split_config(struct al_hal_eth_adapter *adapter, al_bool enable, uint32_t head…
830 * @param adapter pointer to the private structure
837 int al_eth_rx_header_split_force_len_config(struct al_hal_eth_adapter *adapter,
897 * @param adapter pointer to the private structure
904 int al_eth_rx_parser_entry_update(struct al_hal_eth_adapter *adapter, uint32_t idx,
909 int al_eth_thash_table_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint8_t udma, uint32_t…
949 int al_eth_fsm_table_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint32_t entry);
1073 * @param adapter pointer to the private structure
1080 int al_eth_ctrl_table_def_set(struct al_hal_eth_adapter *adapter,
1087 * @param adapter pointer to the private structure
1093 int al_eth_ctrl_table_set(struct al_hal_eth_adapter *adapter,
1097 int al_eth_ctrl_table_raw_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint32_t entry);
1098 int al_eth_ctrl_table_def_raw_set(struct al_hal_eth_adapter *adapter, uint32_t val);
1105 * @param adapter pointer to the private structure
1111 int al_eth_hash_key_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint32_t val);
1129 * @param adapter pointer to the private structure
1135 int al_eth_fwd_mac_table_set(struct al_hal_eth_adapter *adapter, uint32_t idx,
1138 int al_eth_fwd_mac_addr_raw_set(struct al_hal_eth_adapter *adapter, uint32_t idx,
1140 int al_eth_fwd_mac_ctrl_raw_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint32_t ctrl);
1150 * @param adapter pointer to the private structure
1156 int al_eth_fwd_pbits_table_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint8_t prio);
1163 * @param adapter pointer to the private structure
1169 int al_eth_fwd_priority_table_set(struct al_hal_eth_adapter *adapter, uint8_t prio, uint8_t qid);
1176 * @param adapter pointer to the private structure
1182 int al_eth_fwd_dscp_table_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint8_t prio);
1189 * @param adapter pointer to the private structure
1195 int al_eth_fwd_tc_table_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint8_t prio);
1201 * @param adapter pointer to the private structure
1208 int al_eth_fwd_mhash_table_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint8_t udma_mask,…
1219 * @param adapter pointer to the private structure
1229 int al_eth_fwd_vid_config_set(struct al_hal_eth_adapter *adapter, al_bool use_table,
1235 * @param adapter pointer to the private structure
1242 int al_eth_fwd_vid_table_set(struct al_hal_eth_adapter *adapter, uint32_t idx,
1252 * @param adapter pointer to the private structure
1258 int al_eth_fwd_default_udma_config(struct al_hal_eth_adapter *adapter, uint32_t idx,
1267 * @param adapter pointer to the private structure
1273 int al_eth_fwd_default_queue_config(struct al_hal_eth_adapter *adapter, uint32_t idx,
1282 * @param adapter pointer to the private structure
1288 int al_eth_fwd_default_priority_config(struct al_hal_eth_adapter *adapter, uint32_t idx,
1337 * @param adapter pointer to the private structure
1342 int al_eth_filter_config(struct al_hal_eth_adapter *adapter, struct al_eth_filter_params *params);
1350 * @param adapter pointer to the private structure
1355 int al_eth_filter_override_config(struct al_hal_eth_adapter *adapter,
1359 int al_eth_switching_config_set(struct al_hal_eth_adapter *adapter, uint8_t udma_id, uint8_t forwar…
1364 int al_eth_switching_default_bitmap_set(struct al_hal_eth_adapter *adapter, uint8_t udma_id, uint8_…
1366 int al_eth_flow_control_config(struct al_hal_eth_adapter *adapter, struct al_eth_flow_control_param…
1378 * @param adapter pointer to the private structure.
1383 int al_eth_eee_config(struct al_hal_eth_adapter *adapter, struct al_eth_eee_params *params);
1387 * @param adapter pointer to the private structure.
1392 int al_eth_eee_get(struct al_hal_eth_adapter *adapter, struct al_eth_eee_params *params);
1394 int al_eth_vlan_mod_config(struct al_hal_eth_adapter *adapter, uint8_t udma_id, uint16_t udma_etype…
1410 * prepare the adapter for timestamping packets.
1416 * @param adapter pointer to the private structure.
1419 int al_eth_ts_init(struct al_hal_eth_adapter *adapter);
1432 * The adapter includes AL_ETH_PTH_TX_SAMPLES_NUM timestamp samples for tx
1444 * @param adapter pointer to the private structure.
1450 int al_eth_tx_ts_val_get(struct al_hal_eth_adapter *adapter, uint8_t ts_index,
1466 * @param adapter pointer to the private structure.
1470 int al_eth_pth_systime_read(struct al_hal_eth_adapter *adapter,
1477 * @param adapter pointer to the private structure.
1481 int al_eth_pth_clk_period_write(struct al_hal_eth_adapter *adapter,
1514 * @param adapter pointer to the private structure.
1518 int al_eth_pth_int_update_config(struct al_hal_eth_adapter *adapter,
1527 * @param adapter pointer to the private structure.
1531 int al_eth_pth_int_update_time_set(struct al_hal_eth_adapter *adapter,
1547 * @param adapter pointer to the private structure.
1551 int al_eth_pth_ext_update_config(struct al_hal_eth_adapter *adapter,
1559 * @param adapter pointer to the private structure.
1563 int al_eth_pth_ext_update_time_set(struct al_hal_eth_adapter *adapter,
1571 * @param adapter pointer to the private structure.
1575 int al_eth_pth_read_compensation_set(struct al_hal_eth_adapter *adapter,
1583 * @param adapter pointer to the private structure.
1587 int al_eth_pth_int_write_compensation_set(struct al_hal_eth_adapter *adapter,
1596 * @param adapter pointer to the private structure.
1600 int al_eth_pth_ext_write_compensation_set(struct al_hal_eth_adapter *adapter,
1606 * When the adapter passes systime from PTH to MAC to do the packets
1610 * @param adapter pointer to the private structure.
1614 int al_eth_pth_sync_compensation_set(struct al_hal_eth_adapter *adapter,
1640 * @param adapter pointer to the private structure.
1644 int al_eth_pth_pulse_out_config(struct al_hal_eth_adapter *adapter,
1660 * @param adapter pointer to the private structure.
1665 int al_eth_link_status_get(struct al_hal_eth_adapter *adapter,
1673 * @param adapter pointer to the private structure.
1677 int al_eth_link_status_clear(struct al_hal_eth_adapter *adapter);
1682 * @param adapter pointer to the private structure.
1690 int al_eth_led_set(struct al_hal_eth_adapter *adapter, al_bool link_is_up);
1774 * @param adapter pointer to the private structure.
1779 int al_eth_mac_stats_get(struct al_hal_eth_adapter *adapter, struct al_eth_mac_stats *stats);
1863 * @param adapter pointer to the private structure.
1868 int al_eth_ec_stats_get(struct al_hal_eth_adapter *adapter, struct al_eth_ec_stats *stats);
1924 * @param adapter pointer to the private structure.
1930 int al_eth_ec_stat_udma_get(struct al_hal_eth_adapter *adapter, uint8_t idx, struct al_eth_ec_stat_…
2045 uint8_t i2c_adapter_id; /**< identifier for the i2c adapter to use to access SFP+ module */
2170 * @param adapter pointer to the private structure
2176 struct al_hal_eth_adapter *adapter,
2182 * @param adapter pointer to the private structure
2187 struct al_hal_eth_adapter *adapter);
2192 * @param adapter pointer to the private structure
2201 int al_eth_tx_fwd_vid_table_set(struct al_hal_eth_adapter *adapter, uint32_t idx, uint8_t udma_mask…
2333 * @param adapter pointer to the private structure
2340 int al_eth_tx_protocol_detect_table_entry_set(struct al_hal_eth_adapter *adapter, uint32_t idx,
2346 * @param adapter pointer to the private structure
2353 int al_eth_tx_generic_crc_table_entry_set(struct al_hal_eth_adapter *adapter, uint32_t idx,
2359 * @param adapter pointer to the private structure
2366 int al_eth_tx_crc_chksum_replace_cmd_entry_set(struct al_hal_eth_adapter *adapter, uint32_t idx,
2372 * @param adapter pointer to the private structure
2379 int al_eth_rx_protocol_detect_table_entry_set(struct al_hal_eth_adapter *adapter, uint32_t idx,
2385 * @param adapter pointer to the private structure
2393 int al_eth_rx_generic_crc_table_entry_set(struct al_hal_eth_adapter *adapter, uint32_t idx,
2399 * @param adapter pointer to the private structure
2402 int al_eth_tx_protocol_detect_table_init(struct al_hal_eth_adapter *adapter);
2407 * @param adapter pointer to the private structure
2410 int al_eth_tx_crc_chksum_replace_cmd_init(struct al_hal_eth_adapter *adapter);
2415 * @param adapter pointer to the private structure
2418 int al_eth_tx_generic_crc_table_init(struct al_hal_eth_adapter *adapter);
2423 * @param adapter pointer to the private structure
2426 int al_eth_rx_protocol_detect_table_init(struct al_hal_eth_adapter *adapter);
2431 * @param adapter pointer to the private structure
2434 int al_eth_rx_generic_crc_table_init(struct al_hal_eth_adapter *adapter);