/* Sets the flow control high/low threshold (watermark) registers. If flow control XON frame transmission is enabled, then set XON frame tansmission as well.  */
static s32 igb_set_fc_watermarks(struct e1000_hw *hw)
/* Sets the flow control high/low threshold (watermark) registers. If flow control XON frame transmission is enabled, then set XON frame tansmission as well.  */
static s32 igb_set_fc_watermarks(struct e1000_hw *hw)
{
	s32 ret_val = 0;
	u32 fcrtl = 0, fcrth = 0;
	if (hw->fc.current_mode & e1000_fc_tx_pause) {
		fcrtl = hw->fc.low_water;
		if (hw->fc.send_xon)
			fcrtl |= E1000_FCRTL_XONE;
		fcrth = hw->fc.high_water;
	}
	wr32(E1000_FCRTL, fcrtl);
	wr32(E1000_FCRTH, fcrth);
	return ret_val;
}