diff options
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_base.c')
| -rw-r--r-- | drivers/net/ethernet/intel/igc/igc_base.c | 29 | 
1 files changed, 29 insertions, 0 deletions
| diff --git a/drivers/net/ethernet/intel/igc/igc_base.c b/drivers/net/ethernet/intel/igc/igc_base.c index a15927e77272..a1d815af507d 100644 --- a/drivers/net/ethernet/intel/igc/igc_base.c +++ b/drivers/net/ethernet/intel/igc/igc_base.c @@ -396,6 +396,35 @@ void igc_rx_fifo_flush_base(struct igc_hw *hw)  	rd32(IGC_MPC);  } +bool igc_is_device_id_i225(struct igc_hw *hw) +{ +	switch (hw->device_id) { +	case IGC_DEV_ID_I225_LM: +	case IGC_DEV_ID_I225_V: +	case IGC_DEV_ID_I225_I: +	case IGC_DEV_ID_I225_K: +	case IGC_DEV_ID_I225_K2: +	case IGC_DEV_ID_I225_LMVP: +	case IGC_DEV_ID_I225_IT: +		return true; +	default: +		return false; +	} +} + +bool igc_is_device_id_i226(struct igc_hw *hw) +{ +	switch (hw->device_id) { +	case IGC_DEV_ID_I226_LM: +	case IGC_DEV_ID_I226_V: +	case IGC_DEV_ID_I226_K: +	case IGC_DEV_ID_I226_IT: +		return true; +	default: +		return false; +	} +} +  static struct igc_mac_operations igc_mac_ops_base = {  	.init_hw		= igc_init_hw_base,  	.check_for_link		= igc_check_for_copper_link, |