Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net - Add some missing baudrate entries
details: https://anonhg.NetBSD.org/src/rev/df2b90ae4b6b
branches: trunk
changeset: 354218:df2b90ae4b6b
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Jun 08 02:27:30 2017 +0000
description:
- Add some missing baudrate entries
- Add 1000BASE-KX and 2500BASE-KX
diffstat:
sys/net/if_media.h | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (48 lines):
diff -r 94c4b968e837 -r df2b90ae4b6b sys/net/if_media.h
--- a/sys/net/if_media.h Thu Jun 08 02:25:43 2017 +0000
+++ b/sys/net/if_media.h Thu Jun 08 02:27:30 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_media.h,v 1.58 2017/06/05 08:50:07 msaitoh Exp $ */
+/* $NetBSD: if_media.h,v 1.59 2017/06/08 02:27:30 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -222,6 +222,8 @@
#define IFM_10G_TWINAX_LONG 24 /* 10GBase Twinax Long copper */
#define IFM_10G_LRM 25 /* 10GBase-LRM 850nm Multi-mode */
#define IFM_10G_T 26 /* 10GBase-T - RJ45 */
+#define IFM_1000_KX 27 /* 1000base-KX backplane */
+#define IFM_2500_KX 28 /* 2500base-KX backplane */
/* IFM_OMASK bits */
#define IFM_ETH_MASTER 0x00000100 /* master mode (1000baseT) */
#define IFM_ETH_RXPAUSE 0x00000200 /* receive PAUSE frames */
@@ -383,11 +385,15 @@
{ IFM_ETHER | IFM_1000_CX, "1000CX" }, \
{ IFM_ETHER | IFM_1000_CX, "1000BASE-CX" }, \
{ IFM_ETHER | IFM_1000_BX10, "1000BASE-BX10" }, \
+ { IFM_ETHER | IFM_1000_KX, "1000BASE-KX" }, \
+ { IFM_ETHER | IFM_1000_KX, "1000baseKX" }, \
{ IFM_ETHER | IFM_1000_T, "1000baseT" }, \
{ IFM_ETHER | IFM_1000_T, "1000T" }, \
{ IFM_ETHER | IFM_1000_T, "1000BASE-T" }, \
{ IFM_ETHER | IFM_HPNA_1, "HomePNA1" }, \
{ IFM_ETHER | IFM_HPNA_1, "HPNA1" }, \
+ { IFM_ETHER | IFM_2500_KX, "2500BASE-KX" }, \
+ { IFM_ETHER | IFM_2500_KX, "2500baseKX" }, \
{ IFM_ETHER | IFM_10G_LR, "10GbaseLR" }, \
{ IFM_ETHER | IFM_10G_LR, "10GLR" }, \
{ IFM_ETHER | IFM_10G_LR, "10GBASE-LR" }, \
@@ -536,6 +542,13 @@
{ IFM_ETHER | IFM_10G_SR, IF_Gbps(10ULL) }, \
{ IFM_ETHER | IFM_10G_CX4, IF_Gbps(10ULL) }, \
{ IFM_ETHER | IFM_2500_SX, IF_Mbps(2500ULL) }, \
+ { IFM_ETHER | IFM_1000_BX10, IF_Mbps(1000ULL) }, \
+ { IFM_ETHER | IFM_10G_TWINAX, IF_Gbps(10) }, \
+ { IFM_ETHER | IFM_10G_TWINAX_LONG, IF_Gbps(10) }, \
+ { IFM_ETHER | IFM_10G_LRM, IF_Gbps(10) }, \
+ { IFM_ETHER | IFM_10G_T, IF_Gbps(10) }, \
+ { IFM_ETHER | IFM_1000_KX, IF_Mbps(1000ULL) }, \
+ { IFM_ETHER | IFM_2500_KX, IF_Mbps(2500ULL) }, \
\
{ IFM_TOKEN | IFM_TOK_STP4, IF_Mbps(4) }, \
{ IFM_TOKEN | IFM_TOK_STP16, IF_Mbps(16) }, \
Home |
Main Index |
Thread Index |
Old Index