25 #ifndef LIBSWITCHTEC_DIAG_H
26 #define LIBSWITCHTEC_DIAG_H
45 uint8_t target_amplitude;
46 uint8_t speculative_dfe;
47 int8_t dynamic_dfe[7];
51 DIAG_PORT_EQ_STATUS_OP_PER_PORT = 0,
52 DIAG_PORT_EQ_STATUS_OP_PER_LANE = 1,
90 uint8_t pre_cursor_up;
91 uint8_t post_cursor_up;
93 uint8_t active_status;
124 uint16_t ctle2_rx_mode;
135 enum switchtec_diag_loopback_type {
136 DIAG_LOOPBACK_RX_TO_TX = 0,
137 DIAG_LOOPBACK_TX_TO_RX = 1,
171 uint8_t pattern_type;
184 uint8_t pattern_type;
194 uint32_t lane_mask[4];
201 uint32_t step_interval;
216 uint32_t time_remaining;
217 uint32_t lane_mask[4];
221 uint8_t data_count_lo;
222 uint8_t frame_status;
224 uint8_t data_count_hi;
227 uint32_t error_cnt_lo;
228 uint32_t error_cnt_hi;
229 uint32_t sample_cnt_lo;
230 uint32_t sample_cnt_hi;
266 int8_t eye_right_lim;
267 int16_t eye_bot_left_lim;
268 int16_t eye_bot_right_lim;
269 int16_t eye_top_left_lim;
270 int16_t eye_top_right_lim;