src/dpdk/drivers/net/igc/base/igc_api.c
static void igc_i2c_start(struct igc_hw *hw)
{
	u32 i2cctl = IGC_READ_REG(hw, IGC_I2CPARAMS);

	DEBUGFUNC("igc_i2c_start");

	/* Start condition must begin with data and clock high */
	igc_set_i2c_data(hw, &i2cctl, 1);
	igc_raise_i2c_clk(hw, &i2cctl);

	/* Setup time for start condition (4.7us) */
	usec_delay(IGC_I2C_T_SU_STA);

	igc_set_i2c_data(hw, &i2cctl, 0);

	/* Hold time for start condition (4us) */
	usec_delay(IGC_I2C_T_HD_STA);

	igc_lower_i2c_clk(hw, &i2cctl);

	/* Minimum low period of clock is 4.7 us */
	usec_delay(IGC_I2C_T_LOW);
}
/**
 *  igc_i2c_start - Sets I2C start condition
 *  @hw: pointer to hardware structure
 *
 *  Sets I2C start condition (High -> Low on SDA while SCL is High)
 **/
Sets I2C start condition
@hw: pointer to hardware structure

Sets I2C start condition (High -> Low on SDA while SCL is High)
Sets I2C start condition @hw : pointer to hardware structure Sets I2C start condition ( High - > Low on SDA while SCL is High )
static void igc_i2c_start(struct igc_hw *hw)
{
	u32 i2cctl = IGC_READ_REG(hw, IGC_I2CPARAMS);
	DEBUGFUNC("igc_i2c_start");
	igc_set_i2c_data(hw, &i2cctl, 1);
	igc_raise_i2c_clk(hw, &i2cctl);
	usec_delay(IGC_I2C_T_SU_STA);
	igc_set_i2c_data(hw, &i2cctl, 0);
	usec_delay(IGC_I2C_T_HD_STA);
	igc_lower_i2c_clk(hw, &i2cctl);
	usec_delay(IGC_I2C_T_LOW);
}
static void igc_i2c_start ( struct igc_hw * hw ) { u32 i2cctl = IGC_READ_REG ( hw , IGC_I2CPARAMS ) ; DEBUGFUNC ( " " ) ; igc_set_i2c_data ( hw , & i2cctl , 1 ) ; igc_raise_i2c_clk ( hw , & i2cctl ) ; usec_delay ( IGC_I2C_T_SU_STA ) ; igc_set_i2c_data ( hw , & i2cctl , 0 ) ; usec_delay ( IGC_I2C_T_HD_STA ) ; igc_lower_i2c_clk ( hw , & i2cctl ) ; usec_delay ( IGC_I2C_T_LOW ) ; }
igc_i2c_start - Sets I2C start condition
  @hw: pointer to hardware structure
igc_i2c_start - Sets I2C start condition @hw : pointer to hardware structure
/* Start condition must begin with data and clock high */ /* Setup time for start condition (4.7us) */ /* Hold time for start condition (4us) */ /* Minimum low period of clock is 4.7 us */