diff options
author | jhb <jhb@FreeBSD.org> | 2012-04-10 13:59:35 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-04-10 13:59:35 +0000 |
commit | 4e983169d19d79f31c470bf3c06b1dff2e93d528 (patch) | |
tree | 730f1d5a83d5a785253113d510e2bf3420ffbb2c /sys/net/if_media.h | |
parent | f0a3749f68202e6a929d339b7a7f7e878762f385 (diff) | |
download | FreeBSD-src-4e983169d19d79f31c470bf3c06b1dff2e93d528.zip FreeBSD-src-4e983169d19d79f31c470bf3c06b1dff2e93d528.tar.gz |
Add media types for 40G media that might be used with FreeBSD.
Reviewed by: bz
MFC after: 2 weeks
Diffstat (limited to 'sys/net/if_media.h')
-rw-r--r-- | sys/net/if_media.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h index 6014e2f..7d26f7a 100644 --- a/sys/net/if_media.h +++ b/sys/net/if_media.h @@ -150,6 +150,9 @@ uint64_t ifmedia_baudrate(int); #define IFM_10G_LRM 24 /* 10GBase-LRM 850nm Multi-mode */ #define IFM_UNKNOWN 25 /* media types not defined yet */ #define IFM_10G_T 26 /* 10GBase-T - RJ45 */ +#define IFM_40G_CR4 27 /* 40GBase-CR4 */ +#define IFM_40G_SR4 28 /* 40GBase-SR4 */ +#define IFM_40G_LR4 29 /* 40GBase-LR4 */ /* note 31 is the max! */ @@ -360,6 +363,9 @@ struct ifmedia_description { { IFM_10G_TWINAX_LONG, "10Gbase-Twinax-Long" }, \ { IFM_UNKNOWN, "Unknown" }, \ { IFM_10G_T, "10Gbase-T" }, \ + { IFM_40G_CR4, "40Gbase-CR4" }, \ + { IFM_40G_SR4, "40Gbase-SR4" }, \ + { IFM_40G_LR4, "40Gbase-LR4" }, \ { 0, NULL }, \ } @@ -658,6 +664,9 @@ struct ifmedia_baudrate { { IFM_ETHER | IFM_10G_TWINAX_LONG, IF_Gbps(10ULL) }, \ { IFM_ETHER | IFM_10G_LRM, IF_Gbps(10ULL) }, \ { IFM_ETHER | IFM_10G_T, IF_Gbps(10ULL) }, \ + { IFM_ETHER | IFM_40G_CR4, IF_Gbps(40ULL) }, \ + { IFM_ETHER | IFM_40G_SR4, IF_Gbps(40ULL) }, \ + { IFM_ETHER | IFM_40G_LR4, IF_Gbps(40ULL) }, \ \ { IFM_TOKEN | IFM_TOK_STP4, IF_Mbps(4) }, \ { IFM_TOKEN | IFM_TOK_STP16, IF_Mbps(16) }, \ |