src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
void txgbe_set_hard_rate_select_speed(struct txgbe_hw *hw,
					u32 speed)
{
	u32 esdp_reg = rd32(hw, TXGBE_GPIODATA);

	switch (speed) {
	case TXGBE_LINK_SPEED_10GB_FULL:
		esdp_reg |= (TXGBE_GPIOBIT_4 | TXGBE_GPIOBIT_5);
		break;
	case TXGBE_LINK_SPEED_1GB_FULL:
		esdp_reg &= ~(TXGBE_GPIOBIT_4 | TXGBE_GPIOBIT_5);
		break;
	default:
		DEBUGOUT("Invalid fixed module speed\n");
		return;
	}

	wr32(hw, TXGBE_GPIODATA, esdp_reg);
	txgbe_flush(hw);
}
/**
 *  txgbe_set_hard_rate_select_speed - Set module link speed
 *  @hw: pointer to hardware structure
 *  @speed: link speed to set
 *
 *  Set module link speed via RS0/RS1 rate select pins.
 */
Set module link speed
@hw: pointer to hardware structure
@speed: link speed to set

Set module link speed via RS0/RS1 rate select pins.
Set module link speed @hw : pointer to hardware structure @speed : link speed to set Set module link speed via RS0 / RS1 rate select pins .
void txgbe_set_hard_rate_select_speed(struct txgbe_hw *hw,
					u32 speed)
{
	u32 esdp_reg = rd32(hw, TXGBE_GPIODATA);
	switch (speed) {
	case TXGBE_LINK_SPEED_10GB_FULL:
		esdp_reg |= (TXGBE_GPIOBIT_4 | TXGBE_GPIOBIT_5);
		break;
	case TXGBE_LINK_SPEED_1GB_FULL:
		esdp_reg &= ~(TXGBE_GPIOBIT_4 | TXGBE_GPIOBIT_5);
		break;
	default:
		DEBUGOUT("Invalid fixed module speed\n");
		return;
	}
	wr32(hw, TXGBE_GPIODATA, esdp_reg);
	txgbe_flush(hw);
}
void txgbe_set_hard_rate_select_speed ( struct txgbe_hw * hw , u32 speed ) { u32 esdp_reg = rd32 ( hw , TXGBE_GPIODATA ) ; switch ( speed ) { case TXGBE_LINK_SPEED_10GB_FULL : esdp_reg |= ( TXGBE_GPIOBIT_4 | TXGBE_GPIOBIT_5 ) ; break ; case TXGBE_LINK_SPEED_1GB_FULL : esdp_reg &= ~ ( TXGBE_GPIOBIT_4 | TXGBE_GPIOBIT_5 ) ; break ; default : DEBUGOUT ( " \n " ) ; return ; } wr32 ( hw , TXGBE_GPIODATA , esdp_reg ) ; txgbe_flush ( hw ) ; }
txgbe_set_hard_rate_select_speed - Set module link speed
  @hw: pointer to hardware structure
  @speed: link speed to set
txgbe_set_hard_rate_select_speed - Set module link speed @hw : pointer to hardware structure @speed : link speed to set