Module Name:    src
Committed By:   msaitoh
Date:           Wed Oct  4 08:47:26 UTC 2017

Modified Files:
        src/sys/dev/pci/ixgbe: ixgbe_type.h ixgbe_x540.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pci/ixgbe/ixgbe_type.h
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/pci/ixgbe/ixgbe_x540.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ixgbe/ixgbe_type.h
diff -u src/sys/dev/pci/ixgbe/ixgbe_type.h:1.28 src/sys/dev/pci/ixgbe/ixgbe_type.h:1.29
--- src/sys/dev/pci/ixgbe/ixgbe_type.h:1.28	Tue Oct  3 02:55:37 2017
+++ src/sys/dev/pci/ixgbe/ixgbe_type.h	Wed Oct  4 08:47:26 2017
@@ -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

Index: src/sys/dev/pci/ixgbe/ixgbe_x540.c
diff -u src/sys/dev/pci/ixgbe/ixgbe_x540.c:1.10 src/sys/dev/pci/ixgbe/ixgbe_x540.c:1.11
--- src/sys/dev/pci/ixgbe/ixgbe_x540.c:1.10	Wed Aug 30 08:49:18 2017
+++ src/sys/dev/pci/ixgbe/ixgbe_x540.c	Wed Oct  4 08:47:26 2017
@@ -350,6 +350,11 @@ u64 ixgbe_get_supported_physical_layer_X
 	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;
 }
 

Reply via email to