phymod_diagnostics_cint_data.c (29957B)
1 /* 2 * 3 * 4 * 5 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 6 * 7 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 8 * 9 * 10 * DO NOT EDIT THIS FILE! 11 */ 12 13 #if defined(INCLUDE_LIB_CINT) 14 15 #include <cint_config.h> 16 #include <cint_types.h> 17 #include <cint_porting.h> 18 19 #if defined(PHYMOD_SUPPORT) 20 21 #include <phymod/phymod_diagnostics.h> 22 #include <phymod/phymod.h> 23 24 /* Macros section */ 25 26 /* Functions section */ 27 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 28 phymod_phy_rx_slicer_position_get, 29 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 30 uint32_t, uint32_t, flags, 0, 0, 31 phymod_slicer_position_t*, phymod_slicer_position_t, position, 1, 0); 32 33 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 34 phymod_phy_rx_slicer_position_set, 35 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 36 uint32_t, uint32_t, flags, 0, 0, 37 phymod_slicer_position_t*, phymod_slicer_position_t, position, 1, 0); 38 39 CINT_FWRAPPER_CREATE_RP4(int, int, 0, 0, 40 phymod_phy_rx_slicer_position_max_get, 41 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 42 uint32_t, uint32_t, flags, 0, 0, 43 phymod_slicer_position_t*, phymod_slicer_position_t, position_min, 1, 0, 44 phymod_slicer_position_t*, phymod_slicer_position_t, position_max, 1, 0); 45 46 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 47 phymod_phy_prbs_config_get, 48 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 49 uint32_t, uint32_t, flags , 0, 0, 50 phymod_prbs_t*, phymod_prbs_t, prbs, 1, 0); 51 52 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 53 phymod_phy_prbs_config_set, 54 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 55 uint32_t, uint32_t, flags , 0, 0, 56 phymod_prbs_t*, phymod_prbs_t, prbs, 1, 0); 57 58 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 59 phymod_phy_prbs_enable_get, 60 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 61 uint32_t, uint32_t, flags , 0, 0, 62 uint32_t*, uint32_t, enable, 1, 0); 63 64 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 65 phymod_phy_prbs_enable_set, 66 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 67 uint32_t, uint32_t, flags , 0, 0, 68 uint32_t, uint32_t, enable, 0, 0); 69 70 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 71 phymod_phy_prbs_status_get, 72 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 73 uint32_t, uint32_t, flags, 0, 0, 74 phymod_prbs_status_t*, phymod_prbs_status_t, prbs_status, 1, 0); 75 76 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 77 phymod_phy_pattern_config_get, 78 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 79 phymod_pattern_t*, phymod_pattern_t, pattern, 1, 0); 80 81 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 82 phymod_phy_pattern_config_set, 83 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 84 phymod_pattern_t*, phymod_pattern_t, pattern, 1, 0); 85 86 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 87 phymod_phy_pattern_enable_get, 88 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 89 uint32_t*, uint32_t, enable, 1, 0); 90 91 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 92 phymod_phy_pattern_enable_set, 93 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 94 uint32_t, uint32_t, enable, 0, 0, 95 phymod_pattern_t*, phymod_pattern_t, pattern, 1, 0); 96 97 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 98 phymod_core_diagnostics_get, 99 phymod_core_access_t*, phymod_core_access_t, core, 1, 0, 100 phymod_core_diagnostics_t*, phymod_core_diagnostics_t, diag, 1, 0); 101 102 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 103 phymod_phy_diagnostics_get, 104 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 105 phymod_phy_diagnostics_t*, phymod_phy_diagnostics_t, diag, 1, 0); 106 107 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 108 phymod_phy_pmd_info_dump, 109 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 110 char*, char, type, 1, 0); 111 112 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 113 phymod_phy_pcs_info_dump, 114 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 115 char*, char, type, 1, 0); 116 117 CINT_FWRAPPER_CREATE_RP4(int, int, 0, 0, 118 phymod_phy_eyescan_run, 119 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 120 uint32_t, uint32_t, flags, 0, 0, 121 phymod_eyescan_mode_t, phymod_eyescan_mode_t, mode, 0, 0, 122 phymod_phy_eyescan_options_t*, phymod_phy_eyescan_options_t, eyescan_options, 1, 0); 123 124 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 125 phymod_phy_link_mon_enable_get, 126 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 127 phymod_link_monitor_mode_t, phymod_link_monitor_mode_t, link_mon_mode, 0, 0, 128 uint32_t*, uint32_t, enable, 1, 0); 129 130 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 131 phymod_phy_link_mon_enable_set, 132 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 133 phymod_link_monitor_mode_t, phymod_link_monitor_mode_t, link_mon_mode, 0, 0, 134 uint32_t, uint32_t, enable, 0, 0); 135 136 CINT_FWRAPPER_CREATE_RP4(int, int, 0, 0, 137 phymod_phy_link_mon_status_get, 138 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 139 uint32_t*, uint32_t, lock_status, 1, 0, 140 uint32_t*, uint32_t, lock_lost_lh, 1, 0, 141 uint32_t*, uint32_t, error_count, 1, 0); 142 143 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 144 phymod_phy_fec_correctable_counter_get, 145 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 146 uint32_t*, uint32_t, count, 1, 0); 147 148 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 149 phymod_phy_fec_uncorrectable_counter_get, 150 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 151 uint32_t*, uint32_t, count, 1, 0); 152 153 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 154 phymod_phy_stat_get, 155 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 156 phymod_phy_stat_t*, phymod_phy_stat_t, stat, 1, 0); 157 158 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 159 phymod_phy_fec_cl91_correctable_counter_get, 160 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 161 uint32_t*, uint32_t, count, 1, 0); 162 163 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 164 phymod_phy_fec_cl91_uncorrectable_counter_get, 165 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 166 uint32_t*, uint32_t, count, 1, 0); 167 168 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 169 phymod_phy_PAM4_tx_pattern_enable_get, 170 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 171 phymod_PAM4_tx_pattern_t, phymod_PAM4_tx_pattern_t, pattern_type, 0, 0, 172 uint32_t*, uint32_t, enable, 1, 0); 173 174 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 175 phymod_phy_PAM4_tx_pattern_enable_set, 176 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 177 phymod_PAM4_tx_pattern_t, phymod_PAM4_tx_pattern_t, pattern_type, 0, 0, 178 uint32_t, uint32_t, enable, 0, 0); 179 180 CINT_FWRAPPER_CREATE_RP3(int, int, 0, 0, 181 phymod_phy_ber_proj, 182 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 183 phymod_ber_proj_mode_t, phymod_ber_proj_mode_t, mode, 0, 0, 184 phymod_phy_ber_proj_options_t*, phymod_phy_ber_proj_options_t, options, 1, 0); 185 186 CINT_FWRAPPER_CREATE_RP2(int, int, 0, 0, 187 phymod_phy_fast_ber_proj_get, 188 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 189 uint32_t*, uint32_t, ber_proj_data, 1, 0); 190 191 CINT_FWRAPPER_CREATE_RP4(int, int, 0, 0, 192 phymod_phy_rsfec_symbol_error_counter_get, 193 phymod_phy_access_t*, phymod_phy_access_t, phy, 1, 0, 194 int, int, max_count, 0, 0, 195 int*, int, actual_count, 1, 0, 196 uint32_t*, uint32_t, error_count, 1, 0); 197 198 199 /* Functions and Macros mapping */ 200 static cint_function_t __cint_functions[] = 201 { 202 CINT_FWRAPPER_ENTRY(phymod_phy_rx_slicer_position_get), 203 CINT_FWRAPPER_ENTRY(phymod_phy_rx_slicer_position_set), 204 CINT_FWRAPPER_ENTRY(phymod_phy_rx_slicer_position_max_get), 205 CINT_FWRAPPER_ENTRY(phymod_phy_prbs_config_get), 206 CINT_FWRAPPER_ENTRY(phymod_phy_prbs_config_set), 207 CINT_FWRAPPER_ENTRY(phymod_phy_prbs_enable_get), 208 CINT_FWRAPPER_ENTRY(phymod_phy_prbs_enable_set), 209 CINT_FWRAPPER_ENTRY(phymod_phy_prbs_status_get), 210 CINT_FWRAPPER_ENTRY(phymod_phy_pattern_config_get), 211 CINT_FWRAPPER_ENTRY(phymod_phy_pattern_config_set), 212 CINT_FWRAPPER_ENTRY(phymod_phy_pattern_enable_get), 213 CINT_FWRAPPER_ENTRY(phymod_phy_pattern_enable_set), 214 CINT_FWRAPPER_ENTRY(phymod_core_diagnostics_get), 215 CINT_FWRAPPER_ENTRY(phymod_phy_diagnostics_get), 216 CINT_FWRAPPER_ENTRY(phymod_phy_pmd_info_dump), 217 CINT_FWRAPPER_ENTRY(phymod_phy_pcs_info_dump), 218 CINT_FWRAPPER_ENTRY(phymod_phy_eyescan_run), 219 CINT_FWRAPPER_ENTRY(phymod_phy_link_mon_enable_get), 220 CINT_FWRAPPER_ENTRY(phymod_phy_link_mon_enable_set), 221 CINT_FWRAPPER_ENTRY(phymod_phy_link_mon_status_get), 222 CINT_FWRAPPER_ENTRY(phymod_phy_fec_correctable_counter_get), 223 CINT_FWRAPPER_ENTRY(phymod_phy_fec_uncorrectable_counter_get), 224 CINT_FWRAPPER_ENTRY(phymod_phy_stat_get), 225 CINT_FWRAPPER_ENTRY(phymod_phy_fec_cl91_correctable_counter_get), 226 CINT_FWRAPPER_ENTRY(phymod_phy_fec_cl91_uncorrectable_counter_get), 227 CINT_FWRAPPER_ENTRY(phymod_phy_PAM4_tx_pattern_enable_get), 228 CINT_FWRAPPER_ENTRY(phymod_phy_PAM4_tx_pattern_enable_set), 229 CINT_FWRAPPER_ENTRY(phymod_phy_ber_proj), 230 CINT_FWRAPPER_ENTRY(phymod_phy_fast_ber_proj_get), 231 CINT_FWRAPPER_ENTRY(phymod_phy_rsfec_symbol_error_counter_get), 232 { NULL } 233 }; 234 235 /* Functions pointers section */ 236 static cint_function_pointer_t __cint_function_pointers[1]; 237 238 239 240 static cint_function_pointer_t __cint_function_pointers[] = 241 { 242 { NULL } 243 }; 244 245 /* Structs section */ 246 static void* 247 __cint_maddr__phymod_slicer_position_t(void* p, int mnum, cint_struct_type_t* parent) 248 { 249 void* rv; 250 phymod_slicer_position_t* s = (phymod_slicer_position_t*) p; 251 switch(mnum) 252 { 253 case 0: rv = &(s->horizontal);break; 254 case 1: rv = &(s->vertical);break; 255 default: rv = NULL; break; 256 } 257 return rv; 258 } 259 260 static void* 261 __cint_maddr__phymod_prbs_t(void* p, int mnum, cint_struct_type_t* parent) 262 { 263 void* rv; 264 phymod_prbs_t* s = (phymod_prbs_t*) p; 265 switch(mnum) 266 { 267 case 0: rv = &(s->poly);break; 268 case 1: rv = &(s->invert);break; 269 default: rv = NULL; break; 270 } 271 return rv; 272 } 273 274 static void* 275 __cint_maddr__phymod_prbs_status_t(void* p, int mnum, cint_struct_type_t* parent) 276 { 277 void* rv; 278 phymod_prbs_status_t* s = (phymod_prbs_status_t*) p; 279 switch(mnum) 280 { 281 case 0: rv = &(s->prbs_lock);break; 282 case 1: rv = &(s->prbs_lock_loss);break; 283 case 2: rv = &(s->error_count);break; 284 default: rv = NULL; break; 285 } 286 return rv; 287 } 288 289 static void* 290 __cint_maddr__phymod_pattern_t(void* p, int mnum, cint_struct_type_t* parent) 291 { 292 void* rv; 293 phymod_pattern_t* s = (phymod_pattern_t*) p; 294 switch(mnum) 295 { 296 case 0: rv = &(s->pattern_len);break; 297 case 1: rv = &(s->pattern);break; 298 default: rv = NULL; break; 299 } 300 return rv; 301 } 302 303 static void* 304 __cint_maddr__phymod_core_diagnostics_t(void* p, int mnum, cint_struct_type_t* parent) 305 { 306 void* rv; 307 phymod_core_diagnostics_t* s = (phymod_core_diagnostics_t*) p; 308 switch(mnum) 309 { 310 case 0: rv = &(s->temperature);break; 311 case 1: rv = &(s->pll_range);break; 312 default: rv = NULL; break; 313 } 314 return rv; 315 } 316 317 static void* 318 __cint_maddr__phymod_diag_slicer_offset_t(void* p, int mnum, cint_struct_type_t* parent) 319 { 320 void* rv; 321 phymod_diag_slicer_offset_t* s = (phymod_diag_slicer_offset_t*) p; 322 switch(mnum) 323 { 324 case 0: rv = &(s->offset_pe);break; 325 case 1: rv = &(s->offset_ze);break; 326 case 2: rv = &(s->offset_me);break; 327 case 3: rv = &(s->offset_po);break; 328 case 4: rv = &(s->offset_zo);break; 329 case 5: rv = &(s->offset_mo);break; 330 default: rv = NULL; break; 331 } 332 return rv; 333 } 334 335 static void* 336 __cint_maddr__phymod_diag_eyescan_t(void* p, int mnum, cint_struct_type_t* parent) 337 { 338 void* rv; 339 phymod_diag_eyescan_t* s = (phymod_diag_eyescan_t*) p; 340 switch(mnum) 341 { 342 case 0: rv = &(s->heye_left);break; 343 case 1: rv = &(s->heye_right);break; 344 case 2: rv = &(s->veye_upper);break; 345 case 3: rv = &(s->veye_lower);break; 346 default: rv = NULL; break; 347 } 348 return rv; 349 } 350 351 static void* 352 __cint_maddr__phymod_phy_diagnostics_t(void* p, int mnum, cint_struct_type_t* parent) 353 { 354 void* rv; 355 phymod_phy_diagnostics_t* s = (phymod_phy_diagnostics_t*) p; 356 switch(mnum) 357 { 358 case 0: rv = &(s->signal_detect);break; 359 case 1: rv = &(s->vga_bias_reduced);break; 360 case 2: rv = &(s->postc_metric);break; 361 case 3: rv = &(s->osr_mode);break; 362 case 4: rv = &(s->pmd_mode);break; 363 case 5: rv = &(s->rx_lock);break; 364 case 6: rv = &(s->rx_ppm);break; 365 case 7: rv = &(s->tx_ppm);break; 366 case 8: rv = &(s->clk90_offset);break; 367 case 9: rv = &(s->clkp1_offset);break; 368 case 10: rv = &(s->p1_lvl);break; 369 case 11: rv = &(s->m1_lvl);break; 370 case 12: rv = &(s->dfe1_dcd);break; 371 case 13: rv = &(s->dfe2_dcd);break; 372 case 14: rv = &(s->slicer_target);break; 373 case 15: rv = &(s->slicer_offset);break; 374 case 16: rv = &(s->eyescan);break; 375 case 17: rv = &(s->state_machine_status);break; 376 case 18: rv = &(s->link_time);break; 377 case 19: rv = &(s->pf_main);break; 378 case 20: rv = &(s->pf_hiz);break; 379 case 21: rv = &(s->pf_bst);break; 380 case 22: rv = &(s->pf_low);break; 381 case 23: rv = &(s->pf2_ctrl);break; 382 case 24: rv = &(s->vga);break; 383 case 25: rv = &(s->dc_offset);break; 384 case 26: rv = &(s->p1_lvl_ctrl);break; 385 case 27: rv = &(s->dfe1);break; 386 case 28: rv = &(s->dfe2);break; 387 case 29: rv = &(s->dfe3);break; 388 case 30: rv = &(s->dfe4);break; 389 case 31: rv = &(s->dfe5);break; 390 case 32: rv = &(s->dfe6);break; 391 case 33: rv = &(s->txfir_pre);break; 392 case 34: rv = &(s->txfir_main);break; 393 case 35: rv = &(s->txfir_post1);break; 394 case 36: rv = &(s->txfir_post2);break; 395 case 37: rv = &(s->txfir_post3);break; 396 case 38: rv = &(s->tx_amp_ctrl);break; 397 case 39: rv = &(s->br_pd_en);break; 398 default: rv = NULL; break; 399 } 400 return rv; 401 } 402 403 static void* 404 __cint_maddr__phymod_phy_eyescan_options_t(void* p, int mnum, cint_struct_type_t* parent) 405 { 406 void* rv; 407 phymod_phy_eyescan_options_t* s = (phymod_phy_eyescan_options_t*) p; 408 switch(mnum) 409 { 410 case 0: rv = &(s->linerate_in_khz);break; 411 case 1: rv = &(s->timeout_in_milliseconds);break; 412 case 2: rv = &(s->horz_max);break; 413 case 3: rv = &(s->horz_min);break; 414 case 4: rv = &(s->hstep);break; 415 case 5: rv = &(s->vert_max);break; 416 case 6: rv = &(s->vert_min);break; 417 case 7: rv = &(s->vstep);break; 418 case 8: rv = &(s->ber_proj_scan_mode);break; 419 case 9: rv = &(s->ber_proj_timer_cnt);break; 420 case 10: rv = &(s->ber_proj_err_cnt);break; 421 case 11: rv = &(s->mode);break; 422 default: rv = NULL; break; 423 } 424 return rv; 425 } 426 427 static void* 428 __cint_maddr__phymod_phy_stat_t(void* p, int mnum, cint_struct_type_t* parent) 429 { 430 void* rv; 431 phymod_phy_stat_t* s = (phymod_phy_stat_t*) p; 432 switch(mnum) 433 { 434 case 0: rv = &(s->pcs_bip_err_count);break; 435 case 1: rv = &(s->pcs_ber_count);break; 436 default: rv = NULL; break; 437 } 438 return rv; 439 } 440 441 static void* 442 __cint_maddr__phymod_phy_ber_proj_errcnt_t(void* p, int mnum, cint_struct_type_t* parent) 443 { 444 void* rv; 445 phymod_phy_ber_proj_errcnt_t* s = (phymod_phy_ber_proj_errcnt_t*) p; 446 switch(mnum) 447 { 448 case 0: rv = &(s->prbs_errcnt);break; 449 default: rv = NULL; break; 450 } 451 return rv; 452 } 453 454 static void* 455 __cint_maddr__phymod_phy_ber_proj_options_t(void* p, int mnum, cint_struct_type_t* parent) 456 { 457 void* rv; 458 phymod_phy_ber_proj_options_t* s = (phymod_phy_ber_proj_options_t*) p; 459 switch(mnum) 460 { 461 case 0: rv = &(s->ber_proj_phase);break; 462 case 1: rv = &(s->ber_proj_fec_size);break; 463 case 2: rv = &(s->ber_proj_hist_errcnt_thresh);break; 464 case 3: rv = &(s->ber_proj_timeout_s);break; 465 case 4: rv = &(s->ber_proj_prbs_errcnt);break; 466 default: rv = NULL; break; 467 } 468 return rv; 469 } 470 471 472 static cint_parameter_desc_t __cint_struct_members__phymod_slicer_position_t[] = 473 { 474 {"uint32_t", "horizontal", 0, 0}, 475 {"uint32_t", "vertical", 0, 0}, 476 { NULL } 477 }; 478 479 static cint_parameter_desc_t __cint_struct_members__phymod_prbs_t[] = 480 { 481 {"phymod_prbs_poly_t", "poly", 0, 0}, 482 {"uint32_t", "invert", 0, 0}, 483 { NULL } 484 }; 485 486 static cint_parameter_desc_t __cint_struct_members__phymod_prbs_status_t[] = 487 { 488 {"uint32_t", "prbs_lock", 0, 0}, 489 {"uint32_t", "prbs_lock_loss", 0, 0}, 490 {"uint32_t", "error_count", 0, 0}, 491 { NULL } 492 }; 493 494 static cint_parameter_desc_t __cint_struct_members__phymod_pattern_t[] = 495 { 496 {"uint32_t", "pattern_len", 0, 0}, 497 {"uint32_t", "pattern", 1, 0}, 498 { NULL } 499 }; 500 501 static cint_parameter_desc_t __cint_struct_members__phymod_core_diagnostics_t[] = 502 { 503 {"uint32_t", "temperature", 0, 0}, 504 {"uint32_t", "pll_range", 0, 0}, 505 { NULL } 506 }; 507 508 static cint_parameter_desc_t __cint_struct_members__phymod_diag_slicer_offset_t[] = 509 { 510 {"uint32_t", "offset_pe", 0, 0}, 511 {"uint32_t", "offset_ze", 0, 0}, 512 {"uint32_t", "offset_me", 0, 0}, 513 {"uint32_t", "offset_po", 0, 0}, 514 {"uint32_t", "offset_zo", 0, 0}, 515 {"uint32_t", "offset_mo", 0, 0}, 516 { NULL } 517 }; 518 519 static cint_parameter_desc_t __cint_struct_members__phymod_diag_eyescan_t[] = 520 { 521 {"uint32_t", "heye_left", 0, 0}, 522 {"uint32_t", "heye_right", 0, 0}, 523 {"uint32_t", "veye_upper", 0, 0}, 524 {"uint32_t", "veye_lower", 0, 0}, 525 { NULL } 526 }; 527 528 static cint_parameter_desc_t __cint_struct_members__phymod_phy_diagnostics_t[] = 529 { 530 {"uint32_t", "signal_detect", 0, 0}, 531 {"uint32_t", "vga_bias_reduced", 0, 0}, 532 {"uint32_t", "postc_metric", 0, 0}, 533 {"phymod_osr_mode_t", "osr_mode", 0, 0}, 534 {"phymod_pmd_mode_t", "pmd_mode", 0, 0}, 535 {"uint32_t", "rx_lock", 0, 0}, 536 {"uint32_t", "rx_ppm", 0, 0}, 537 {"uint32_t", "tx_ppm", 0, 0}, 538 {"uint32_t", "clk90_offset", 0, 0}, 539 {"uint32_t", "clkp1_offset", 0, 0}, 540 {"uint32_t", "p1_lvl", 0, 0}, 541 {"uint32_t", "m1_lvl", 0, 0}, 542 {"uint32_t", "dfe1_dcd", 0, 0}, 543 {"uint32_t", "dfe2_dcd", 0, 0}, 544 {"uint32_t", "slicer_target", 0, 0}, 545 {"phymod_diag_slicer_offset_t", "slicer_offset", 0, 0}, 546 {"phymod_diag_eyescan_t", "eyescan", 0, 0}, 547 {"uint32_t", "state_machine_status", 0, 0}, 548 {"uint32_t", "link_time", 0, 0}, 549 {"int", "pf_main", 0, 0}, 550 {"int", "pf_hiz", 0, 0}, 551 {"int", "pf_bst", 0, 0}, 552 {"int", "pf_low", 0, 0}, 553 {"int", "pf2_ctrl", 0, 0}, 554 {"int", "vga", 0, 0}, 555 {"int", "dc_offset", 0, 0}, 556 {"int", "p1_lvl_ctrl", 0, 0}, 557 {"int", "dfe1", 0, 0}, 558 {"int", "dfe2", 0, 0}, 559 {"int", "dfe3", 0, 0}, 560 {"int", "dfe4", 0, 0}, 561 {"int", "dfe5", 0, 0}, 562 {"int", "dfe6", 0, 0}, 563 {"int", "txfir_pre", 0, 0}, 564 {"int", "txfir_main", 0, 0}, 565 {"int", "txfir_post1", 0, 0}, 566 {"int", "txfir_post2", 0, 0}, 567 {"int", "txfir_post3", 0, 0}, 568 {"int", "tx_amp_ctrl", 0, 0}, 569 {"uint8_t", "br_pd_en", 0, 0}, 570 { NULL } 571 }; 572 573 static cint_parameter_desc_t __cint_struct_members__phymod_phy_eyescan_options_t[] = 574 { 575 {"uint32_t", "linerate_in_khz", 0, 0}, 576 {"uint16_t", "timeout_in_milliseconds", 0, 0}, 577 {"int8_t", "horz_max", 0, 0}, 578 {"int8_t", "horz_min", 0, 0}, 579 {"int8_t", "hstep", 0, 0}, 580 {"int8_t", "vert_max", 0, 0}, 581 {"int8_t", "vert_min", 0, 0}, 582 {"int8_t", "vstep", 0, 0}, 583 {"uint8_t", "ber_proj_scan_mode", 0, 0}, 584 {"uint8_t", "ber_proj_timer_cnt", 0, 0}, 585 {"uint8_t", "ber_proj_err_cnt", 0, 0}, 586 {"int8_t", "mode", 0, 0}, 587 { NULL } 588 }; 589 590 static cint_parameter_desc_t __cint_struct_members__phymod_phy_stat_t[] = 591 { 592 {"uint32_t", "pcs_bip_err_count", 0, PHYMOD_MAX_LANES_PER_CORE}, 593 {"uint32_t", "pcs_ber_count", 0, PHYMOD_MAX_LANES_PER_CORE}, 594 { NULL } 595 }; 596 597 static cint_parameter_desc_t __cint_struct_members__phymod_phy_ber_proj_errcnt_t[] = 598 { 599 {"uint32_t", "prbs_errcnt", 0, 9}, 600 { NULL } 601 }; 602 603 static cint_parameter_desc_t __cint_struct_members__phymod_phy_ber_proj_options_t[] = 604 { 605 {"uint32_t", "ber_proj_phase", 0, 0}, 606 {"uint16_t", "ber_proj_fec_size", 0, 0}, 607 {"uint8_t", "ber_proj_hist_errcnt_thresh", 0, 0}, 608 {"uint32_t", "ber_proj_timeout_s", 0, 0}, 609 {"phymod_phy_ber_proj_errcnt_t", "ber_proj_prbs_errcnt", 1, 0}, 610 { NULL } 611 }; 612 613 614 static cint_struct_type_t __cint_structures[] = 615 { 616 { 617 "phymod_slicer_position_t", 618 sizeof(phymod_slicer_position_t), 619 __cint_struct_members__phymod_slicer_position_t, 620 __cint_maddr__phymod_slicer_position_t 621 }, 622 { 623 "phymod_prbs_t", 624 sizeof(phymod_prbs_t), 625 __cint_struct_members__phymod_prbs_t, 626 __cint_maddr__phymod_prbs_t 627 }, 628 { 629 "phymod_prbs_status_t", 630 sizeof(phymod_prbs_status_t), 631 __cint_struct_members__phymod_prbs_status_t, 632 __cint_maddr__phymod_prbs_status_t 633 }, 634 { 635 "phymod_pattern_t", 636 sizeof(phymod_pattern_t), 637 __cint_struct_members__phymod_pattern_t, 638 __cint_maddr__phymod_pattern_t 639 }, 640 { 641 "phymod_core_diagnostics_t", 642 sizeof(phymod_core_diagnostics_t), 643 __cint_struct_members__phymod_core_diagnostics_t, 644 __cint_maddr__phymod_core_diagnostics_t 645 }, 646 { 647 "phymod_diag_slicer_offset_t", 648 sizeof(phymod_diag_slicer_offset_t), 649 __cint_struct_members__phymod_diag_slicer_offset_t, 650 __cint_maddr__phymod_diag_slicer_offset_t 651 }, 652 { 653 "phymod_diag_eyescan_t", 654 sizeof(phymod_diag_eyescan_t), 655 __cint_struct_members__phymod_diag_eyescan_t, 656 __cint_maddr__phymod_diag_eyescan_t 657 }, 658 { 659 "phymod_phy_diagnostics_t", 660 sizeof(phymod_phy_diagnostics_t), 661 __cint_struct_members__phymod_phy_diagnostics_t, 662 __cint_maddr__phymod_phy_diagnostics_t 663 }, 664 { 665 "phymod_phy_eyescan_options_t", 666 sizeof(phymod_phy_eyescan_options_t), 667 __cint_struct_members__phymod_phy_eyescan_options_t, 668 __cint_maddr__phymod_phy_eyescan_options_t 669 }, 670 { 671 "phymod_phy_stat_t", 672 sizeof(phymod_phy_stat_t), 673 __cint_struct_members__phymod_phy_stat_t, 674 __cint_maddr__phymod_phy_stat_t 675 }, 676 { 677 "phymod_phy_ber_proj_errcnt_t", 678 sizeof(phymod_phy_ber_proj_errcnt_t), 679 __cint_struct_members__phymod_phy_ber_proj_errcnt_t, 680 __cint_maddr__phymod_phy_ber_proj_errcnt_t 681 }, 682 { 683 "phymod_phy_ber_proj_options_t", 684 sizeof(phymod_phy_ber_proj_options_t), 685 __cint_struct_members__phymod_phy_ber_proj_options_t, 686 __cint_maddr__phymod_phy_ber_proj_options_t 687 }, 688 { NULL } 689 }; 690 691 692 /* Enums section */ 693 static cint_enum_map_t __cint_enum_map__phymod_prbs_poly_t[] = 694 { 695 { "phymodPrbsPoly7", phymodPrbsPoly7 }, 696 { "phymodPrbsPoly9", phymodPrbsPoly9 }, 697 { "phymodPrbsPoly11", phymodPrbsPoly11 }, 698 { "phymodPrbsPoly15", phymodPrbsPoly15 }, 699 { "phymodPrbsPoly23", phymodPrbsPoly23 }, 700 { "phymodPrbsPoly31", phymodPrbsPoly31 }, 701 { "phymodPrbsPoly58", phymodPrbsPoly58 }, 702 { "phymodPrbsPoly49", phymodPrbsPoly49 }, 703 { "phymodPrbsPoly10", phymodPrbsPoly10 }, 704 { "phymodPrbsPoly20", phymodPrbsPoly20 }, 705 { "phymodPrbsPoly13", phymodPrbsPoly13 }, 706 { "phymodPrbsPolyQ13", phymodPrbsPolyQ13 }, 707 { "phymodPrbsPolyCount", phymodPrbsPolyCount }, 708 { NULL } 709 }; 710 711 static cint_enum_map_t __cint_enum_map__phymod_pmd_mode_t[] = 712 { 713 { "phymodPmdModeOs", phymodPmdModeOs }, 714 { "phymodPmdModeOsDfe", phymodPmdModeOsDfe }, 715 { "phymodPmdModeBrDfe", phymodPmdModeBrDfe }, 716 { "phymodPmdModeCount", phymodPmdModeCount }, 717 { NULL } 718 }; 719 720 static cint_enum_map_t __cint_enum_map__phymod_eyescan_mode_t[] = 721 { 722 { "phymodEyescanModeFast", phymodEyescanModeFast }, 723 { "phymodEyescanModeLowBER", phymodEyescanModeLowBER }, 724 { "phymodEyescanModeBERProj", phymodEyescanModeBERProj }, 725 { "phymodEyescanModeCount", phymodEyescanModeCount }, 726 { NULL } 727 }; 728 729 static cint_enum_map_t __cint_enum_map__phymod_link_monitor_mode_t[] = 730 { 731 { "phymodLinkMonPCS49_1x10G", phymodLinkMonPCS49_1x10G }, 732 { "phymodLinkMonPCS82_4x10G", phymodLinkMonPCS82_4x10G }, 733 { "phymodLinkMonPCS82_2x25G", phymodLinkMonPCS82_2x25G }, 734 { "phymodLinkMonPCS82_4x25G", phymodLinkMonPCS82_4x25G }, 735 { "phymodLinkMonFC4", phymodLinkMonFC4 }, 736 { "phymodLinkMonFC8", phymodLinkMonFC8 }, 737 { "phymodLinkMonFC16", phymodLinkMonFC16 }, 738 { "phymodLinkMonFC32", phymodLinkMonFC32 }, 739 { "phymodLinkMonCount", phymodLinkMonCount }, 740 { NULL } 741 }; 742 743 static cint_enum_map_t __cint_enum_map__phymod_diag_type_t[] = 744 { 745 { "phymod_diag_GENERAL", phymod_diag_GENERAL }, 746 { "phymod_diag_TOPOLOGY", phymod_diag_TOPOLOGY }, 747 { "phymod_diag_LINK ", phymod_diag_LINK }, 748 { "phymod_diag_SPEED", phymod_diag_SPEED }, 749 { "phymod_diag_ANEG", phymod_diag_ANEG }, 750 { "phymod_diag_TFC", phymod_diag_TFC }, 751 { "phymod_diag_AN_TIMERS", phymod_diag_AN_TIMERS }, 752 { "phymod_diag_STATE", phymod_diag_STATE }, 753 { "phymod_diag_DEBUG", phymod_diag_DEBUG }, 754 { "phymod_diag_IEEE", phymod_diag_IEEE }, 755 { "phymod_diag_EEE", phymod_diag_EEE }, 756 { "phymod_diag_BER", phymod_diag_BER }, 757 { "phymod_diag_CFG", phymod_diag_CFG }, 758 { "phymod_diag_CL72", phymod_diag_CL72 }, 759 { "phymod_diag_DSC", phymod_diag_DSC }, 760 { "phymod_diag_DSC_STD", phymod_diag_DSC_STD }, 761 { "phymod_diag_ALL", phymod_diag_ALL }, 762 { "phymod_diag_Count", phymod_diag_Count }, 763 { NULL } 764 }; 765 766 static cint_enum_map_t __cint_enum_map__phymod_PAM4_tx_pattern_t[] = 767 { 768 { "phymod_PAM4TxPattern_JP03B", phymod_PAM4TxPattern_JP03B }, 769 { "phymod_PAM4TxPattern_Linear", phymod_PAM4TxPattern_Linear }, 770 { "phymod_Count", phymod_Count }, 771 { NULL } 772 }; 773 774 static cint_enum_map_t __cint_enum_map__phymod_ber_proj_mode_t[] = 775 { 776 { "phymodBERProjModePostFEC", phymodBERProjModePostFEC }, 777 { "phymodBERProjModeCount", phymodBERProjModeCount }, 778 { NULL } 779 }; 780 781 782 static cint_enum_type_t __cint_enums[] = 783 { 784 {"phymod_prbs_poly_t", __cint_enum_map__phymod_prbs_poly_t }, 785 {"phymod_pmd_mode_t", __cint_enum_map__phymod_pmd_mode_t }, 786 {"phymod_eyescan_mode_t", __cint_enum_map__phymod_eyescan_mode_t }, 787 {"phymod_link_monitor_mode_t", __cint_enum_map__phymod_link_monitor_mode_t }, 788 {"phymod_diag_type_t", __cint_enum_map__phymod_diag_type_t }, 789 {"phymod_PAM4_tx_pattern_t", __cint_enum_map__phymod_PAM4_tx_pattern_t }, 790 {"phymod_ber_proj_mode_t", __cint_enum_map__phymod_ber_proj_mode_t }, 791 { NULL } 792 }; 793 794 /* Defines section */ 795 static cint_constants_t __cint_constants[] = 796 { 797 { "PHYMOD_SLICER_F_LIVE_LINK", PHYMOD_SLICER_F_LIVE_LINK }, 798 { "PHYMOD_PRBS_DIRECTION_RX", PHYMOD_PRBS_DIRECTION_RX }, 799 { "PHYMOD_PRBS_DIRECTION_TX", PHYMOD_PRBS_DIRECTION_TX }, 800 { "PHYMOD_PRBS_STATUS_F_CLEAR_ON_READ", PHYMOD_PRBS_STATUS_F_CLEAR_ON_READ }, 801 { "PHYMOD_EYESCAN_F_ENABLE", PHYMOD_EYESCAN_F_ENABLE }, 802 { "PHYMOD_EYESCAN_F_PROCESS", PHYMOD_EYESCAN_F_PROCESS }, 803 { "PHYMOD_EYESCAN_F_DONE", PHYMOD_EYESCAN_F_DONE }, 804 { "PHYMOD_EYESCAN_F_ENABLE_DONT_WAIT", PHYMOD_EYESCAN_F_ENABLE_DONT_WAIT }, 805 { "PHYMOD_BER_PROJ_PHASE_F_PRE", PHYMOD_BER_PROJ_PHASE_F_PRE }, 806 { "PHYMOD_BER_PROJ_PHASE_F_CONFIG", PHYMOD_BER_PROJ_PHASE_F_CONFIG }, 807 { "PHYMOD_BER_PROJ_PHASE_F_START", PHYMOD_BER_PROJ_PHASE_F_START }, 808 { "PHYMOD_BER_PROJ_PHASE_F_COLLECT", PHYMOD_BER_PROJ_PHASE_F_COLLECT }, 809 { "PHYMOD_BER_PROJ_PHASE_F_CAL", PHYMOD_BER_PROJ_PHASE_F_CAL }, 810 { NULL } 811 }; 812 813 814 /* Typedefs section */ 815 static cint_parameter_desc_t __cint_typedefs[] = 816 { 817 { NULL } 818 }; 819 820 821 cint_data_t phymod_diagnostics_cint_data = 822 { 823 NULL, 824 __cint_functions, 825 __cint_structures, 826 __cint_enums, 827 __cint_typedefs, 828 __cint_constants, 829 __cint_function_pointers, 830 }; 831 832 833 #endif /* defined(PHYMOD_SUPPORT) */ 834 835 #endif /* defined(INCLUDE_LIB_CINT) */