summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2007-10-05 19:28:27 +0000
committerBrad Smith <brad@cvs.openbsd.org>2007-10-05 19:28:27 +0000
commit2172e88e87e0cdd558936b9c0d68e929300b11be (patch)
tree04fea4649601bbfc2ccccf19e21163336b6fc539
parent91be8bab3c8cdead892a30c54b7f364fb936ae7c (diff)
add a 2.5 Gbps fiber media type.
From FreeBSD ok claudio@ dlg@
-rw-r--r--sys/net/if_media.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index 54a4d872712..3161e4170ad 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_media.h,v 1.26 2007/09/19 03:50:25 brad Exp $ */
+/* $OpenBSD: if_media.h,v 1.27 2007/10/05 19:28:26 brad Exp $ */
/* $NetBSD: if_media.h,v 1.22 2000/02/17 21:53:16 sommerfeld Exp $ */
/*-
@@ -183,6 +183,7 @@ u_int64_t ifmedia_baudrate(int);
#define IFM_10G_LR 18 /* 10GBase-LR - single-mode fiber */
#define IFM_10G_SR 19 /* 10GBase-SR - multi-mode fiber */
#define IFM_10G_CX4 20 /* 10GBase-CX4 - copper */
+#define IFM_2500_SX 21 /* 2500baseSX - multi-mode fiber */
#define IFM_ETH_MASTER 0x00000100 /* master mode (1000baseT) */
#define IFM_ETH_RXPAUSE 0x00000200 /* receive PAUSE frames */
@@ -422,6 +423,8 @@ struct ifmedia_description {
{ IFM_ETHER|IFM_10G_CX4, "10GbaseCX4" }, \
{ IFM_ETHER|IFM_10G_CX4, "10GCX4" }, \
{ IFM_ETHER|IFM_10G_CX4, "10GBASE-CX4" }, \
+ { IFM_ETHER|IFM_2500_SX, "2500baseSX" }, \
+ { IFM_ETHER|IFM_2500_SX, "2500SX" }, \
\
{ IFM_FDDI|IFM_FDDI_SMF, "Single-mode" }, \
{ IFM_FDDI|IFM_FDDI_SMF, "SMF" }, \
@@ -536,6 +539,7 @@ struct ifmedia_baudrate {
{ IFM_ETHER|IFM_10G_LR, IF_Gbps(10) }, \
{ IFM_ETHER|IFM_10G_SR, IF_Gbps(10) }, \
{ IFM_ETHER|IFM_10G_CX4, IF_Gbps(10) }, \
+ { IFM_ETHER|IFM_2500_SX, IF_Mbps(2500) }, \
\
{ IFM_FDDI|IFM_FDDI_SMF, IF_Mbps(100) }, \
{ IFM_FDDI|IFM_FDDI_MMF, IF_Mbps(100) }, \