1*94cba803SRyan Moeller#!/usr/libexec/flua 2*94cba803SRyan Moeller-- ex: sw=4 et: 3*94cba803SRyan Moeller--[[ 4*94cba803SRyan Moeller/*- 5*94cba803SRyan Moeller * Copyright (c) 2014, Alexander V. Chernikov 6*94cba803SRyan Moeller * Copyright (c) 2020, Ryan Moeller <freqlabs@FreeBSD.org> 7*94cba803SRyan Moeller * 8*94cba803SRyan Moeller * Redistribution and use in source and binary forms, with or without 9*94cba803SRyan Moeller * modification, are permitted provided that the following conditions 10*94cba803SRyan Moeller * are met: 11*94cba803SRyan Moeller * 1. Redistributions of source code must retain the above copyright 12*94cba803SRyan Moeller * notice, this list of conditions and the following disclaimer. 13*94cba803SRyan Moeller * 2. Redistributions in binary form must reproduce the above copyright 14*94cba803SRyan Moeller * notice, this list of conditions and the following disclaimer in the 15*94cba803SRyan Moeller * documentation and/or other materials provided with the distribution. 16*94cba803SRyan Moeller * 17*94cba803SRyan Moeller * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18*94cba803SRyan Moeller * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19*94cba803SRyan Moeller * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20*94cba803SRyan Moeller * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21*94cba803SRyan Moeller * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22*94cba803SRyan Moeller * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23*94cba803SRyan Moeller * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24*94cba803SRyan Moeller * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25*94cba803SRyan Moeller * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26*94cba803SRyan Moeller * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27*94cba803SRyan Moeller * SUCH DAMAGE. 28*94cba803SRyan Moeller */ 29*94cba803SRyan Moeller]] 30*94cba803SRyan Moeller 31*94cba803SRyan Moeller-- Try to put the template.lua library in the package search path. 32*94cba803SRyan Moellerpackage.path = (os.getenv("SRCTOP") or "/usr/src").."/tools/lua/?.lua" 33*94cba803SRyan Moeller 34*94cba803SRyan Moeller-- Render the template named by the first argument to this script. 35*94cba803SRyan Moellerrequire("template").render(arg[1], { -- This table is the template's context. 36*94cba803SRyan Moeller 37*94cba803SRyan Moeller-- The table `enums' is accessible in the template. It is a list of strings 38*94cba803SRyan Moeller-- and tables that describe the various enum types we are generating and the 39*94cba803SRyan Moeller-- ancillary metadata for generating other related code. 40*94cba803SRyan Moellerenums = { 41*94cba803SRyan Moeller 42*94cba803SRyan Moeller -- Strings at this level are rendered as block comments for convenience. 43*94cba803SRyan Moeller "SFF-8024 Rev. 4.6 Table 4-1: Indentifier Values", 44*94cba803SRyan Moeller 45*94cba803SRyan Moeller -- This table describes an enum type, in this case enum sfp_id: 46*94cba803SRyan Moeller { 47*94cba803SRyan Moeller name = "id", -- The template prepends the sfp_ prefix to our name. 48*94cba803SRyan Moeller description = "Transceiver identifier", 49*94cba803SRyan Moeller 50*94cba803SRyan Moeller -- What width int is needed to store this type: 51*94cba803SRyan Moeller bits = 8, -- This could be inferred by the values below... 52*94cba803SRyan Moeller 53*94cba803SRyan Moeller -- The values, symbols, display names, and descriptions of this enum: 54*94cba803SRyan Moeller values = { 55*94cba803SRyan Moeller -- The prefix SFP_ID_ is prepended to the symbolic names. 56*94cba803SRyan Moeller -- Only this enum has shortened names for the values, though they 57*94cba803SRyan Moeller -- could be added to the other enums. 58*94cba803SRyan Moeller 59*94cba803SRyan Moeller -- value, symbolic name, description, shortened name 60*94cba803SRyan Moeller {0x00, "UNKNOWN", "Unknown or unspecified", "Unknown"}, 61*94cba803SRyan Moeller {0x01, "GBIC", "GBIC", "GBIC"}, 62*94cba803SRyan Moeller {0x02, "SFF", "Module soldered to motherboard (ex: SFF)", 63*94cba803SRyan Moeller "SFF"}, 64*94cba803SRyan Moeller {0x03, "SFP", "SFP or SFP+", "SFP/SFP+/SFP28"}, 65*94cba803SRyan Moeller {0x04, "XBI", "300 pin XBI", "XBI"}, 66*94cba803SRyan Moeller {0x05, "XENPAK", "Xenpak", "Xenpak"}, 67*94cba803SRyan Moeller {0x06, "XFP", "XFP", "XFP"}, 68*94cba803SRyan Moeller {0x07, "XFF", "XFF", "XFF"}, 69*94cba803SRyan Moeller {0x08, "XFPE", "XFP-E", "XFP-E"}, 70*94cba803SRyan Moeller {0x09, "XPAK", "XPAK", "XPAK"}, 71*94cba803SRyan Moeller {0x0A, "X2", "X2", "X2"}, 72*94cba803SRyan Moeller {0x0B, "DWDM_SFP", "DWDM-SFP/SFP+", "DWDM-SFP/SFP+"}, 73*94cba803SRyan Moeller {0x0C, "QSFP", "QSFP", "QSFP"}, 74*94cba803SRyan Moeller {0x0D, "QSFPPLUS", "QSFP+ or later", "QSFP+"}, 75*94cba803SRyan Moeller {0x0E, "CXP", "CXP", "CXP"}, 76*94cba803SRyan Moeller {0x0F, "HD4X", "Shielded Mini Multilane HD 4X", "HD4X"}, 77*94cba803SRyan Moeller {0x10, "HD8X", "Shielded Mini Multilane HD 8X", "HD8X"}, 78*94cba803SRyan Moeller {0x11, "QSFP28", "QSFP28 or later", "QSFP28"}, 79*94cba803SRyan Moeller {0x12, "CXP2", "CXP2 (aka CXP28)", "CXP2"}, 80*94cba803SRyan Moeller {0x13, "CDFP", "CDFP (Style 1/Style 2)", "CDFP"}, 81*94cba803SRyan Moeller {0x14, "SMM4", "Shielded Mini Multilane HD 4X fanout", 82*94cba803SRyan Moeller "SMM4"}, 83*94cba803SRyan Moeller {0x15, "SMM8", "Shielded Mini Multilane HD 8X fanout", 84*94cba803SRyan Moeller "SMM8"}, 85*94cba803SRyan Moeller {0x16, "CDFP3", "CDFP (Style 3)", "CDFP3"}, 86*94cba803SRyan Moeller {0x17, "MICROQSFP", "microQSFP", "microQSFP"}, 87*94cba803SRyan Moeller {0x18, "QSFP_DD", "QSFP-DD 8X pluggable transceiver", "QSFP-DD"}, 88*94cba803SRyan Moeller {0x19, "QSFP8X", "QSFP 8X pluggable transceiver", "QSFP8X"}, 89*94cba803SRyan Moeller {0x1A, "SFP_DD", "SFP-DD 2X pluggable transceiver", "SFP-DD"}, 90*94cba803SRyan Moeller {0x1B, "DSFP", "DSFP Dual SFP pluggable transceiver", "DSFP"}, 91*94cba803SRyan Moeller {0x1C, "X4ML", "x4 MiniLink/OcuLink", "x4MiniLink/OcuLink"}, 92*94cba803SRyan Moeller {0x1D, "X8ML", "x8 MiniLink", "x8MiniLink"}, 93*94cba803SRyan Moeller {0x1E, "QSFP_CMIS", 94*94cba803SRyan Moeller "QSFP+ or later w/Common Management Interface Specification", 95*94cba803SRyan Moeller "QSFP+(CMIS)"}, 96*94cba803SRyan Moeller }, 97*94cba803SRyan Moeller }, 98*94cba803SRyan Moeller 99*94cba803SRyan Moeller "SFF-8024 Rev. 4.6 Table 4-3: Connector Types", 100*94cba803SRyan Moeller { 101*94cba803SRyan Moeller name = "conn", 102*94cba803SRyan Moeller description = "Connector type", 103*94cba803SRyan Moeller bits = 8, 104*94cba803SRyan Moeller values = { 105*94cba803SRyan Moeller {0x00, "UNKNOWN", "Unknown"}, 106*94cba803SRyan Moeller {0x01, "SC", "SC"}, 107*94cba803SRyan Moeller {0x02, "FC_1_COPPER", "Fibre Channel Style 1 copper"}, 108*94cba803SRyan Moeller {0x03, "FC_2_COPPER", "Fibre Channel Style 2 copper"}, 109*94cba803SRyan Moeller {0x04, "BNC_TNC", "BNC/TNC"}, 110*94cba803SRyan Moeller {0x05, "FC_COAX", "Fibre Channel coaxial"}, 111*94cba803SRyan Moeller {0x06, "FIBER_JACK", "Fiber Jack"}, 112*94cba803SRyan Moeller {0x07, "LC", "LC"}, 113*94cba803SRyan Moeller {0x08, "MT_RJ", "MT-RJ"}, 114*94cba803SRyan Moeller {0x09, "MU", "MU"}, 115*94cba803SRyan Moeller {0x0A, "SG", "SG"}, 116*94cba803SRyan Moeller {0x0B, "OPTICAL_PIGTAIL", "Optical pigtail"}, 117*94cba803SRyan Moeller {0x0C, "MPO_1X12_POPTIC", "MPO 1x12 Parallel Optic"}, 118*94cba803SRyan Moeller {0x0D, "MPO_2X16_POPTIC", "MPO 2x16 Parallel Optic"}, 119*94cba803SRyan Moeller {0x20, "HSSDC_II", "HSSDC II"}, 120*94cba803SRyan Moeller {0x21, "COPPER_PIGTAIL", "Copper pigtail"}, 121*94cba803SRyan Moeller {0x22, "RJ45", "RJ45"}, 122*94cba803SRyan Moeller {0x23, "NONE", "No separable connector"}, 123*94cba803SRyan Moeller {0x24, "MXC_2X16", "MXC 2x16"}, 124*94cba803SRyan Moeller {0x25, "CS_OPTICAL", "CS optical connector"}, 125*94cba803SRyan Moeller {0x26, "MINI_CS_OPTICAL", "Mini CS optical connector"}, 126*94cba803SRyan Moeller {0x27, "MPO_2X12_POPTIC", "MPO 2x12 Parallel Optic"}, 127*94cba803SRyan Moeller {0x28, "MPO_1X16_POPTIC", "MPO 1x16 Parallel Optic"}, 128*94cba803SRyan Moeller }, 129*94cba803SRyan Moeller }, 130*94cba803SRyan Moeller "SFF-8472 Rev. 11.4 table 3.5: Transceiver codes", 131*94cba803SRyan Moeller "10G Ethernet/IB compliance codes, byte 3", 132*94cba803SRyan Moeller { 133*94cba803SRyan Moeller name = "eth_10g", 134*94cba803SRyan Moeller description = "10G Ethernet/IB compliance", 135*94cba803SRyan Moeller bits = 8, 136*94cba803SRyan Moeller values = { 137*94cba803SRyan Moeller {0x80, "10G_BASE_ER", "10G Base-ER"}, 138*94cba803SRyan Moeller {0x40, "10G_BASE_LRM", "10G Base-LRM"}, 139*94cba803SRyan Moeller {0x20, "10G_BASE_LR", "10G Base-LR"}, 140*94cba803SRyan Moeller {0x10, "10G_BASE_SR", "10G Base-SR"}, 141*94cba803SRyan Moeller {0x08, "1X_SX", "1X SX"}, 142*94cba803SRyan Moeller {0x04, "1X_LX", "1X LX"}, 143*94cba803SRyan Moeller {0x02, "1X_COPPER_ACTIVE", "1X Copper Active"}, 144*94cba803SRyan Moeller {0x01, "1X_COPPER_PASSIVE", "1X Copper Passive"}, 145*94cba803SRyan Moeller }, 146*94cba803SRyan Moeller }, 147*94cba803SRyan Moeller "Ethernet compliance codes, byte 6", 148*94cba803SRyan Moeller { 149*94cba803SRyan Moeller name = "eth", 150*94cba803SRyan Moeller description = "Ethernet compliance", 151*94cba803SRyan Moeller bits = 8, 152*94cba803SRyan Moeller values = { 153*94cba803SRyan Moeller {0x80, "BASE_PX", "BASE-PX"}, 154*94cba803SRyan Moeller {0x40, "BASE_BX10", "BASE-BX10"}, 155*94cba803SRyan Moeller {0x20, "100BASE_FX", "100BASE-FX"}, 156*94cba803SRyan Moeller {0x10, "100BASE_LX_LX10", "100BASE-LX/LX10"}, 157*94cba803SRyan Moeller {0x08, "1000BASE_T", "1000BASE-T"}, 158*94cba803SRyan Moeller {0x04, "1000BASE_CX", "1000BASE-CX"}, 159*94cba803SRyan Moeller {0x02, "1000BASE_LX", "1000BASE-LX"}, 160*94cba803SRyan Moeller {0x01, "1000BASE_SX", "1000BASE-SX"}, 161*94cba803SRyan Moeller }, 162*94cba803SRyan Moeller }, 163*94cba803SRyan Moeller "FC link length, byte 7", 164*94cba803SRyan Moeller { 165*94cba803SRyan Moeller name = "fc_len", 166*94cba803SRyan Moeller description = "Fibre Channel link length", 167*94cba803SRyan Moeller bits = 8, 168*94cba803SRyan Moeller values = { 169*94cba803SRyan Moeller {0x80, "VERY_LONG", "very long distance"}, 170*94cba803SRyan Moeller {0x40, "SHORT", "short distance"}, 171*94cba803SRyan Moeller {0x20, "INTERMEDIATE", "intermediate distance"}, 172*94cba803SRyan Moeller {0x10, "LONG", "long distance"}, 173*94cba803SRyan Moeller {0x08, "MEDIUM", "medium distance"}, 174*94cba803SRyan Moeller }, 175*94cba803SRyan Moeller }, 176*94cba803SRyan Moeller "Channel/Cable technology, byte 7-8", 177*94cba803SRyan Moeller { 178*94cba803SRyan Moeller name = "cab_tech", 179*94cba803SRyan Moeller description = "Channel/cable technology", 180*94cba803SRyan Moeller bits = 16, 181*94cba803SRyan Moeller values = { 182*94cba803SRyan Moeller {0x0400, "SA", "Shortwave laser (SA)"}, 183*94cba803SRyan Moeller {0x0200, "LC", "Longwave laser (LC)"}, 184*94cba803SRyan Moeller {0x0100, "EL_INTER", "Electrical inter-enclosure (EL)"}, 185*94cba803SRyan Moeller {0x0080, "EL_INTRA", "Electrical intra-enclosure (EL)"}, 186*94cba803SRyan Moeller {0x0040, "SN", "Shortwave laser (SN)"}, 187*94cba803SRyan Moeller {0x0020, "SL", "Shortwave laser (SL)"}, 188*94cba803SRyan Moeller {0x0010, "LL", "Longwave laser (LL)"}, 189*94cba803SRyan Moeller {0x0008, "ACTIVE", "Active Cable"}, 190*94cba803SRyan Moeller {0x0004, "PASSIVE", "Passive Cable"}, 191*94cba803SRyan Moeller }, 192*94cba803SRyan Moeller }, 193*94cba803SRyan Moeller "FC Transmission media, byte 9", 194*94cba803SRyan Moeller { 195*94cba803SRyan Moeller name = "fc_media", 196*94cba803SRyan Moeller description = "Fibre Channel transmission media", 197*94cba803SRyan Moeller bits = 8, 198*94cba803SRyan Moeller values = { 199*94cba803SRyan Moeller {0x80, "TW", "Twin Axial Pair (TW)"}, 200*94cba803SRyan Moeller {0x40, "TP", "Twisted Pair (TP)"}, 201*94cba803SRyan Moeller {0x20, "MI", "Miniature Coax (MI)"}, 202*94cba803SRyan Moeller {0x10, "TV", "Video Coax (TV)"}, 203*94cba803SRyan Moeller {0x08, "M6", "Miltimode 62.5um (M6)"}, 204*94cba803SRyan Moeller {0x04, "M5", "Multimode 50um (M5)"}, 205*94cba803SRyan Moeller {0x02, "RESERVED", "Reserved"}, 206*94cba803SRyan Moeller {0x01, "SM", "Single Mode (SM)"}, 207*94cba803SRyan Moeller }, 208*94cba803SRyan Moeller }, 209*94cba803SRyan Moeller "FC Speed, byte 10", 210*94cba803SRyan Moeller { 211*94cba803SRyan Moeller name = "fc_speed", 212*94cba803SRyan Moeller description = "Fibre Channel speed", 213*94cba803SRyan Moeller bits = 8, 214*94cba803SRyan Moeller values = { 215*94cba803SRyan Moeller {0x80, "1200", "1200 MBytes/sec"}, 216*94cba803SRyan Moeller {0x40, "800", "800 MBytes/sec"}, 217*94cba803SRyan Moeller {0x20, "1600", "1600 MBytes/sec"}, 218*94cba803SRyan Moeller {0x10, "400", "400 MBytes/sec"}, 219*94cba803SRyan Moeller {0x08, "3200", "3200 MBytes/sec"}, 220*94cba803SRyan Moeller {0x04, "200", "200 MBytes/sec"}, 221*94cba803SRyan Moeller {0x01, "100", "100 MBytes/sec"}, 222*94cba803SRyan Moeller }, 223*94cba803SRyan Moeller }, 224*94cba803SRyan Moeller "SFF-8436 Rev. 4.8 table 33: Specification compliance", 225*94cba803SRyan Moeller "10/40G Ethernet compliance codes, byte 128 + 3", 226*94cba803SRyan Moeller { 227*94cba803SRyan Moeller name = "eth_1040g", 228*94cba803SRyan Moeller description = "10/40G Ethernet compliance", 229*94cba803SRyan Moeller bits = 8, 230*94cba803SRyan Moeller values = { 231*94cba803SRyan Moeller {0x80, "EXTENDED", "Extended"}, 232*94cba803SRyan Moeller {0x40, "10GBASE_LRM", "10GBASE-LRM"}, 233*94cba803SRyan Moeller {0x20, "10GBASE_LR", "10GBASE-LR"}, 234*94cba803SRyan Moeller {0x10, "10GBASE_SR", "10GBASE-SR"}, 235*94cba803SRyan Moeller {0x08, "40GBASE_CR4", "40GBASE-CR4"}, 236*94cba803SRyan Moeller {0x04, "40GBASE_SR4", "40GBASE-SR4"}, 237*94cba803SRyan Moeller {0x02, "40GBASE_LR4", "40GBASE-LR4"}, 238*94cba803SRyan Moeller {0x01, "40G_ACTIVE", "40G Active Cable"}, 239*94cba803SRyan Moeller }, 240*94cba803SRyan Moeller }, 241*94cba803SRyan Moeller "SFF-8024 Rev. 4.6 table 4-4: Extended Specification Compliance", 242*94cba803SRyan Moeller { 243*94cba803SRyan Moeller name = "eth_ext", 244*94cba803SRyan Moeller description = "Extended specification compliance", 245*94cba803SRyan Moeller bits = 8, 246*94cba803SRyan Moeller values = { 247*94cba803SRyan Moeller {0xFF, "RESERVED_FF", "Reserved"}, 248*94cba803SRyan Moeller {0x55, "128GFC_LW", "128GFC LW"}, 249*94cba803SRyan Moeller {0x54, "128GFC_SW", "128GFC SW"}, 250*94cba803SRyan Moeller {0x53, "128GFC_EA", "128GFC EA"}, 251*94cba803SRyan Moeller {0x52, "64GFC_LW", "64GFC LW"}, 252*94cba803SRyan Moeller {0x51, "64GFC_SW", "64GFC SW"}, 253*94cba803SRyan Moeller {0x50, "64GFC_EA", "64GFC EA"}, 254*94cba803SRyan Moeller {0x4F, "RESERVED_4F", "Reserved"}, 255*94cba803SRyan Moeller {0x4E, "RESERVED_4E", "Reserved"}, 256*94cba803SRyan Moeller {0x4D, "RESERVED_4D", "Reserved"}, 257*94cba803SRyan Moeller {0x4C, "RESERVED_4C", "Reserved"}, 258*94cba803SRyan Moeller {0x4B, "RESERVED_4B", "Reserved"}, 259*94cba803SRyan Moeller {0x4A, "RESERVED_4A", "Reserved"}, 260*94cba803SRyan Moeller {0x49, "RESERVED_49", "Reserved"}, 261*94cba803SRyan Moeller {0x48, "RESERVED_48", "Reserved"}, 262*94cba803SRyan Moeller {0x47, "RESERVED_47", "Reserved"}, 263*94cba803SRyan Moeller {0x46, "200GBASE_LR4", "200GBASE-LR4"}, 264*94cba803SRyan Moeller {0x45, "50GBASE_LR", "50GBASE-LR"}, 265*94cba803SRyan Moeller {0x44, "200G_1550NM_PSM4", "200G 1550nm PSM4"}, 266*94cba803SRyan Moeller {0x43, "200GBASE_FR4", "200GBASE-FR4"}, 267*94cba803SRyan Moeller {0x42, "50GBASE_FR_200GBASE_DR4", "50GBASE-FR or 200GBASE-DR4"}, 268*94cba803SRyan Moeller {0x41, "50GBASE_SR_100GBASE_SR2_200GBASE_SR4", 269*94cba803SRyan Moeller "50GBASE-SR/100GBASE-SR2/200GBASE-SR4"}, 270*94cba803SRyan Moeller {0x40, "50GBASE_CR_100GBASE_CR2_200GBASE_CR4", 271*94cba803SRyan Moeller "50GBASE-CR/100GBASE-CR2/200GBASE-CR4"}, 272*94cba803SRyan Moeller {0x3F, "RESERVED_3F", "Reserved"}, 273*94cba803SRyan Moeller {0x3E, "RESERVED_3E", "Reserved"}, 274*94cba803SRyan Moeller {0x3D, "RESERVED_3D", "Reserved"}, 275*94cba803SRyan Moeller {0x3C, "RESERVED_3C", "Reserved"}, 276*94cba803SRyan Moeller {0x3B, "RESERVED_3B", "Reserved"}, 277*94cba803SRyan Moeller {0x3A, "RESERVED_3A", "Reserved"}, 278*94cba803SRyan Moeller {0x39, "RESERVED_39", "Reserved"}, 279*94cba803SRyan Moeller {0x38, "RESERVED_38", "Reserved"}, 280*94cba803SRyan Moeller {0x37, "RESERVED_37", "Reserved"}, 281*94cba803SRyan Moeller {0x36, "RESERVED_36", "Reserved"}, 282*94cba803SRyan Moeller {0x35, "RESERVED_35", "Reserved"}, 283*94cba803SRyan Moeller {0x34, "RESERVED_34", "Reserved"}, 284*94cba803SRyan Moeller {0x33, "50_100_200GAUI_AOC_HI_BER", 285*94cba803SRyan Moeller "50GAUI/100GAUI-2/200GAUI-4 AOC (BER <2.6e-4)"}, 286*94cba803SRyan Moeller {0x32, "50_100_200GAUI_ACC_HI_BER", 287*94cba803SRyan Moeller "50GAUI/100GAUI-2/200GAUI-4 ACC (BER <2.6e-4)"}, 288*94cba803SRyan Moeller {0x31, "50_100_200GAUI_AOC_LO_BER", 289*94cba803SRyan Moeller "50GAUI/100GAUI-2/200GAUI-4 AOC (BER <1e-6)"}, 290*94cba803SRyan Moeller {0x30, "50_100_200GAUI_ACC_LO_BER", 291*94cba803SRyan Moeller "50GAUI/100GAUI-2/200GAUI-4 ACC (BER <1e-6)"}, 292*94cba803SRyan Moeller {0x2F, "RESERVED_2F", "Reserved"}, 293*94cba803SRyan Moeller {0x2E, "RESERVED_2E", "Reserved"}, 294*94cba803SRyan Moeller {0x2D, "RESERVED_2D", "Reserved"}, 295*94cba803SRyan Moeller {0x2C, "RESERVED_2C", "Reserved"}, 296*94cba803SRyan Moeller {0x2B, "RESERVED_2B", "Reserved"}, 297*94cba803SRyan Moeller {0x2A, "RESERVED_2A", "Reserved"}, 298*94cba803SRyan Moeller {0x29, "RESERVED_29", "Reserved"}, 299*94cba803SRyan Moeller {0x28, "RESERVED_28", "Reserved"}, 300*94cba803SRyan Moeller {0x27, "100G_LR", "100G-LR"}, 301*94cba803SRyan Moeller {0x26, "100G_FR", "100G-FR"}, 302*94cba803SRyan Moeller {0x25, "100GBASE_DR", "100GBASE-DR"}, 303*94cba803SRyan Moeller {0x24, "4WDM_40_MSA", "4WDM-40 MSA"}, 304*94cba803SRyan Moeller {0x23, "4WDM_20_MSA", "4WDM-20 MSA"}, 305*94cba803SRyan Moeller {0x22, "4WDM_10_MSA", "4WDM-10 MSA"}, 306*94cba803SRyan Moeller {0x21, "100G_PAM4_BIDI", "100G PAM4 BiDi"}, 307*94cba803SRyan Moeller {0x20, "100G_SWDM4", "100G SWDM4"}, 308*94cba803SRyan Moeller {0x1F, "40G_SWDM4", "40G SWDM4"}, 309*94cba803SRyan Moeller {0x1E, "2_5GBASE_T", "2.5GBASE-T"}, 310*94cba803SRyan Moeller {0x1D, "5GBASE_T", "5GBASE-T"}, 311*94cba803SRyan Moeller {0x1C, "10GBASE_T_SR", "10GBASE-T Short Reach"}, 312*94cba803SRyan Moeller {0x1B, "100G_1550NM_WDM", "100G 1550nm WDM"}, 313*94cba803SRyan Moeller {0x1A, "100GE_DWDM2", "100GE-DWDM2"}, 314*94cba803SRyan Moeller {0x19, "100G_25GAUI_C2M_ACC", "100G ACC or 25GAUI C2M ACC"}, 315*94cba803SRyan Moeller {0x18, "100G_25GAUI_C2M_AOC", "100G AOC or 25GAUI C2M AOC"}, 316*94cba803SRyan Moeller {0x17, "100G_CLR4", "100G CLR4"}, 317*94cba803SRyan Moeller {0x16, "10GBASE_T_SFI", 318*94cba803SRyan Moeller "10GBASE-T with SFI electrical interface"}, 319*94cba803SRyan Moeller {0x15, "G959_1_P1L1_2D2", "G959.1 profile P1L1-2D2"}, 320*94cba803SRyan Moeller {0x14, "G959_1_P1S1_2D2", "G959.1 profile P1S1-2D2"}, 321*94cba803SRyan Moeller {0x13, "G959_1_P1I1_2D1", "G959.1 profile P1I1-2D1"}, 322*94cba803SRyan Moeller {0x12, "40G_PSM4", "40G PSM4 Parallel SMF"}, 323*94cba803SRyan Moeller {0x11, "4X_10GBASE_SR", "4 x 10GBASE-SR"}, 324*94cba803SRyan Moeller {0x10, "40GBASE_ER4", "40GBASE-ER4"}, 325*94cba803SRyan Moeller {0x0F, "RESERVED_0F", "Reserved"}, 326*94cba803SRyan Moeller {0x0E, "RESERVED_0E", "Reserved"}, 327*94cba803SRyan Moeller {0x0D, "CA_25G_N", "25GBASE-CR CA-25G-N"}, 328*94cba803SRyan Moeller {0x0C, "CA_25G_S", "25GBASE-CR CA-25G-S"}, 329*94cba803SRyan Moeller {0x0B, "CA_L", "100GBASE-CR4 or 25GBASE-CR CA-L"}, 330*94cba803SRyan Moeller {0x0A, "RESERVED_0A", "Reserved"}, 331*94cba803SRyan Moeller {0x09, "OBSOLETE", "Obsolete"}, 332*94cba803SRyan Moeller {0x08, "100G_25GAUI_C2M_ACC_1", 333*94cba803SRyan Moeller "100G ACC (Active Copper Cable"}, 334*94cba803SRyan Moeller {0x07, "100G_PSM4_P_SMF", "100G PSM4 Parallel SMF"}, 335*94cba803SRyan Moeller {0x06, "100G_CWDM4", "100G CWDM4"}, 336*94cba803SRyan Moeller {0x05, "100GBASE_SR10", "100GBASE-SR10"}, 337*94cba803SRyan Moeller {0x04, "100GBASE_ER4_25GBASE_ER", "100GBASE-ER4 or 25GBASE-ER"}, 338*94cba803SRyan Moeller {0x03, "100GBASE_LR4_25GBASE_LR", "100GBASE-LR4 or 25GBASE-LR"}, 339*94cba803SRyan Moeller {0x02, "100GBASE_SR4_25GBASE_SR", "100GBASE-SR4 or 25GBASE-SR"}, 340*94cba803SRyan Moeller {0x01, "100G_25GAUI_C2M_AOC_1", 341*94cba803SRyan Moeller "100G AOC (Active Optical Cable"}, 342*94cba803SRyan Moeller {0x00, "UNSPECIFIED", "Unspecified"}, 343*94cba803SRyan Moeller }, 344*94cba803SRyan Moeller }, 345*94cba803SRyan Moeller "SFF-8636 Rev. 2.9 table 6.3: Revision compliance", 346*94cba803SRyan Moeller { 347*94cba803SRyan Moeller name = "rev", 348*94cba803SRyan Moeller description = "Revision compliance", 349*94cba803SRyan Moeller bits = 8, 350*94cba803SRyan Moeller values = { 351*94cba803SRyan Moeller {0x1, "SFF_8436_REV_LE_4_8", "SFF-8436 rev <=4.8"}, 352*94cba803SRyan Moeller {0x2, "SFF_8436_REV_LE_4_8_ALT", "SFF-8436 rev <=4.8"}, 353*94cba803SRyan Moeller {0x3, "SFF_8636_REV_LE_1_3", "SFF-8636 rev <=1.3"}, 354*94cba803SRyan Moeller {0x4, "SFF_8636_REV_LE_1_4", "SFF-8636 rev <=1.4"}, 355*94cba803SRyan Moeller {0x5, "SFF_8636_REV_LE_1_5", "SFF-8636 rev <=1.5"}, 356*94cba803SRyan Moeller {0x6, "SFF_8636_REV_LE_2_0", "SFF-8636 rev <=2.0"}, 357*94cba803SRyan Moeller {0x7, "SFF_8636_REV_LE_2_7", "SFF-8636 rev <=2.7"}, 358*94cba803SRyan Moeller {0x8, "SFF_8363_REV_GE_2_8", "SFF-8636 rev >=2.8"}, 359*94cba803SRyan Moeller {0x0, "UNSPECIFIED", "Unspecified"}, 360*94cba803SRyan Moeller }, 361*94cba803SRyan Moeller }, 362*94cba803SRyan Moeller} 363*94cba803SRyan Moeller 364*94cba803SRyan Moeller-- Nothing else in this context. 365*94cba803SRyan Moeller}) 366