/illumos-gate/usr/src/uts/common/io/igc/core/ |
H A D | igc_api.h | 12 extern void igc_init_function_pointers_i225(struct igc_hw *hw); 14 s32 igc_set_mac_type(struct igc_hw *hw); 15 s32 igc_setup_init_funcs(struct igc_hw *hw, bool init_device); 16 s32 igc_init_mac_params(struct igc_hw *hw); 17 s32 igc_init_nvm_params(struct igc_hw *hw); 18 s32 igc_init_phy_params(struct igc_hw *hw); 19 s32 igc_get_bus_info(struct igc_hw *hw); 20 void igc_clear_vfta(struct igc_hw *hw); 21 void igc_write_vfta(struct igc_hw *hw, u32 offset, u32 value); 22 s32 igc_force_mac_fc(struct igc_hw *hw); [all …]
|
H A D | igc_mac.h | 10 void igc_init_mac_ops_generic(struct igc_hw *hw); 11 void igc_null_mac_generic(struct igc_hw *hw); 12 s32 igc_null_ops_generic(struct igc_hw *hw); 13 s32 igc_null_link_info(struct igc_hw *hw, u16 *s, u16 *d); 14 bool igc_null_mng_mode(struct igc_hw *hw); 15 void igc_null_update_mc(struct igc_hw *hw, u8 *h, u32 a); 16 void igc_null_write_vfta(struct igc_hw *hw, u32 a, u32 b); 17 int igc_null_rar_set(struct igc_hw *hw, u8 *h, u32 a); 18 s32 igc_check_for_copper_link_generic(struct igc_hw *hw); 19 s32 igc_config_fc_after_link_up_generic(struct igc_hw *hw); [all …]
|
H A D | igc_hw.h | 14 struct igc_hw; 345 s32 (*init_params)(struct igc_hw *); 346 s32 (*check_for_link)(struct igc_hw *); 347 void (*clear_hw_cntrs)(struct igc_hw *); 348 void (*clear_vfta)(struct igc_hw *); 349 s32 (*get_bus_info)(struct igc_hw *); 350 void (*set_lan_id)(struct igc_hw *); 351 s32 (*get_link_up_info)(struct igc_hw *, u16 *, u16 *); 352 void (*update_mc_addr_list)(struct igc_hw *, u8 *, u32); 353 s32 (*reset_hw)(struct igc_hw *); [all …]
|
H A D | igc_phy.h | 10 void igc_init_phy_ops_generic(struct igc_hw *hw); 11 s32 igc_null_read_reg(struct igc_hw *hw, u32 offset, u16 *data); 12 void igc_null_phy_generic(struct igc_hw *hw); 13 s32 igc_null_lplu_state(struct igc_hw *hw, bool active); 14 s32 igc_null_write_reg(struct igc_hw *hw, u32 offset, u16 data); 15 s32 igc_null_set_page(struct igc_hw *hw, u16 data); 16 s32 igc_check_downshift_generic(struct igc_hw *hw); 17 s32 igc_check_reset_block_generic(struct igc_hw *hw); 18 s32 igc_get_phy_id(struct igc_hw *hw); 19 void igc_phy_force_speed_duplex_setup(struct igc_hw *hw, u16 *phy_ctrl); [all …]
|
H A D | igc_api.c | 16 s32 igc_init_mac_params(struct igc_hw *hw) in igc_init_mac_params() 42 s32 igc_init_nvm_params(struct igc_hw *hw) in igc_init_nvm_params() 68 s32 igc_init_phy_params(struct igc_hw *hw) in igc_init_phy_params() 96 s32 igc_set_mac_type(struct igc_hw *hw) in igc_set_mac_type() 141 s32 igc_setup_init_funcs(struct igc_hw *hw, bool init_device) in igc_setup_init_funcs() 211 s32 igc_get_bus_info(struct igc_hw *hw) in igc_get_bus_info() 226 void igc_clear_vfta(struct igc_hw *hw) in igc_clear_vfta() 241 void igc_write_vfta(struct igc_hw *hw, u32 offset, u32 value) in igc_write_vfta() 256 void igc_update_mc_addr_list(struct igc_hw *hw, u8 *mc_addr_list, in igc_update_mc_addr_list() 272 s32 igc_force_mac_fc(struct igc_hw *hw) in igc_force_mac_fc() [all …]
|
H A D | igc_nvm.h | 10 void igc_init_nvm_ops_generic(struct igc_hw *hw); 11 s32 igc_null_read_nvm(struct igc_hw *hw, u16 a, u16 b, u16 *c); 12 void igc_null_nvm_generic(struct igc_hw *hw); 13 s32 igc_null_led_default(struct igc_hw *hw, u16 *data); 14 s32 igc_null_write_nvm(struct igc_hw *hw, u16 a, u16 b, u16 *c); 15 s32 igc_acquire_nvm_generic(struct igc_hw *hw); 17 s32 igc_poll_eerd_eewr_done(struct igc_hw *hw, int ee_reg); 18 s32 igc_read_mac_addr_generic(struct igc_hw *hw); 19 s32 igc_read_pba_string_generic(struct igc_hw *hw, u8 *pba_num, 21 s32 igc_read_nvm_eerd(struct igc_hw *hw, u16 offset, u16 words, [all …]
|
H A D | igc_i225.h | 10 bool igc_get_flash_presence_i225(struct igc_hw *hw); 11 s32 igc_update_flash_i225(struct igc_hw *hw); 12 s32 igc_update_nvm_checksum_i225(struct igc_hw *hw); 13 s32 igc_validate_nvm_checksum_i225(struct igc_hw *hw); 14 s32 igc_write_nvm_srwr_i225(struct igc_hw *hw, u16 offset, 16 s32 igc_read_nvm_srrd_i225(struct igc_hw *hw, u16 offset, 18 s32 igc_set_flsw_flash_burst_counter_i225(struct igc_hw *hw, 20 s32 igc_write_erase_flash_command_i225(struct igc_hw *hw, u32 opcode, 22 s32 igc_check_for_link_i225(struct igc_hw *hw); 23 s32 igc_acquire_swfw_sync_i225(struct igc_hw *hw, u16 mask); [all …]
|
H A D | igc_i225.c | 9 static s32 igc_init_nvm_params_i225(struct igc_hw *hw); 10 static s32 igc_init_mac_params_i225(struct igc_hw *hw); 11 static s32 igc_init_phy_params_i225(struct igc_hw *hw); 12 static s32 igc_reset_hw_i225(struct igc_hw *hw); 13 static s32 igc_acquire_nvm_i225(struct igc_hw *hw); 14 static void igc_release_nvm_i225(struct igc_hw *hw); 15 static s32 igc_get_hw_semaphore_i225(struct igc_hw *hw); 16 static s32 __igc_write_nvm_srwr(struct igc_hw *hw, u16 offset, u16 words, 18 static s32 igc_pool_flash_update_done_i225(struct igc_hw *hw); 24 static s32 igc_init_nvm_params_i225(struct igc_hw *hw) in igc_init_nvm_params_i225() [all …]
|
H A D | igc_mac.c | 9 static void igc_config_collision_dist_generic(struct igc_hw *hw); 17 void igc_init_mac_ops_generic(struct igc_hw *hw) in igc_init_mac_ops_generic() 32 s32 igc_null_ops_generic(struct igc_hw IGC_UNUSEDARG *hw) in igc_null_ops_generic() 42 void igc_null_mac_generic(struct igc_hw IGC_UNUSEDARG *hw) in igc_null_mac_generic() 54 s32 igc_null_link_info(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_link_info() 65 bool igc_null_mng_mode(struct igc_hw IGC_UNUSEDARG *hw) in igc_null_mng_mode() 77 void igc_null_update_mc(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_update_mc() 90 void igc_null_write_vfta(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_write_vfta() 103 int igc_null_rar_set(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_rar_set() 116 void igc_set_lan_id_single_port(struct igc_hw *hw) in igc_set_lan_id_single_port() [all …]
|
H A D | igc_nvm.c | 9 static void igc_reload_nvm_generic(struct igc_hw *hw); 17 void igc_init_nvm_ops_generic(struct igc_hw *hw) in igc_init_nvm_ops_generic() 40 s32 igc_null_read_nvm(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_read_nvm() 52 void igc_null_nvm_generic(struct igc_hw IGC_UNUSEDARG *hw) in igc_null_nvm_generic() 65 s32 igc_null_write_nvm(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_write_nvm() 80 static void igc_raise_eec_clk(struct igc_hw *hw, u32 *eecd) in igc_raise_eec_clk() 95 static void igc_lower_eec_clk(struct igc_hw *hw, u32 *eecd) in igc_lower_eec_clk() 113 static void igc_shift_out_eec_bits(struct igc_hw *hw, u16 data, u16 count) in igc_shift_out_eec_bits() 157 static u16 igc_shift_in_eec_bits(struct igc_hw *hw, u16 count) in igc_shift_in_eec_bits() 194 s32 igc_poll_eerd_eewr_done(struct igc_hw *hw, int ee_reg) in igc_poll_eerd_eewr_done() [all …]
|
H A D | igc_phy.c | 9 static s32 igc_wait_autoneg(struct igc_hw *hw); 17 void igc_init_phy_ops_generic(struct igc_hw *hw) in igc_init_phy_ops_generic() 48 s32 igc_null_set_page(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_set_page() 61 s32 igc_null_read_reg(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_read_reg() 72 void igc_null_phy_generic(struct igc_hw IGC_UNUSEDARG *hw) in igc_null_phy_generic() 83 s32 igc_null_lplu_state(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_lplu_state() 96 s32 igc_null_write_reg(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_write_reg() 111 s32 igc_check_reset_block_generic(struct igc_hw *hw) in igc_check_reset_block_generic() 130 s32 igc_get_phy_id(struct igc_hw *hw) in igc_get_phy_id() 166 s32 igc_read_phy_reg_mdic(struct igc_hw *hw, u32 offset, u16 *data) in igc_read_phy_reg_mdic() [all …]
|
H A D | igc_base.h | 11 s32 igc_init_hw_base(struct igc_hw *hw); 12 void igc_power_down_phy_copper_base(struct igc_hw *hw); 13 extern void igc_rx_fifo_flush_base(struct igc_hw *hw); 14 s32 igc_acquire_phy_base(struct igc_hw *hw); 15 void igc_release_phy_base(struct igc_hw *hw);
|
H A D | igc_base.c | 18 s32 igc_acquire_phy_base(struct igc_hw *hw) in igc_acquire_phy_base() 36 void igc_release_phy_base(struct igc_hw *hw) in igc_release_phy_base() 54 s32 igc_init_hw_base(struct igc_hw *hw) in igc_init_hw_base() 95 void igc_power_down_phy_copper_base(struct igc_hw *hw) in igc_power_down_phy_copper_base() 118 void igc_rx_fifo_flush_base(struct igc_hw *hw) in igc_rx_fifo_flush_base()
|
/illumos-gate/usr/src/uts/common/io/igc/ |
H A D | igc.c | 544 (void) igc_check_for_link(&igc->igc_hw); in igc_link_up() 545 return (!igc->igc_hw.mac.get_link_status); in igc_link_up() 560 igc->igc_hw.mac.get_link_status = true; in igc_intr_lsc() 564 (void) igc_get_speed_and_duplex(&igc->igc_hw, in igc_intr_lsc() 589 (void) igc_read_phy_reg(&igc->igc_hw, PHY_CONTROL, &igc->igc_phy_ctrl); in igc_intr_lsc() 590 (void) igc_read_phy_reg(&igc->igc_hw, PHY_STATUS, &igc->igc_phy_status); in igc_intr_lsc() 591 (void) igc_read_phy_reg(&igc->igc_hw, PHY_AUTONEG_ADV, in igc_intr_lsc() 593 (void) igc_read_phy_reg(&igc->igc_hw, PHY_LP_ABILITY, in igc_intr_lsc() 595 (void) igc_read_phy_reg(&igc->igc_hw, PHY_AUTONEG_EXP, in igc_intr_lsc() 597 (void) igc_read_phy_reg(&igc->igc_hw, PHY_1000T_CTRL, in igc_intr_lsc() [all …]
|
H A D | igc_gld.c | 53 if (igc->igc_hw.phy.media_type == map->imm_phy && in igc_link_to_media() 81 an_adv = igc->igc_hw.phy.autoneg_advertised; in igc_m_getstat() 194 *valp = igc->igc_hw.phy.addr; in igc_m_getstat() 197 *valp = igc->igc_hw.phy.id | igc->igc_hw.phy.revision; in igc_m_getstat() 242 *valp = igc->igc_hw.mac.autoneg; in igc_m_getstat() 272 *valp = (igc->igc_hw.fc.current_mode == igc_fc_full || in igc_m_getstat() 273 igc->igc_hw.fc.current_mode == igc_fc_rx_pause); in igc_m_getstat() 276 *valp = (igc->igc_hw.fc.current_mode == igc_fc_full || in igc_m_getstat() 277 igc->igc_hw.fc.current_mode == igc_fc_tx_pause); in igc_m_getstat() 280 *valp = igc->igc_hw.mac.autoneg; in igc_m_getstat() [all …]
|
H A D | igc_osdep.h | 44 struct igc_hw; 63 extern uint32_t IGC_READ_REG(struct igc_hw *, uint32_t); 64 extern void IGC_WRITE_REG(struct igc_hw *, uint32_t, uint32_t); 65 extern void IGC_WRITE_REG_ARRAY(struct igc_hw *, uint32_t, uint32_t, uint32_t); 87 extern void igc_core_log(struct igc_hw *, const char *, ...);
|
H A D | igc_osdep.c | 30 igc_core_log(struct igc_hw *hw, const char *fmt, ...) in igc_core_log() 44 IGC_READ_REG(struct igc_hw *hw, uint32_t reg) in IGC_READ_REG() 52 IGC_WRITE_REG(struct igc_hw *hw, uint32_t reg, uint32_t val) in IGC_WRITE_REG() 60 IGC_WRITE_REG_ARRAY(struct igc_hw *hw, uint32_t reg, uint32_t offset, in IGC_WRITE_REG_ARRAY()
|
H A D | igc.h | 437 struct igc_hw igc_hw; member
|
H A D | igc_ring.c | 577 rctl |= igc->igc_hw.mac.mc_filter_type << IGC_RCTL_MO_SHIFT; in igc_rx_hw_init()
|