src/dpdk/drivers/net/txgbe/base/txgbe_phy.c
s32 txgbe_identify_module(struct txgbe_hw *hw)
{
	s32 err = TXGBE_ERR_SFP_NOT_PRESENT;

	DEBUGFUNC("txgbe_identify_module");

	switch (hw->phy.media_type) {
	case txgbe_media_type_fiber:
		err = txgbe_identify_sfp_module(hw);
		break;

	case txgbe_media_type_fiber_qsfp:
		err = txgbe_identify_qsfp_module(hw);
		break;

	default:
		hw->phy.sfp_type = txgbe_sfp_type_not_present;
		err = TXGBE_ERR_SFP_NOT_PRESENT;
		break;
	}

	return err;
}
/**
 *  txgbe_identify_module - Identifies module type
 *  @hw: pointer to hardware structure
 *
 *  Determines HW type and calls appropriate function.
 **/
Identifies module type
@hw: pointer to hardware structure

Determines HW type and calls appropriate function.
Identifies module type @hw : pointer to hardware structure Determines HW type and calls appropriate function .
s32 txgbe_identify_module(struct txgbe_hw *hw)
{
	s32 err = TXGBE_ERR_SFP_NOT_PRESENT;
	DEBUGFUNC("txgbe_identify_module");
	switch (hw->phy.media_type) {
	case txgbe_media_type_fiber:
		err = txgbe_identify_sfp_module(hw);
		break;
	case txgbe_media_type_fiber_qsfp:
		err = txgbe_identify_qsfp_module(hw);
		break;
	default:
		hw->phy.sfp_type = txgbe_sfp_type_not_present;
		err = TXGBE_ERR_SFP_NOT_PRESENT;
		break;
	}
	return err;
}
s32 txgbe_identify_module ( struct txgbe_hw * hw ) { s32 err = TXGBE_ERR_SFP_NOT_PRESENT ; DEBUGFUNC ( " " ) ; switch ( hw -> phy . media_type ) { case txgbe_media_type_fiber : err = txgbe_identify_sfp_module ( hw ) ; break ; case txgbe_media_type_fiber_qsfp : err = txgbe_identify_qsfp_module ( hw ) ; break ; default : hw -> phy . sfp_type = txgbe_sfp_type_not_present ; err = TXGBE_ERR_SFP_NOT_PRESENT ; break ; } return err ; }
txgbe_identify_module - Identifies module type
  @hw: pointer to hardware structure
txgbe_identify_module - Identifies module type @hw : pointer to hardware structure