Go to the documentation of this file.
36 #define QSFP_PWR_LAG_MSEC 2000
37 #define QSFP_MODPRS_LAG_MSEC 20
44 #define QSFP_GPIO_MOD_SEL_N (4)
45 #define QSFP_GPIO_MOD_PRS_N (8)
46 #define QSFP_GPIO_INT_N (0x10)
47 #define QSFP_GPIO_MOD_RST_N (0x20)
48 #define QSFP_GPIO_LP_MODE (0x40)
49 #define QSFP_GPIO_PORT2_SHIFT 5
51 #define QSFP_PAGESIZE 128
61 #define QSFP_MOD_ID_OFFS 128
66 #define QSFP_MOD_PWR_OFFS 129
74 #define QSFP_MOD_LEN_OFFS 146
79 #define QSFP_MOD_TECH_OFFS 147
82 #define QSFP_IS_ACTIVE(tech) ((0xA2FF >> ((tech) >> 4)) & 1)
84 #define QSFP_IS_ACTIVE_FAR(tech) ((0x32FF >> ((tech) >> 4)) & 1)
86 #define QSFP_HAS_ATTEN(tech) ((0x4D00 >> ((tech) >> 4)) & 1)
88 #define QSFP_IS_CU(tech) ((0xED00 >> ((tech) >> 4)) & 1)
89 #define QSFP_TECH_1490 9
91 #define QSFP_OUI(oui) (((unsigned)oui[0] << 16) | ((unsigned)oui[1] << 8) | \
93 #define QSFP_OUI_AMPHENOL 0x415048
94 #define QSFP_OUI_FINISAR 0x009065
95 #define QSFP_OUI_GORE 0x002177
98 #define QSFP_VEND_OFFS 148
99 #define QSFP_VEND_LEN 16
101 #define QSFP_IBXCV_OFFS 164
103 #define QSFP_VOUI_OFFS 165
104 #define QSFP_VOUI_LEN 3
106 #define QSFP_PN_OFFS 168
107 #define QSFP_PN_LEN 16
109 #define QSFP_REV_OFFS 184
110 #define QSFP_REV_LEN 2
116 #define QSFP_ATTEN_OFFS 186
117 #define QSFP_ATTEN_LEN 2
121 #define QSFP_CC_OFFS 191
124 #define QSFP_SN_OFFS 196
125 #define QSFP_SN_LEN 16
127 #define QSFP_DATE_OFFS 212
128 #define QSFP_DATE_LEN 6
130 #define QSFP_LOT_OFFS 218
131 #define QSFP_LOT_LEN 2
134 #define QSFP_CC_EXT_OFFS 223
171 #define QSFP_PWR(pbyte) (((pbyte) >> 6) & 3)
172 #define QSFP_ATTEN_SDR(attenarray) (attenarray[0])
173 #define QSFP_ATTEN_DDR(attenarray) (attenarray[1])