src/dpdk/drivers/net/igc/base/igc_mac.c
s32 igc_valid_led_default_generic(struct igc_hw *hw, u16 *data)
{
	s32 ret_val;

	DEBUGFUNC("igc_valid_led_default_generic");

	ret_val = hw->nvm.ops.read(hw, NVM_ID_LED_SETTINGS, 1, data);
	if (ret_val) {
		DEBUGOUT("NVM Read Error\n");
		return ret_val;
	}

	if (*data == ID_LED_RESERVED_0000 || *data == ID_LED_RESERVED_FFFF)
		*data = ID_LED_DEFAULT;

	return IGC_SUCCESS;
}
/**
 *  igc_valid_led_default_generic - Verify a valid default LED config
 *  @hw: pointer to the HW structure
 *  @data: pointer to the NVM (EEPROM)
 *
 *  Read the EEPROM for the current default LED configuration.  If the
 *  LED configuration is not valid, set to a valid LED configuration.
 **/
Verify a valid default LED config
@hw: pointer to the HW structure
@data: pointer to the NVM (EEPROM)

Read the EEPROM for the current default LED configuration.  If the
LED configuration is not valid, set to a valid LED configuration.
Verify a valid default LED config @hw : pointer to the HW structure @data : pointer to the NVM ( EEPROM ) Read the EEPROM for the current default LED configuration . If the LED configuration is not valid set to a valid LED configuration .
s32 igc_valid_led_default_generic(struct igc_hw *hw, u16 *data)
{
	s32 ret_val;
	DEBUGFUNC("igc_valid_led_default_generic");
	ret_val = hw->nvm.ops.read(hw, NVM_ID_LED_SETTINGS, 1, data);
	if (ret_val) {
		DEBUGOUT("NVM Read Error\n");
		return ret_val;
	}
	if (*data == ID_LED_RESERVED_0000 || *data == ID_LED_RESERVED_FFFF)
		*data = ID_LED_DEFAULT;
	return IGC_SUCCESS;
}
s32 igc_valid_led_default_generic ( struct igc_hw * hw , u16 * data ) { s32 ret_val ; DEBUGFUNC ( " " ) ; ret_val = hw -> nvm . ops . read ( hw , NVM_ID_LED_SETTINGS , 1 , data ) ; if ( ret_val ) { DEBUGOUT ( " \n " ) ; return ret_val ; } if ( * data == ID_LED_RESERVED_0000 || * data == ID_LED_RESERVED_FFFF ) * data = ID_LED_DEFAULT ; return IGC_SUCCESS ; }
igc_valid_led_default_generic - Verify a valid default LED config
  @hw: pointer to the HW structure
  @data: pointer to the NVM (EEPROM)
igc_valid_led_default_generic - Verify a valid default LED config @hw : pointer to the HW structure @data : pointer to the NVM ( EEPROM )