src/dpdk/drivers/net/txgbe/base/txgbe_eeprom.c
s32 txgbe_ee_write32(struct txgbe_hw *hw, u32 addr, u32 data)
{
	const u32 mask = TXGBE_MNGSEM_SWMBX | TXGBE_MNGSEM_SWFLASH;
	int err;

	err = hw->mac.acquire_swfw_sync(hw, mask);
	if (err)
		return err;

	err = txgbe_hic_sr_write(hw, addr, (u8 *)&data, 4);

	hw->mac.release_swfw_sync(hw, mask);

	return err;
}
/**
 *  txgbe_ee_write32 - Read EEPROM word using a host interface cmd
 *  @hw: pointer to hardware structure
 *  @offset: offset of  word in the EEPROM to read
 *  @data: word read from the EEPROM
 *
 *  Reads a 32 bit word from the EEPROM using the hostif.
 **/
Read EEPROM word using a host interface cmd
@hw: pointer to hardware structure
@offset: offset of  word in the EEPROM to read
@data: word read from the EEPROM

Reads a 32 bit word from the EEPROM using the hostif.
Read EEPROM word using a host interface cmd @hw : pointer to hardware structure @offset : offset of word in the EEPROM to read @data : word read from the EEPROM Reads a 32 bit word from the EEPROM using the hostif .
s32 txgbe_ee_write32(struct txgbe_hw *hw, u32 addr, u32 data)
{
	const u32 mask = TXGBE_MNGSEM_SWMBX | TXGBE_MNGSEM_SWFLASH;
	int err;
	err = hw->mac.acquire_swfw_sync(hw, mask);
	if (err)
		return err;
	err = txgbe_hic_sr_write(hw, addr, (u8 *)&data, 4);
	hw->mac.release_swfw_sync(hw, mask);
	return err;
}
s32 txgbe_ee_write32 ( struct txgbe_hw * hw , u32 addr , u32 data ) { const u32 mask = TXGBE_MNGSEM_SWMBX | TXGBE_MNGSEM_SWFLASH ; int err ; err = hw -> mac . acquire_swfw_sync ( hw , mask ) ; if ( err ) return err ; err = txgbe_hic_sr_write ( hw , addr , ( u8 * ) & data , 4 ) ; hw -> mac . release_swfw_sync ( hw , mask ) ; return err ; }
txgbe_ee_write32 - Read EEPROM word using a host interface cmd
  @hw: pointer to hardware structure
  @offset: offset of  word in the EEPROM to read
  @data: word read from the EEPROM
txgbe_ee_write32 - Read EEPROM word using a host interface cmd @hw : pointer to hardware structure @offset : offset of word in the EEPROM to read @data : word read from the EEPROM