src/dpdk/drivers/net/ixgbe/base/ixgbe_82599.c
s32 ixgbe_read_analog_reg8_82599(struct ixgbe_hw *hw, u32 reg, u8 *val)
{
	u32  core_ctl;

	DEBUGFUNC("ixgbe_read_analog_reg8_82599");

	IXGBE_WRITE_REG(hw, IXGBE_CORECTL, IXGBE_CORECTL_WRITE_CMD |
			(reg << 8));
	IXGBE_WRITE_FLUSH(hw);
	usec_delay(10);
	core_ctl = IXGBE_READ_REG(hw, IXGBE_CORECTL);
	*val = (u8)core_ctl;

	return IXGBE_SUCCESS;
}
/**
 * ixgbe_read_analog_reg8_82599 - Reads 8 bit Omer analog register
 * @hw: pointer to hardware structure
 * @reg: analog register to read
 * @val: read value
 *
 * Performs read operation to Omer analog register specified.
 **/
Reads 8 bit Omer analog register
@hw: pointer to hardware structure
@reg: analog register to read
@val: read value

Performs read operation to Omer analog register specified.
Reads 8 bit Omer analog register @hw : pointer to hardware structure @reg : analog register to read @val : read value Performs read operation to Omer analog register specified .
s32 ixgbe_read_analog_reg8_82599(struct ixgbe_hw *hw, u32 reg, u8 *val)
{
	u32  core_ctl;
	DEBUGFUNC("ixgbe_read_analog_reg8_82599");
	IXGBE_WRITE_REG(hw, IXGBE_CORECTL, IXGBE_CORECTL_WRITE_CMD |
			(reg << 8));
	IXGBE_WRITE_FLUSH(hw);
	usec_delay(10);
	core_ctl = IXGBE_READ_REG(hw, IXGBE_CORECTL);
	*val = (u8)core_ctl;
	return IXGBE_SUCCESS;
}
s32 ixgbe_read_analog_reg8_82599 ( struct ixgbe_hw * hw , u32 reg , u8 * val ) { u32 core_ctl ; DEBUGFUNC ( " " ) ; IXGBE_WRITE_REG ( hw , IXGBE_CORECTL , IXGBE_CORECTL_WRITE_CMD | ( reg << 8 ) ) ; IXGBE_WRITE_FLUSH ( hw ) ; usec_delay ( 10 ) ; core_ctl = IXGBE_READ_REG ( hw , IXGBE_CORECTL ) ; * val = ( u8 ) core_ctl ; return IXGBE_SUCCESS ; }
ixgbe_read_analog_reg8_82599 - Reads 8 bit Omer analog register
 @hw: pointer to hardware structure
 @reg: analog register to read
 @val: read value
ixgbe_read_analog_reg8_82599 - Reads 8 bit Omer analog register @hw : pointer to hardware structure @reg : analog register to read @val : read value