Add 2.5GBASE-T and 5GBASE-T support. (forgotten in the last commit)

This commit is contained in:
msaitoh 2017-10-04 08:47:26 +00:00
parent e2ef7204bc
commit bbb4721c42
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ixgbe_type.h,v 1.28 2017/10/03 02:55:37 msaitoh Exp $ */
/* $NetBSD: ixgbe_type.h,v 1.29 2017/10/04 08:47:26 msaitoh Exp $ */
/******************************************************************************
@ -3424,6 +3424,8 @@ typedef u64 ixgbe_physical_layer;
#define IXGBE_PHYSICAL_LAYER_1000BASE_SX 0x04000
#define IXGBE_PHYSICAL_LAYER_10BASE_T 0x08000
#define IXGBE_PHYSICAL_LAYER_2500BASE_KX 0x10000
#define IXGBE_PHYSICAL_LAYER_2500BASE_T 0x20000
#define IXGBE_PHYSICAL_LAYER_5GBASE_T 0x40000
/* Flow Control Data Sheet defined values
* Calculation and defines taken from 802.1bb Annex O

View File

@ -350,6 +350,11 @@ u64 ixgbe_get_supported_physical_layer_X540(struct ixgbe_hw *hw)
if (ext_ability & IXGBE_MDIO_PHY_100BASETX_ABILITY)
physical_layer |= IXGBE_PHYSICAL_LAYER_100BASE_TX;
if (hw->mac.type == ixgbe_mac_X550) {
physical_layer |= IXGBE_PHYSICAL_LAYER_2500BASE_T
| IXGBE_PHYSICAL_LAYER_5GBASE_T;
}
return physical_layer;
}