src/dpdk/drivers/net/igc/base/igc_mac.c
void igc_init_mac_ops_generic(struct igc_hw *hw)
{
	struct igc_mac_info *mac = &hw->mac;
	DEBUGFUNC("igc_init_mac_ops_generic");

	/* General Setup */
	mac->ops.init_params = igc_null_ops_generic;
	mac->ops.init_hw = igc_null_ops_generic;
	mac->ops.reset_hw = igc_null_ops_generic;
	mac->ops.setup_physical_interface = igc_null_ops_generic;
	mac->ops.get_bus_info = igc_null_ops_generic;
	mac->ops.set_lan_id = igc_set_lan_id_multi_port_pcie;
	mac->ops.read_mac_addr = igc_read_mac_addr_generic;
	mac->ops.config_collision_dist = igc_config_collision_dist_generic;
	mac->ops.clear_hw_cntrs = igc_null_mac_generic;
	/* LED */
	mac->ops.cleanup_led = igc_null_ops_generic;
	mac->ops.setup_led = igc_null_ops_generic;
	mac->ops.blink_led = igc_null_ops_generic;
	mac->ops.led_on = igc_null_ops_generic;
	mac->ops.led_off = igc_null_ops_generic;
	/* LINK */
	mac->ops.setup_link = igc_null_ops_generic;
	mac->ops.get_link_up_info = igc_null_link_info;
	mac->ops.check_for_link = igc_null_ops_generic;
	/* Management */
	mac->ops.check_mng_mode = igc_null_mng_mode;
	/* VLAN, MC, etc. */
	mac->ops.update_mc_addr_list = igc_null_update_mc;
	mac->ops.clear_vfta = igc_null_mac_generic;
	mac->ops.write_vfta = igc_null_write_vfta;
	mac->ops.rar_set = igc_rar_set_generic;
	mac->ops.validate_mdi_setting = igc_validate_mdi_setting_generic;
}
/**
 *  igc_init_mac_ops_generic - Initialize MAC function pointers
 *  @hw: pointer to the HW structure
 *
 *  Setups up the function pointers to no-op functions
 **/
Initialize MAC function pointers
@hw: pointer to the HW structure

Setups up the function pointers to no-op functions
Initialize MAC function pointers @hw : pointer to the HW structure Setups up the function pointers to no - op functions
void igc_init_mac_ops_generic(struct igc_hw *hw)
{
	struct igc_mac_info *mac = &hw->mac;
	DEBUGFUNC("igc_init_mac_ops_generic");
	mac->ops.init_params = igc_null_ops_generic;
	mac->ops.init_hw = igc_null_ops_generic;
	mac->ops.reset_hw = igc_null_ops_generic;
	mac->ops.setup_physical_interface = igc_null_ops_generic;
	mac->ops.get_bus_info = igc_null_ops_generic;
	mac->ops.set_lan_id = igc_set_lan_id_multi_port_pcie;
	mac->ops.read_mac_addr = igc_read_mac_addr_generic;
	mac->ops.config_collision_dist = igc_config_collision_dist_generic;
	mac->ops.clear_hw_cntrs = igc_null_mac_generic;
	mac->ops.cleanup_led = igc_null_ops_generic;
	mac->ops.setup_led = igc_null_ops_generic;
	mac->ops.blink_led = igc_null_ops_generic;
	mac->ops.led_on = igc_null_ops_generic;
	mac->ops.led_off = igc_null_ops_generic;
	mac->ops.setup_link = igc_null_ops_generic;
	mac->ops.get_link_up_info = igc_null_link_info;
	mac->ops.check_for_link = igc_null_ops_generic;
	mac->ops.check_mng_mode = igc_null_mng_mode;
	mac->ops.update_mc_addr_list = igc_null_update_mc;
	mac->ops.clear_vfta = igc_null_mac_generic;
	mac->ops.write_vfta = igc_null_write_vfta;
	mac->ops.rar_set = igc_rar_set_generic;
	mac->ops.validate_mdi_setting = igc_validate_mdi_setting_generic;
}
void igc_init_mac_ops_generic ( struct igc_hw * hw ) { struct igc_mac_info * mac = & hw -> mac ; DEBUGFUNC ( " " ) ; mac -> ops . init_params = igc_null_ops_generic ; mac -> ops . init_hw = igc_null_ops_generic ; mac -> ops . reset_hw = igc_null_ops_generic ; mac -> ops . setup_physical_interface = igc_null_ops_generic ; mac -> ops . get_bus_info = igc_null_ops_generic ; mac -> ops . set_lan_id = igc_set_lan_id_multi_port_pcie ; mac -> ops . read_mac_addr = igc_read_mac_addr_generic ; mac -> ops . config_collision_dist = igc_config_collision_dist_generic ; mac -> ops . clear_hw_cntrs = igc_null_mac_generic ; mac -> ops . cleanup_led = igc_null_ops_generic ; mac -> ops . setup_led = igc_null_ops_generic ; mac -> ops . blink_led = igc_null_ops_generic ; mac -> ops . led_on = igc_null_ops_generic ; mac -> ops . led_off = igc_null_ops_generic ; mac -> ops . setup_link = igc_null_ops_generic ; mac -> ops . get_link_up_info = igc_null_link_info ; mac -> ops . check_for_link = igc_null_ops_generic ; mac -> ops . check_mng_mode = igc_null_mng_mode ; mac -> ops . update_mc_addr_list = igc_null_update_mc ; mac -> ops . clear_vfta = igc_null_mac_generic ; mac -> ops . write_vfta = igc_null_write_vfta ; mac -> ops . rar_set = igc_rar_set_generic ; mac -> ops . validate_mdi_setting = igc_validate_mdi_setting_generic ; }
igc_init_mac_ops_generic - Initialize MAC function pointers
  @hw: pointer to the HW structure
igc_init_mac_ops_generic - Initialize MAC function pointers @hw : pointer to the HW structure
/* General Setup */ /* LED */ /* LINK */ /* Management */ /* VLAN, MC, etc. */