/* Blink the led's which are set to be on.  */
s32 igb_blink_led(struct e1000_hw *hw)
/* Blink the led's which are set to be on.  */
s32 igb_blink_led(struct e1000_hw *hw)
{
	u32 ledctl_blink = 0;
	u32 i;
	ledctl_blink = hw->mac.ledctl_mode2;
	for (i = 0; i < 4; i++)
		if (((hw->mac.ledctl_mode2 >> (i * 8)) & 0xFF) ==
		    E1000_LEDCTL_MODE_LED_ON)
			ledctl_blink |= (E1000_LEDCTL_LED0_BLINK <<
					 (i * 8));
	wr32(E1000_LEDCTL, ledctl_blink);
	return 0;
}