#define QSFP_DEV …
#define QSFP_PWR_LAG_MSEC …
#define QSFP_MODPRS_LAG_MSEC …
#define QSFP_MAX_NUM_PAGES …
#define QSFP_HFI0_I2CCLK …
#define QSFP_HFI0_I2CDAT …
#define QSFP_HFI0_RESET_N …
#define QSFP_HFI0_INT_N …
#define QSFP_HFI0_MODPRST_N …
#define QSFP_PAGESIZE …
#define QSFP_RW_BOUNDARY …
#define __QSFP_OFFSET_SIZE …
#define QSFP_OFFSET_SIZE …
#define QSFP_MONITOR_VAL_START …
#define QSFP_MONITOR_VAL_END …
#define QSFP_MONITOR_RANGE …
#define QSFP_TX_CTRL_BYTE_OFFS …
#define QSFP_PWR_CTRL_BYTE_OFFS …
#define QSFP_CDR_CTRL_BYTE_OFFS …
#define QSFP_PAGE_SELECT_BYTE_OFFS …
#define QSFP_MOD_ID_OFFS …
#define QSFP_MOD_PWR_OFFS …
#define QSFP_NOM_BIT_RATE_100_OFFS …
#define QSFP_MOD_LEN_OFFS …
#define QSFP_MOD_TECH_OFFS …
extern const char *const hfi1_qsfp_devtech[16];
#define QSFP_IS_ACTIVE(tech) …
#define QSFP_IS_ACTIVE_FAR(tech) …
#define QSFP_HAS_ATTEN(tech) …
#define QSFP_IS_CU(tech) …
#define QSFP_TECH_1490 …
#define QSFP_OUI(oui) …
#define QSFP_OUI_AMPHENOL …
#define QSFP_OUI_FINISAR …
#define QSFP_OUI_GORE …
#define QSFP_VEND_OFFS …
#define QSFP_VEND_LEN …
#define QSFP_IBXCV_OFFS …
#define QSFP_VOUI_OFFS …
#define QSFP_VOUI_LEN …
#define QSFP_PN_OFFS …
#define QSFP_PN_LEN …
#define QSFP_REV_OFFS …
#define QSFP_REV_LEN …
#define QSFP_ATTEN_OFFS …
#define QSFP_ATTEN_LEN …
#define QSFP_CU_ATTEN_7G_OFFS …
#define QSFP_CU_ATTEN_12G_OFFS …
#define QSFP_CC_OFFS …
#define QSFP_EQ_INFO_OFFS …
#define QSFP_CDR_INFO_OFFS …
#define QSFP_SN_OFFS …
#define QSFP_SN_LEN …
#define QSFP_DATE_OFFS …
#define QSFP_DATE_LEN …
#define QSFP_LOT_OFFS …
#define QSFP_LOT_LEN …
#define QSFP_NOM_BIT_RATE_250_OFFS …
#define QSFP_CC_EXT_OFFS …
#define QSFP_DATA_NOT_READY …
#define QSFP_HIGH_TEMP_ALARM …
#define QSFP_LOW_TEMP_ALARM …
#define QSFP_HIGH_TEMP_WARNING …
#define QSFP_LOW_TEMP_WARNING …
#define QSFP_HIGH_VCC_ALARM …
#define QSFP_LOW_VCC_ALARM …
#define QSFP_HIGH_VCC_WARNING …
#define QSFP_LOW_VCC_WARNING …
#define QSFP_HIGH_POWER_ALARM …
#define QSFP_LOW_POWER_ALARM …
#define QSFP_HIGH_POWER_WARNING …
#define QSFP_LOW_POWER_WARNING …
#define QSFP_HIGH_BIAS_ALARM …
#define QSFP_LOW_BIAS_ALARM …
#define QSFP_HIGH_BIAS_WARNING …
#define QSFP_LOW_BIAS_WARNING …
#define QSFP_ATTEN_SDR(attenarray) …
#define QSFP_ATTEN_DDR(attenarray) …
struct qsfp_data { … };
int refresh_qsfp_cache(struct hfi1_pportdata *ppd,
struct qsfp_data *cp);
int get_qsfp_power_class(u8 power_byte);
int qsfp_mod_present(struct hfi1_pportdata *ppd);
int get_cable_info(struct hfi1_devdata *dd, u32 port_num, u32 addr,
u32 len, u8 *data);
int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr,
int offset, void *bp, int len);
int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr,
int offset, void *bp, int len);
int qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
int len);
int qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
int len);
int one_qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
int len);
int one_qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
int len);
struct hfi1_asic_data;
int set_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad);
void clean_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad);