aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ixl/virtchnl.h
diff options
context:
space:
mode:
authorEric Joyner <erj@FreeBSD.org>2020-09-01 23:16:38 +0000
committerEric Joyner <erj@FreeBSD.org>2020-09-01 23:16:38 +0000
commit2984a8dd7c8e1885633d10be99cb97fae3e7baaf (patch)
treea49fd28697aac023616f7415aa2fae504652d98a /sys/dev/ixl/virtchnl.h
parentb4a53360398fd9c18d06b8aaf5ff34ccee19f8cd (diff)
downloadsrc-2984a8dd7c8e1885633d10be99cb97fae3e7baaf.tar.gz
src-2984a8dd7c8e1885633d10be99cb97fae3e7baaf.zip
ixl(4): Add support for X710-T*L devices
Add support for new devices which are capable of 2.5 and 5G speeds, as well as Energy Efficient Ethernet (EEE): - introduce new device ids - add ability to select 2.5 and 5G speeds on devices which support it - add sysctls to enable EEE and read related statistics Submitted by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: #IntelNetworking MFC after: 3 days Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D25549
Notes
Notes: svn path=/head/; revision=365231
Diffstat (limited to 'sys/dev/ixl/virtchnl.h')
-rw-r--r--sys/dev/ixl/virtchnl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ixl/virtchnl.h b/sys/dev/ixl/virtchnl.h
index 146aabb13230..444b6399b815 100644
--- a/sys/dev/ixl/virtchnl.h
+++ b/sys/dev/ixl/virtchnl.h
@@ -77,12 +77,14 @@ enum virtchnl_status_code {
VIRTCHNL_STATUS_NOT_SUPPORTED = -64,
};
+#define VIRTCHNL_LINK_SPEED_2_5GB_SHIFT 0x0
#define VIRTCHNL_LINK_SPEED_100MB_SHIFT 0x1
#define VIRTCHNL_LINK_SPEED_1000MB_SHIFT 0x2
#define VIRTCHNL_LINK_SPEED_10GB_SHIFT 0x3
#define VIRTCHNL_LINK_SPEED_40GB_SHIFT 0x4
#define VIRTCHNL_LINK_SPEED_20GB_SHIFT 0x5
#define VIRTCHNL_LINK_SPEED_25GB_SHIFT 0x6
+#define VIRTCHNL_LINK_SPEED_5GB_SHIFT 0x7
enum virtchnl_link_speed {
VIRTCHNL_LINK_SPEED_UNKNOWN = 0,
@@ -92,6 +94,8 @@ enum virtchnl_link_speed {
VIRTCHNL_LINK_SPEED_40GB = BIT(VIRTCHNL_LINK_SPEED_40GB_SHIFT),
VIRTCHNL_LINK_SPEED_20GB = BIT(VIRTCHNL_LINK_SPEED_20GB_SHIFT),
VIRTCHNL_LINK_SPEED_25GB = BIT(VIRTCHNL_LINK_SPEED_25GB_SHIFT),
+ VIRTCHNL_LINK_SPEED_2_5GB = BIT(VIRTCHNL_LINK_SPEED_2_5GB_SHIFT),
+ VIRTCHNL_LINK_SPEED_5GB = BIT(VIRTCHNL_LINK_SPEED_5GB_SHIFT),
};
/* for hsplit_0 field of Rx HMC context */