Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Add 2.5GBASE-T and 5GBASE-T support. (forg...



details:   https://anonhg.NetBSD.org/src/rev/ed8c575bb15e
branches:  trunk
changeset: 826889:ed8c575bb15e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Oct 04 08:47:26 2017 +0000

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

diffstat:

 sys/dev/pci/ixgbe/ixgbe_type.h |  4 +++-
 sys/dev/pci/ixgbe/ixgbe_x540.c |  5 +++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r fc6bf8125873 -r ed8c575bb15e sys/dev/pci/ixgbe/ixgbe_type.h
--- a/sys/dev/pci/ixgbe/ixgbe_type.h    Wed Oct 04 07:13:00 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_type.h    Wed Oct 04 08:47:26 2017 +0000
@@ -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 @@
 #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
diff -r fc6bf8125873 -r ed8c575bb15e sys/dev/pci/ixgbe/ixgbe_x540.c
--- a/sys/dev/pci/ixgbe/ixgbe_x540.c    Wed Oct 04 07:13:00 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_x540.c    Wed Oct 04 08:47:26 2017 +0000
@@ -350,6 +350,11 @@
        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;
 }
 



Home | Main Index | Thread Index | Old Index