ui_rom_defi_csys.h (44403B)
1 /* 2 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 * 4 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 5 */ 6 #ifndef UI_ROM_DEFI_CSYS_INCLUDED 7 /* { */ 8 #define UI_ROM_DEFI_CSYS_INCLUDED 9 /* 10 * General include file for reference design. 11 */ 12 13 #include <appl/diag/dpp/ref_sys.h> 14 15 #include <appl/diag/dpp/ui_defx.h> 16 #include <appl/diag/dpp/utils_defx.h> 17 18 #include <ui_pure_defi_csys.h> 19 20 #include <CSystem/csystem_sand_mem.h> 21 #include <Serdes/serdes_screening.h> 22 23 /* 24 * UI definition{ 25 */ 26 27 /******************************************************** 28 *NAME 29 * Csys_empty_vals 30 *TYPE: BUFFER 31 *DATE: 07/MAY/2002 32 *FUNCTION: 33 * ARRAY CONTAINING EMPTY LIST OF VALUES 34 * RELATED TO ANY PARAMETER OF ANY SUBJECT. 35 *ORGANIZATION: 36 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 37 * int val_type - 38 * Type of value. Can be: 39 * VAL_END_OF_LIST 0 40 * VAL_NUMERIC 1 41 * VAL_SYMBOL 2 42 * VAL_TEXT 3 43 * VAL_IP 4 44 * The first one is only to indicate the end of 45 * this array. The others indicate what kind of 46 * value this is. 47 * VAL_DESCRIPTOR val_descriptor - 48 * Union of structures (of types VAL_NUM_DESCRIPTOR, 49 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 50 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 51 * See details in file of definition. Note: Symbols 52 * must be small letters only! 53 *USAGE: 54 * SEE ORGANIZATION. 55 *REMARKS: 56 * None 57 *SEE ALSO: 58 */ 59 EXTERN CONST 60 PARAM_VAL_RULES 61 Csys_empty_vals[] 62 #ifdef INIT 63 = 64 { 65 /* 66 * Last element. Do not remove. 67 */ 68 { 69 VAL_END_OF_LIST 70 } 71 } 72 #endif 73 ; 74 75 76 /******************************************************** 77 *NAME 78 * Csys_free_vals 79 *TYPE: BUFFER 80 *DATE: 18/JAN/2002 81 *FUNCTION: 82 * ARRAY CONTAINING THE INITIAL LIST OF VALUES 83 * RELATED TO AN INDEFINITE SINGLE NUMBER. FOR EXAMPLE, 84 * THE PARAMETER "PRINT_ERRNO" WITHIN 'VX_SHELL'. 85 *ORGANIZATION: 86 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 87 * int val_type - 88 * Type of value. Can be: 89 * VAL_END_OF_LIST 0 90 * VAL_NUMERIC 1 91 * VAL_SYMBOL 2 92 * VAL_TEXT 3 93 * VAL_IP 4 94 * The first one is only to indicate the end of 95 * this array. The others indicate what kind of 96 * value this is. 97 * char *symb_val - 98 * ASCII presentation of the symbolic value. 99 * Note: Must be small letters only! 100 * For numeric variables: 101 * This is a dummy variable. Enables searching 102 * array of 'PARAM_VAL_RULES' for name (string) 103 * matching without special case for numeric 104 * variable. 105 * VAL_DESCRIPTOR val_descriptor - 106 * Union of structures (of types VAL_NUM_DESCRIPTOR, 107 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 108 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 109 * See details in file of definition. Note: Symbols 110 * must be small letters only! 111 *USAGE: 112 * SEE ORGANIZATION. 113 *REMARKS: 114 * NONE. 115 *SEE ALSO: 116 */ 117 EXTERN CONST 118 PARAM_VAL_RULES 119 Csys_free_vals[] 120 #ifdef INIT 121 = 122 { 123 { 124 VAL_NUMERIC,SYMB_NAME_NUMERIC, 125 { 126 { 127 HAS_NO_MIN_VALUE | HAS_NO_MAX_VALUE, 128 0,0, 129 /* 130 * Number of times this value can be repeated (i.e., 131 * value is an array). Must be at least 1! 132 */ 133 1, 134 (VAL_PROC_PTR)NULL 135 } 136 } 137 }, 138 /* 139 * Last element. Do not remove. 140 */ 141 { 142 VAL_END_OF_LIST 143 } 144 } 145 #endif 146 ; 147 148 /******************************************************** 149 *NAME 150 * Csyse_fap_id_vals 151 *TYPE: BUFFER 152 *DATE: 10/MARCH/2004 153 *FUNCTION: 154 * ARRAY CONTAINING THE INITIAL LIST OF VALUES 155 * RELATED TO THE PARAMETER "FAP_LINK" OF SUBJECT 156 * 'GENERAL DEMO'. 157 *ORGANIZATION: 158 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 159 * int val_type - 160 * Type of value. Can be: 161 * VAL_END_OF_LIST 0 162 * VAL_NUMERIC 1 163 * VAL_SYMBOL 2 164 * VAL_TEXT 3 165 * VAL_IP 4 166 * The first one is only to indicate the end of 167 * this array. The others indicate what kind of 168 * value this is. 169 * char *symb_val - 170 * ASCII presentation of the symbolic value. 171 * Note: Must be small letters only! 172 * For numeric variables: 173 * This is a dummy variable. Enables searching 174 * array of 'PARAM_VAL_RULES' for name (string) 175 * matching without special case for numeric 176 * variable. 177 * VAL_DESCRIPTOR val_descriptor - 178 * Union of structures (of types VAL_NUM_DESCRIPTOR, 179 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 180 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 181 * See details in file of definition. Note: Symbols 182 * must be small letters only! 183 *USAGE: 184 * SEE ORGANIZATION. 185 *REMARKS: 186 * None 187 *SEE ALSO: 188 */ 189 EXTERN CONST 190 PARAM_VAL_RULES 191 Csyse_fap_id_vals[] 192 #ifdef INIT 193 = 194 { 195 { 196 VAL_NUMERIC, 197 SYMB_NAME_NUMERIC, 198 { 199 { 200 HAS_MIN_VALUE | HAS_MAX_VALUE, 201 CSYS_MAX_NOF_FAP_IN_SYSTEM - 1, 202 0, 203 /* 204 * Number of times this value can be repeated (i.e., 205 * value is an array). Must be at least 1! 206 */ 207 1, 208 (VAL_PROC_PTR)0 209 } 210 } 211 }, 212 /* 213 * Last element. Do not remove. 214 */ 215 { 216 VAL_END_OF_LIST 217 } 218 } 219 #endif 220 ; 221 222 EXTERN CONST 223 PARAM_VAL_RULES 224 Csyse_link_id_vals[] 225 #ifdef INIT 226 = 227 { 228 { 229 VAL_NUMERIC, 230 SYMB_NAME_NUMERIC, 231 { 232 { 233 HAS_MIN_VALUE | HAS_MAX_VALUE, 234 FAP10M_NOF_FABRIC_LINKS - 1, 235 0, 236 /* 237 * Number of times this value can be repeated (i.e., 238 * value is an array). Must be at least 1! 239 */ 240 1, 241 (VAL_PROC_PTR)0 242 } 243 } 244 }, 245 /* 246 * Last element. Do not remove. 247 */ 248 { 249 VAL_END_OF_LIST 250 } 251 } 252 #endif 253 ; 254 255 256 EXTERN CONST 257 PARAM_VAL_RULES 258 Csyse_fe_id_vals[] 259 #ifdef INIT 260 = 261 { 262 { 263 VAL_NUMERIC, 264 SYMB_NAME_NUMERIC, 265 { 266 { 267 HAS_MIN_VALUE | HAS_MAX_VALUE, 268 CSYS_MAX_NOF_FE_IN_SYSTEM - 1, 269 0, 270 /* 271 * Number of times this value can be repeated (i.e., 272 * value is an array). Must be at least 1! 273 */ 274 1, 275 (VAL_PROC_PTR)0 276 } 277 } 278 }, 279 /* 280 * Last element. Do not remove. 281 */ 282 { 283 VAL_END_OF_LIST 284 } 285 } 286 #endif 287 ; 288 289 290 /******************************************************** 291 *NAME 292 * Csys_file_name_vals 293 *TYPE: BUFFER 294 *DATE: 31/MAR/2002 295 *FUNCTION: 296 * ARRAY CONTAINING THE INITIAL LIST OF VALUES 297 * RELATED TO THE PARAMETER "DOWNLOAD_FILE_NAME" IN THE 298 * CONTEXT OF SUBJECT 'NVRAM'. 299 *ORGANIZATION: 300 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 301 * int val_type - 302 * Type of value. Can be: 303 * VAL_END_OF_LIST 0 304 * VAL_NUMERIC 1 305 * VAL_SYMBOL 2 306 * VAL_TEXT 3 307 * VAL_IP 4 308 * The first one is only to indicate the end of 309 * this array. The others indicate what kind of 310 * value this is. 311 * VAL_DESCRIPTOR val_descriptor - 312 * Union of structures (of types VAL_NUM_DESCRIPTOR, 313 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 314 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 315 * See details in file of definition. Note: Symbols 316 * must be small letters only! 317 *USAGE: 318 * SEE ORGANIZATION. 319 *REMARKS: 320 * NONE. 321 *SEE ALSO: 322 */ 323 EXTERN CONST 324 PARAM_VAL_RULES 325 Csys_file_name_vals[] 326 #ifdef INIT 327 = 328 { 329 { 330 VAL_TEXT, 331 (char *)0, 332 { 333 { 334 /* 335 * Maximal number of characters. 336 */ 337 DLD_FILE_NAME_LEN, 338 /* 339 * Casting added here just to keep the compiler silent. 340 */ 341 (long)" Name of application file on downloading host.", 342 } 343 } 344 }, 345 /* 346 * Last element. Do not remove. 347 */ 348 { 349 VAL_END_OF_LIST 350 } 351 } 352 #endif 353 ; 354 355 356 EXTERN CONST 357 PARAM_VAL 358 Csys_1_value_default 359 #ifdef INIT 360 = 361 { 362 VAL_NUMERIC, 363 1, 364 { 365 /* 366 * Casting may be required here only to keep the compiler silent. 367 */ 368 (unsigned long)1 369 } 370 } 371 #endif 372 ; 373 374 /* 375 */ 376 EXTERN CONST 377 PARAM_VAL 378 Csys_0_value_default 379 #ifdef INIT 380 = 381 { 382 VAL_NUMERIC, 383 0, 384 { 385 /* 386 * Casting may be required here only to keep the compiler silent. 387 */ 388 (unsigned long)0 389 } 390 } 391 #endif 392 ; 393 /* 394 */ 395 EXTERN CONST 396 PARAM_VAL_RULES 397 Csys_mem_value_vals[] 398 #ifdef INIT 399 = 400 { 401 { 402 VAL_NUMERIC,SYMB_NAME_NUMERIC, 403 { 404 { 405 0, 406 0,0, 407 /* 408 * Number of times this value can be repeated (i.e., 409 * value is an array). Must be at least 1! 410 */ 411 CSYS_MEM_VALUE_NOF_ENTRIES, 412 (VAL_PROC_PTR)NULL 413 } 414 } 415 }, 416 /* 417 * Last element. Do not remove. 418 */ 419 { 420 VAL_END_OF_LIST 421 } 422 } 423 #endif 424 ; 425 426 /******************************************************** 427 *NAME 428 * Csyse_get_connectivity_map_flavor 429 *TYPE: BUFFER 430 *DATE: 25/MARCH/2004 431 *FUNCTION: 432 * ARRAY CONTAINING THE INITIAL LIST OF VALUES 433 * RELATED TO THE PARAMETER "DOWNLOAD_MIBS" IN THE 434 * CONTEXT OF SUBJECT 'NVRAM'. 435 *ORGANIZATION: 436 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 437 * int val_type - 438 * Type of value. Can be: 439 * VAL_END_OF_LIST 0 440 * VAL_NUMERIC 1 441 * VAL_SYMBOL 2 442 * VAL_TEXT 3 443 * VAL_IP 4 444 * The first one is only to indicate the end of 445 * this array. The others indicate what kind of 446 * value this is. 447 * int numeric_equivalent 448 * Numeric value related to string_value. Only relevant 449 * for val_type = VAL_SYMBOL 450 * VAL_DESCRIPTOR val_descriptor - 451 * Union of structures (of types VAL_NUM_DESCRIPTOR, 452 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 453 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 454 * See details in file of definition. Note: Symbols 455 * must be small letters only! 456 *USAGE: 457 * SEE ORGANIZATION. 458 *REMARKS: 459 * NONE. 460 *SEE ALSO: 461 */ 462 EXTERN CONST 463 PARAM_VAL_RULES 464 Csys_direction_vals[] 465 #ifdef INIT 466 = 467 { 468 { 469 VAL_SYMBOL, 470 "fe_to_fap", 471 { 472 { 473 SERDES_RX_TX_OP_RX_ONLY, 474 /* 475 * Casting added here just to keep the compiler silent. 476 */ 477 (long)" FE send the PRBS, and FAP receive.", 478 /* 479 * Pointer to a function to call after symbolic value 480 * has been accepted. Casting should be 'VAL_PROC_PTR'. 481 * Casting to 'long' added here just to keep the 482 * compiler silent. 483 */ 484 (long)NULL 485 } 486 } 487 }, 488 { 489 VAL_SYMBOL, 490 "fap_to_fe", 491 { 492 { 493 SERDES_RX_TX_OP_TX_ONLY, 494 /* 495 * Casting added here just to keep the compiler silent. 496 */ 497 (long)" FAP send the PRBS, and FE receive.", 498 /* 499 * Pointer to a function to call after symbolic value 500 * has been accepted. Casting should be 'VAL_PROC_PTR'. 501 * Casting to 'long' added here just to keep the 502 * compiler silent. 503 */ 504 (long)NULL 505 } 506 } 507 }, 508 { 509 VAL_SYMBOL, 510 "both", 511 { 512 { 513 SERDES_RX_TX_OP_BOTH, 514 /* 515 * Casting added here just to keep the compiler silent. 516 */ 517 (long)" Both FAP and FE send PRBS, and both receive.", 518 /* 519 * Pointer to a function to call after symbolic value 520 * has been accepted. Casting should be 'VAL_PROC_PTR'. 521 * Casting to 'long' added here just to keep the 522 * compiler silent. 523 */ 524 (long)NULL 525 } 526 } 527 }, 528 /* 529 * Last element. Do not remove. 530 */ 531 { 532 VAL_END_OF_LIST 533 } 534 } 535 #endif 536 ; 537 538 EXTERN CONST 539 PARAM_VAL_RULES 540 Csyse_get_connectivity_map_flavor[] 541 #ifdef INIT 542 = 543 { 544 { 545 VAL_SYMBOL, 546 "print_all_links", 547 { 548 { 549 FALSE, 550 /* 551 * Casting added here just to keep the compiler silent. 552 */ 553 (long)" Print Connectivity Map of all the links in the system / FAP.", 554 /* 555 * Pointer to a function to call after symbolic value 556 * has been accepted. Casting should be 'VAL_PROC_PTR'. 557 * Casting to 'long' added here just to keep the 558 * compiler silent. 559 */ 560 (long)NULL 561 } 562 } 563 }, 564 { 565 VAL_SYMBOL, 566 "print_all_faulty_links", 567 { 568 { 569 TRUE, 570 /* 571 * Casting added here just to keep the compiler silent. 572 */ 573 (long)" Print Connectivity Map of all the faulty links in the system / FAP.", 574 /* 575 * Pointer to a function to call after symbolic value 576 * has been accepted. Casting should be 'VAL_PROC_PTR'. 577 * Casting to 'long' added here just to keep the 578 * compiler silent. 579 */ 580 (long)NULL 581 } 582 } 583 }, 584 /* 585 * Last element. Do not remove. 586 */ 587 { 588 VAL_END_OF_LIST 589 } 590 } 591 #endif 592 ; 593 594 595 596 /******************************************************** 597 *NAME 598 * Csyse_get_counters_flavor 599 *TYPE: BUFFER 600 *DATE: 25/MARCH/2004 601 *FUNCTION: 602 * ARRAY CONTAINING THE INITIAL LIST OF VALUES 603 * RELATED TO THE PARAMETER "DOWNLOAD_MIBS" IN THE 604 * CONTEXT OF SUBJECT 'NVRAM'. 605 *ORGANIZATION: 606 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 607 * int val_type - 608 * Type of value. Can be: 609 * VAL_END_OF_LIST 0 610 * VAL_NUMERIC 1 611 * VAL_SYMBOL 2 612 * VAL_TEXT 3 613 * VAL_IP 4 614 * The first one is only to indicate the end of 615 * this array. The others indicate what kind of 616 * value this is. 617 * int numeric_equivalent 618 * Numeric value related to string_value. Only relevant 619 * for val_type = VAL_SYMBOL 620 * VAL_DESCRIPTOR val_descriptor - 621 * Union of structures (of types VAL_NUM_DESCRIPTOR, 622 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 623 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 624 * See details in file of definition. Note: Symbols 625 * must be small letters only! 626 *USAGE: 627 * SEE ORGANIZATION. 628 *REMARKS: 629 * NONE. 630 *SEE ALSO: 631 */ 632 633 634 EXTERN CONST 635 PARAM_VAL_RULES 636 Csyse_get_counters_flavor[] 637 #ifdef INIT 638 = 639 { 640 { 641 VAL_SYMBOL, 642 "long", 643 { 644 { 645 FALSE, 646 /* 647 * Casting added here just to keep the compiler silent. 648 */ 649 (long)" Print all the registers.", 650 /* 651 * Pointer to a function to call after symbolic value 652 * has been accepted. Casting should be 'VAL_PROC_PTR'. 653 * Casting to 'long' added here just to keep the 654 * compiler silent. 655 */ 656 (long)NULL 657 } 658 } 659 }, 660 { 661 VAL_SYMBOL, 662 "short", 663 { 664 { 665 TRUE, 666 /* 667 * Casting added here just to keep the compiler silent. 668 */ 669 (long)" Will not print registers with value ZERO.", 670 /* 671 * Pointer to a function to call after symbolic value 672 * has been accepted. Casting should be 'VAL_PROC_PTR'. 673 * Casting to 'long' added here just to keep the 674 * compiler silent. 675 */ 676 (long)NULL 677 } 678 } 679 }, 680 /* 681 * Last element. Do not remove. 682 */ 683 { 684 VAL_END_OF_LIST 685 } 686 } 687 #endif 688 ; 689 690 /******************************************************** 691 *NAME 692 * Csys_params 693 *TYPE: BUFFER 694 *DATE: 29/Dec/2002 695 *FUNCTION: 696 * ARRAY CONTAINING THE INITIAL LIST OF PARAMETERS 697 * RELATED TO THE SUBJECT "TGS". 698 *ORGANIZATION: 699 * ARRAY OF STRUCTURES OF TYPE 'PARAM': 700 * int subject_id - 701 * Identifier of this parameter. 702 * char *par_name - 703 * Ascii presentation of parameter. Must be small 704 * letters only! Must contain at least one character. 705 * PARAM_VAL *allowed_vals - 706 * Array of structures of type PARAM_VAL. This is 707 * the list of values allowed for that 708 * parameter. 709 * int default_care - 710 * Flags bitmap. 711 * Bit(0) indicates whether there is a default 712 * value for this parameter (i.e. 'default_val' 713 * is meaningful). '0' indicates 'no default val'. 714 * Bit(1) indicates whether this parameter must 715 * or may not appear on command line (within its 716 * context). '0' indicates 'may not appear'. 717 * PARAM_VAL *default_val - 718 * Default value for this parameter. 719 * unsigned int num_numeric_vals ; 720 * Number of numeric values in array 'allowed_vals'. 721 * unsigned int num_symbolic_vals ; 722 * Number of symbolic values in array 'allowed_vals'. 723 * unsigned int num_text_vals ; 724 * Number of free text values in array 'allowed_vals'. 725 * unsigned int num_ip_vals ; 726 * Number of IP address values in array 'allowed_vals'. 727 * unsigned int numeric_index ; 728 * Index of numeric value (if there is any) in 729 * array 'allowed_vals'. 730 * unsigned int text_index ; 731 * Index of free text value (if there is any) in 732 * array 'allowed_vals'. 733 * unsigned int ip_index ; 734 * Index of IP address value (if there is any) in 735 * array 'allowed_vals'. 736 * char *param_short_help - 737 * Short help for this parameter. 738 * char *param_detailed_help - 739 * Detailed help for this parameter. 740 * char *vals_detailed_help ; 741 * Detailed help for all values attached to this parameter. 742 * THIS FIELD IS AUTOMATICALLY FILLED IN BY THE SYSTEM 743 * and does NOT need to be filled in by the user. 744 * unsigned long mutex_control ; 745 * Mutual exclusion syntax control. Up to 32 groups 746 * specified by bits. If a parameter has specific 747 * bits set then other parameters, with any of 748 * these bits set, may not be on the same line. 749 *USAGE: 750 * SEE ORGANIZATION. 751 *REMARKS: 752 * NONE. 753 *SEE ALSO: 754 */ 755 EXTERN CONST 756 PARAM 757 Csys_params[] 758 #ifdef INIT 759 = 760 /* 761 ****** 762 * ENTRY -- 0 763 * BIT(0) - MEM: FAP READ 764 * BIT(1) FAP WRITE 765 * BIT(2) FE READ 766 * BIT(3) FE WRITE 767 * 768 ****** 769 * ENTRY -- 1 770 * BIT(0 1 2 3) - SerDes 771 */ 772 { 773 { 774 PARAM_CSYS_MNGT_ID, 775 "management", 776 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 777 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 778 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 779 0,0,0,0,0,0,0, 780 "Chassis management utilities.", 781 "Example:\r\n" 782 " csys management net status\r\n" 783 "Print the knowen network Chassis status.\r\n", 784 "", 785 {BIT(6)}, 786 1, 787 /* 788 * Pointer to a function to call after symbolic parameter 789 * has been accepted. 790 */ 791 (VAL_PROC_PTR)NULL 792 }, 793 { 794 PARAM_CSYS_MNGT_NET_ID, 795 "net", 796 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 797 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 798 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 799 0,0,0,0,0,0,0, 800 "Chassis management NET utilities.", 801 "Example:\r\n" 802 " csys management net status\r\n" 803 "Print the knowen network Chassis status.\r\n", 804 "", 805 {BIT(6)}, 806 2, 807 /* 808 * Pointer to a function to call after symbolic parameter 809 * has been accepted. 810 */ 811 (VAL_PROC_PTR)NULL 812 }, 813 { 814 PARAM_CSYS_MNGT_STATUS_ID, 815 "status", 816 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 817 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 818 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 819 0,0,0,0,0,0,0, 820 "Display the .", 821 "Example:\r\n" 822 " csys management net status\r\n" 823 "Print the knowen network Chassis status.\r\n", 824 "", 825 {BIT(6)}, 826 LAST_ORDINAL, 827 /* 828 * Pointer to a function to call after symbolic parameter 829 * has been accepted. 830 */ 831 (VAL_PROC_PTR)NULL 832 }, 833 { 834 PARAM_CSYS_MEM_ID, 835 "mem", 836 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 837 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 838 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 839 0,0,0,0,0,0,0, 840 "MEM utilities.", 841 "Example:\r\n" 842 " csys mem read offset 0x0 all_faps\r\n" 843 "Results in reading memory offset 0x0 in all the FAPs in the Chassis.\r\n", 844 "", 845 {BIT(0) | BIT(1) | BIT(2) | BIT(3)}, 846 1, 847 /* 848 * Pointer to a function to call after symbolic parameter 849 * has been accepted. 850 */ 851 (VAL_PROC_PTR)NULL 852 }, 853 { 854 PARAM_CSYS_READ_ID, 855 "read", 856 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 857 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 858 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 859 0,0,0,0,0,0,0, 860 "MEM utilities.", 861 "Example:\r\n" 862 " csys mem read offset 0x0 all_faps\r\n" 863 "Results in reading memory offset 0x0 in all the FAPs in the Chassis.\r\n", 864 "", 865 {BIT(0) | BIT(2)}, 866 2, 867 /* 868 * Pointer to a function to call after symbolic parameter 869 * has been accepted. 870 */ 871 (VAL_PROC_PTR)NULL 872 }, 873 { 874 PARAM_CSYS_ALL_FAPS_ID, 875 "all_faps", 876 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 877 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 878 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 879 0,0,0,0,0,0,0, 880 "MEM utilities.", 881 "Example:\r\n" 882 " csys mem read offset 0x0 all_faps\r\n" 883 "Results in reading memory offset 0x0 in all the FAPs in the Chassis.\r\n", 884 "", 885 {BIT(0) | BIT(1)}, 886 3, 887 /* 888 * Pointer to a function to call after symbolic parameter 889 * has been accepted. 890 */ 891 (VAL_PROC_PTR)NULL 892 }, 893 { 894 PARAM_CSYS_FAP_ID_ID, 895 "fap_id", 896 (PARAM_VAL_RULES *)&Csyse_fap_id_vals[0], 897 (sizeof(Csyse_fap_id_vals) / sizeof(Csyse_fap_id_vals[0])) - 1, 898 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 899 0,0,0,0,0,0,0, 900 "FAP-Id. 0 to 15", 901 "Example:\r\n" 902 " csys mem read offset 0x0 fap_id 0\r\n" 903 "Results in reading memory offset 0x0 in all FAP 0.\r\n", 904 "", 905 {BIT(0) | BIT(1)}, 906 3, 907 /* 908 * Pointer to a function to call after symbolic parameter 909 * has been accepted. 910 */ 911 (VAL_PROC_PTR)NULL 912 }, 913 { 914 PARAM_CSYS_ALL_FES_ID, 915 "all_fes", 916 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 917 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 918 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 919 0,0,0,0,0,0,0, 920 "MEM utilities.", 921 "Example:\r\n" 922 " csys mem read offset 0x0 all_fes\r\n" 923 "Results in reading memory offset 0x0 in all the FEs in the Chassis.\r\n", 924 "", 925 {BIT(2) | BIT(3)}, 926 3, 927 /* 928 * Pointer to a function to call after symbolic parameter 929 * has been accepted. 930 */ 931 (VAL_PROC_PTR)NULL 932 }, 933 { 934 PARAM_CSYS_FE_ID_ID, 935 "fe_id", 936 (PARAM_VAL_RULES *)&Csyse_fe_id_vals[0], 937 (sizeof(Csyse_fe_id_vals) / sizeof(Csyse_fe_id_vals[0])) - 1, 938 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 939 0,0,0,0,0,0,0, 940 "FE-Id. 0 to 12", 941 "Example:\r\n" 942 " csys mem read offset 0x0 fe_id 0\r\n" 943 "Results in reading memory offset 0x0 in FE 0.\r\n", 944 "", 945 {BIT(2) | BIT(3)}, 946 3, 947 /* 948 * Pointer to a function to call after symbolic parameter 949 * has been accepted. 950 */ 951 (VAL_PROC_PTR)NULL 952 }, 953 { 954 PARAM_CSYS_OFFSET_ID, 955 "offset", 956 (PARAM_VAL_RULES *)&Csys_free_vals[0], 957 (sizeof(Csys_free_vals) / sizeof(Csys_free_vals[0])) - 1, 958 MAY_NOT_APPEAR | HAS_DEFAULT,(PARAM_VAL *)&Csys_0_value_default, 959 0,0,0,0,0,0,0, 960 "MEM utilities.", 961 "Example:\r\n" 962 " csys mem read offset 0x0 all_faps\r\n" 963 "Results in reading memory offset 0x0 in all the FAPs in the Chassis.\r\n", 964 "", 965 {BIT(0) | BIT(1) | BIT(2) | BIT(3)}, 966 LAST_ORDINAL, 967 /* 968 * Pointer to a function to call after symbolic parameter 969 * has been accepted. 970 */ 971 (VAL_PROC_PTR)NULL 972 }, 973 { 974 PARAM_CSYS_SIZE_ID, 975 "nof_longs", 976 (PARAM_VAL_RULES *)&Csys_free_vals[0], 977 (sizeof(Csys_free_vals) / sizeof(Csys_free_vals[0])) - 1, 978 MAY_NOT_APPEAR | HAS_DEFAULT,(PARAM_VAL *)&Csys_1_value_default, 979 0,0,0,0,0,0,0, 980 "Number of LONGs.", 981 "Example:\r\n" 982 " csys mem read offset 0x0 all_faps nof_longs 2\r\n" 983 "Results in reading memory offset 0x0 in all the FAPs in the Chassis.\r\n" 984 " 2 LONG will be read.\n\r", 985 "", 986 {BIT(0) | BIT(2)}, 987 LAST_ORDINAL, 988 /* 989 * Pointer to a function to call after symbolic parameter 990 * has been accepted. 991 */ 992 (VAL_PROC_PTR)NULL 993 }, 994 { 995 PARAM_CSYS_SILENT_ID, 996 "silent", 997 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 998 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 999 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1000 0,0,0,0,0,0,0, 1001 "Silent Indicator.", 1002 "Example:\r\n" 1003 " csys mem read offset 0x0 all_faps verbose\r\n" 1004 "Results in reading memory offset 0x0 in all the FAPs in the Chassis.\r\n" 1005 " Silent indicates to print minimal as possible.", 1006 "", 1007 {BIT(0) | BIT(1) | BIT(2) | BIT(3)}, 1008 LAST_ORDINAL, 1009 /* 1010 * Pointer to a function to call after symbolic parameter 1011 * has been accepted. 1012 */ 1013 (VAL_PROC_PTR)NULL 1014 }, 1015 { 1016 PARAM_CSYS_ADDRESS_IN_LONGS_ID, 1017 "address_in_longs", 1018 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1019 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1020 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1021 0,0,0,0,0,0,0, 1022 "Address in long Indicator (SOC_SAND_FAP20V DS).", 1023 "Example:\r\n" 1024 " csys mem read offset 0x0 all_faps verbose address_in_longs\r\n" 1025 "Results in reading memory offset 0x0 in all the FAPs in the Chassis.\r\n" 1026 " Silent indicates to print minimal as possible.\n\r" 1027 " Address in LONG will be used. Offsets as 0x1 are OK.", 1028 "", 1029 {BIT(0) | BIT(1) | BIT(2) | BIT(3)}, 1030 LAST_ORDINAL, 1031 /* 1032 * Pointer to a function to call after symbolic parameter 1033 * has been accepted. 1034 */ 1035 (VAL_PROC_PTR)NULL 1036 }, 1037 { 1038 PARAM_CSYS_WRITE_ID, 1039 "write", 1040 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1041 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1042 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1043 0,0,0,0,0,0,0, 1044 "MEM utilities.", 1045 "Example:\r\n" 1046 " csys mem write offset 0x0 all_faps data 0x1234\r\n" 1047 "Results in writing memory offset 0x0 in all the FAPs in the Chassis,\r\n" 1048 " value of 0x1234", 1049 "", 1050 {BIT(1) | BIT(3)}, 1051 2, 1052 /* 1053 * Pointer to a function to call after symbolic parameter 1054 * has been accepted. 1055 */ 1056 (VAL_PROC_PTR)NULL 1057 }, 1058 { 1059 PARAM_CSYS_DATA_ID, 1060 "data", 1061 (PARAM_VAL_RULES *)&Csys_mem_value_vals[0], 1062 (sizeof(Csys_mem_value_vals) / sizeof(Csys_mem_value_vals[0])) - 1, 1063 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 1064 0,0,0,0,0,0,0, 1065 "a part of write data to the specified.\r\n", 1066 "Examples:\r\n" 1067 " csys mem write offset 0x0 all_faps data 0x1234\r\n" 1068 "Results in writing memory offset 0x0 in all the FAPs in the Chassis,\r\n" 1069 " value of 0x1234", 1070 "", 1071 {BIT(1) | BIT(3)}, 1072 LAST_ORDINAL, 1073 /* 1074 * Pointer to a function to call after symbolic parameter 1075 * has been accepted. 1076 */ 1077 (VAL_PROC_PTR)NULL 1078 }, 1079 { 1080 PARAM_CSYS_SERDES_ID, 1081 "serdes", 1082 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1083 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1084 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1085 0,0,0,0,0,0,0, 1086 "SerDes utilities.", 1087 "Example:\r\n" 1088 " csys serdes prbs_test_all_fap_links\r\n" 1089 "Results in PRBS testing of all FAP links in the system (FAP is TX)\r\n", 1090 "", 1091 {0, 1092 BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5)}, 1093 1, 1094 /* 1095 * Pointer to a function to call after symbolic parameter 1096 * has been accepted. 1097 */ 1098 (VAL_PROC_PTR)NULL 1099 }, 1100 { 1101 PARAM_CSYS_SERDES_LOAD_PARAMS_FAP20V_ID, 1102 "load_params_fap20v", 1103 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1104 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1105 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1106 0,0,0,0,0,0,0, 1107 "Load SOC_SAND_FAP20V serdes parameters from file.", 1108 "Examples:\r\n" 1109 " csys serdes load_params_fap20v download_file_name ver_0127\r\n" 1110 "Results loading SOC_SAND_FAP20V serdes parameters from file 'ver_0127'.\r\n", 1111 "", 1112 {0, 1113 BIT(3)}, 1114 2, 1115 /* 1116 * Pointer to a function to call after symbolic parameter 1117 * has been accepted. 1118 */ 1119 (VAL_PROC_PTR)NULL 1120 }, 1121 { 1122 PARAM_CSYS_SERDES_LOAD_PARAMS_FE200_ID, 1123 "load_params_fe200", 1124 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1125 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1126 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1127 0,0,0,0,0,0,0, 1128 "Load SOC_SAND_FE200 serdes parameters from file.", 1129 "Examples:\r\n" 1130 " csys serdes load_params_fe200 download_file_name ver_0127\r\n" 1131 "Results loading SOC_SAND_FE200 serdes parameters from file 'ver_0127'.\r\n", 1132 "", 1133 {0, 1134 BIT(3)}, 1135 2, 1136 /* 1137 * Pointer to a function to call after symbolic parameter 1138 * has been accepted. 1139 */ 1140 (VAL_PROC_PTR)NULL 1141 }, 1142 { 1143 PARAM_CSYS_FILE_NAME_ID, 1144 "download_file_name", 1145 (PARAM_VAL_RULES *)&Csys_file_name_vals[0], 1146 (sizeof(Csys_file_name_vals) / sizeof(Csys_file_name_vals[0])) - 1, 1147 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1148 0,0,0,0,0,0,0, 1149 "Write \'download_file_name\' variable contained in NVRAM or runtime blocks.", 1150 "Examples:\r\n" 1151 " csys serdes load_params_fe200 download_file_name ver_0127\r\n" 1152 "Results loading SOC_SAND_FE200 serdes parameters from file 'ver_0127'.\r\n", 1153 "", 1154 {0, 1155 BIT(3)}, 1156 LAST_ORDINAL, 1157 /* 1158 * Pointer to a function to call after symbolic parameter 1159 * has been accepted. 1160 */ 1161 (VAL_PROC_PTR)NULL 1162 }, 1163 { 1164 PARAM_CSYS_SERDES_FE_LINKS_ID, 1165 "fe_get_links_status", 1166 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1167 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1168 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1169 0,0,0,0,0,0,0, 1170 "Get and display FEs links status in all the system.", 1171 "Example:\r\n" 1172 " csys serdes fe_get_links_status\r\n" 1173 "Results in display of all FEs links status in all the system\r\n", 1174 "", 1175 {0, 1176 BIT(1)}, 1177 2, 1178 /* 1179 * Pointer to a function to call after symbolic parameter 1180 * has been accepted. 1181 */ 1182 (VAL_PROC_PTR)NULL 1183 }, 1184 { 1185 PARAM_CSYS_SCREENING_ID, 1186 "screening", 1187 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1188 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1189 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1190 0,0,0,0,0,0,0, 1191 "This option will do the PRBS test for screening setup.", 1192 "Example:\r\n" 1193 " csys serdes screening\r\n" 1194 "Results in running the screening process\r\n", 1195 "", 1196 {0, 1197 BIT(5)}, 1198 2, 1199 /* 1200 * Pointer to a function to call after symbolic parameter 1201 * has been accepted. 1202 */ 1203 (VAL_PROC_PTR)NULL 1204 }, 1205 { 1206 PARAM_CSYS_SCREENING_TIME_ID, 1207 "time", 1208 (PARAM_VAL_RULES *)&Csys_free_vals[0], 1209 (sizeof(Csys_free_vals) / sizeof(Csys_free_vals[0])) - 1, 1210 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1211 0,0,0,0,0,0,0, 1212 "Time in seconds, for the PRBS stream sending.", 1213 "Example:\r\n" 1214 " csys serdes screening time 20\r\n" 1215 "Results in running the PRBS stream for 20 sec each iteration\r\n" 1216 "and 80 seconds total\n\r", 1217 "", 1218 {0, 1219 BIT(5)}, 1220 LAST_ORDINAL, 1221 /* 1222 * Pointer to a function to call after symbolic parameter 1223 * has been accepted. 1224 */ 1225 (VAL_PROC_PTR)NULL 1226 }, 1227 { 1228 PARAM_CSYS_SCREENING_PRNT_LVL_ID, 1229 "print_level", 1230 (PARAM_VAL_RULES *)&Csys_free_vals[0], 1231 (sizeof(Csys_free_vals) / sizeof(Csys_free_vals[0])) - 1, 1232 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1233 0,0,0,0,0,0,0, 1234 "Printing level 0-3.", 1235 "Example:\r\n" 1236 " csys serdes screening time 20 print_level 3\r\n" 1237 "Results in running the PRBS stream for 20 sec each iteration\r\n" 1238 " and 80 seconds total, and the maximum detailed printing.\n\r", 1239 "", 1240 {0, 1241 BIT(5)}, 1242 LAST_ORDINAL, 1243 /* 1244 * Pointer to a function to call after symbolic parameter 1245 * has been accepted. 1246 */ 1247 (VAL_PROC_PTR)NULL 1248 }, 1249 { 1250 PARAM_CSYS_SCREENING_BM_ID, 1251 "bitmap", 1252 (PARAM_VAL_RULES *)&Csys_free_vals[0], 1253 (sizeof(Csys_free_vals) / sizeof(Csys_free_vals[0])) - 1, 1254 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1255 0,0,0,0,0,0,0, 1256 "Groups BitMap 0x0 - 0xF.", 1257 "Example:\r\n" 1258 " csys serdes screening time 20 print_level 3\r\n" 1259 "Results in running the PRBS stream for 20 sec each iteration\r\n" 1260 " and 80 seconds total, and the maximum detailed printing.\n\r", 1261 "", 1262 {0, 1263 BIT(5)}, 1264 LAST_ORDINAL, 1265 /* 1266 * Pointer to a function to call after symbolic parameter 1267 * has been accepted. 1268 */ 1269 (VAL_PROC_PTR)NULL 1270 }, 1271 { 1272 PARAM_CSYS_SCREENING_RX_TX_ID, 1273 "direction", 1274 (PARAM_VAL_RULES *)&Csys_direction_vals[0], 1275 (sizeof(Csys_direction_vals) / sizeof(Csys_direction_vals[0])) - 1, 1276 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1277 0,0,0,0,0,0,0, 1278 "Should the FAP recieve PRBS, send PRBS or both.", 1279 "Example:\r\n" 1280 " csys serdes screening direction both\r\n" 1281 "Results in running the PRBS stream from the FAP to the FE,\n\r" 1282 " and a stream from the FE to the FAP at the same time,\n\r", 1283 "", 1284 {0, 1285 BIT(5)}, 1286 LAST_ORDINAL, 1287 /* 1288 * Pointer to a function to call after symbolic parameter 1289 * has been accepted. 1290 */ 1291 (VAL_PROC_PTR)NULL 1292 }, 1293 { 1294 PARAM_CSYS_SERDES_FAP_LINKS_ID, 1295 "fap_get_links_status", 1296 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1297 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1298 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1299 0,0,0,0,0,0,0, 1300 "Get and display FAPs links status in all the system.", 1301 "Example:\r\n" 1302 " csys serdes fap_get_links_status\r\n" 1303 "Results in display of all FAPs links status in all the system\r\n", 1304 "", 1305 {0, 1306 BIT(1)}, 1307 2, 1308 /* 1309 * Pointer to a function to call after symbolic parameter 1310 * has been accepted. 1311 */ 1312 (VAL_PROC_PTR)NULL 1313 }, 1314 { 1315 PARAM_CSYS_SERDES_GET_FE_BERS_ID, 1316 "get_fe_bers", 1317 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1318 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1319 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1320 0,0,0,0,0,0,0, 1321 "Get FE RX BER (PRBS) counter.", 1322 "Example:\r\n" 1323 " csys serdes get_fe_bers fap_id 0\r\n" 1324 "Results in getting the BER counters from all the \n\r" 1325 " FEs connected to FAP 0\r\n", 1326 "", 1327 {0, 1328 BIT(2)}, 1329 2, 1330 /* 1331 * Pointer to a function to call after symbolic parameter 1332 * has been accepted. 1333 */ 1334 (VAL_PROC_PTR)NULL 1335 }, 1336 { 1337 PARAM_CSYS_SERDES_GET_FAP_BERS_ID, 1338 "get_fap_bers", 1339 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1340 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1341 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1342 0,0,0,0,0,0,0, 1343 "Get FAP RX BER (PRBS) counter.", 1344 "Example:\r\n" 1345 " csys serdes get_fap_bers fap_id 0\r\n" 1346 "Results in getting the BER counters from FAP 0\r\n", 1347 "", 1348 {0, 1349 BIT(2)}, 1350 2, 1351 /* 1352 * Pointer to a function to call after symbolic parameter 1353 * has been accepted. 1354 */ 1355 (VAL_PROC_PTR)NULL 1356 }, 1357 { 1358 PARAM_CSYS_SERDES_PRBS_FAP_TX_LINKS_ID, 1359 "prbs_fap_tx_links", 1360 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1361 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1362 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1363 0,0,0,0,0,0,0, 1364 "SerDes utilities.", 1365 "Example:\r\n" 1366 " csys serdes prbs_fap_tx_links start fap_id 0\r\n" 1367 "Results in PRBS testing on FAP 10 links in the system (FAP is TX)\r\n", 1368 "", 1369 {0, 1370 BIT(0)}, 1371 2, 1372 /* 1373 * Pointer to a function to call after symbolic parameter 1374 * has been accepted. 1375 */ 1376 (VAL_PROC_PTR)NULL 1377 }, 1378 { 1379 PARAM_CSYS_SERDES_PRBS_FE_TX_LINKS_ID, 1380 "prbs_fe_tx_links", 1381 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1382 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1383 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1384 0,0,0,0,0,0,0, 1385 "SerDes utilities.", 1386 "Example:\r\n" 1387 " csys serdes prbs_fe_tx_links start fap_id 0\r\n" 1388 "Results in PRBS testing on FAP 10 links in the system (FE is TX)\r\n", 1389 "", 1390 {0, 1391 BIT(0)}, 1392 2, 1393 /* 1394 * Pointer to a function to call after symbolic parameter 1395 * has been accepted. 1396 */ 1397 (VAL_PROC_PTR)NULL 1398 }, 1399 { 1400 PARAM_CSYS_FAP_ID_ID, 1401 "fap_id", 1402 (PARAM_VAL_RULES *)&Csyse_fap_id_vals[0], 1403 (sizeof(Csyse_fap_id_vals) / sizeof(Csyse_fap_id_vals[0])) - 1, 1404 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1405 0,0,0,0,0,0,0, 1406 "FAP-Id. 0 to 15", 1407 "Example:\r\n" 1408 " csys serdes prbs_fap_tx_links start fap_id 0\r\n" 1409 "Results in PRBS testing on FAP 10 links in the system (FAP is TX)\r\n", 1410 "", 1411 {0, 1412 BIT(0) | BIT(2)}, 1413 4, 1414 /* 1415 * Pointer to a function to call after symbolic parameter 1416 * has been accepted. 1417 */ 1418 (VAL_PROC_PTR)NULL 1419 }, 1420 { 1421 PARAM_CSYS_FAP_LINK_ID_ID, 1422 "fap_link_id", 1423 (PARAM_VAL_RULES *)&Csyse_link_id_vals[0], 1424 (sizeof(Csyse_link_id_vals) / sizeof(Csyse_link_id_vals[0])) - 1, 1425 MAY_NOT_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1426 0,0,0,0,0,0,0, 1427 "FAP Link-Id. (Only needed in SOC_SAND_FAP10M systems)", 1428 "Example:\r\n" 1429 " csys serdes prbs_fe_tx_links start fe_id 0 fap_link_id 3\r\n" 1430 "Results in PRBS testing on FE 0 fap link 3 (FAP is RX)\r\n", 1431 "", 1432 {0, 1433 BIT(0) | BIT(2)}, 1434 5, 1435 /* 1436 * Pointer to a function to call after symbolic parameter 1437 * has been accepted. 1438 */ 1439 (VAL_PROC_PTR)NULL 1440 }, 1441 { 1442 PARAM_CSYS_START_ID, 1443 "start", 1444 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1445 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1446 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1447 0,0,0,0,0,0,0, 1448 "SerDes utilities.", 1449 "Example:\r\n" 1450 " csys serdes prbs_fap_tx_links start fap_id 0\r\n" 1451 "Results in PRBS testing on FAP 10 links in the system (FAP is TX)\r\n", 1452 "", 1453 {0, 1454 BIT(0)}, 1455 3, 1456 /* 1457 * Pointer to a function to call after symbolic parameter 1458 * has been accepted. 1459 */ 1460 (VAL_PROC_PTR)NULL 1461 }, 1462 { 1463 PARAM_CSYS_END_ID, 1464 "end", 1465 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1466 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1467 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1468 0,0,0,0,0,0,0, 1469 "SerDes utilities.", 1470 "Example:\r\n" 1471 " csys serdes prbs_fap_tx_links end fap_id 0\r\n" 1472 "Results in PRBS stoping on FAP 10 links in the system (FAP is TX)\r\n", 1473 "", 1474 {0, 1475 BIT(0)}, 1476 3, 1477 /* 1478 * Pointer to a function to call after symbolic parameter 1479 * has been accepted. 1480 */ 1481 (VAL_PROC_PTR)NULL 1482 }, 1483 { 1484 PARAM_CSYS_STATUS_ID, 1485 "status", 1486 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1487 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1488 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1489 0,0,0,0,0,0,0, 1490 "STATUS utilities.", 1491 "Example:\r\n" 1492 " csys status all_faps get_counters short\r\n" 1493 "Results in reading all the counters in short format.\r\n" 1494 "The PP / NP registers might also be printed.", 1495 "", 1496 {BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(14) | BIT(15)}, 1497 1, 1498 /* 1499 * Pointer to a function to call after symbolic parameter 1500 * has been accepted. 1501 */ 1502 (VAL_PROC_PTR)NULL 1503 }, 1504 { 1505 PARAM_CSYS_ALL_FAPS_ID, 1506 "all_faps", 1507 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1508 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1509 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1510 0,0,0,0,0,0,0, 1511 "STATUS utilities.", 1512 "Example:\r\n" 1513 " csys status all_faps get_counters short\r\n" 1514 "Results in reading all the counters in short format.", 1515 "", 1516 {BIT(10) | BIT(11)}, 1517 2, 1518 /* 1519 * Pointer to a function to call after symbolic parameter 1520 * has been accepted. 1521 */ 1522 (VAL_PROC_PTR)NULL 1523 }, 1524 { 1525 PARAM_CSYS_ALL_PPS_ID, 1526 "all_pps", 1527 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1528 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1529 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1530 0,0,0,0,0,0,0, 1531 "STATUS utilities.", 1532 "Example:\r\n" 1533 " csys status all_pps get_counters short\r\n" 1534 "Results in reading all the counters in short format.\r\n" 1535 "The counters to be read are specific to the Packet Processors\n\r" 1536 "or Network Processors in the system", 1537 "", 1538 {BIT(14) | BIT(15)}, 1539 2, 1540 /* 1541 * Pointer to a function to call after symbolic parameter 1542 * has been accepted. 1543 */ 1544 (VAL_PROC_PTR)NULL 1545 }, 1546 { 1547 PARAM_CSYS_PP_ID_ID, 1548 "pp_id", 1549 (PARAM_VAL_RULES *)&Csyse_fap_id_vals[0], 1550 (sizeof(Csyse_fap_id_vals) / sizeof(Csyse_fap_id_vals[0])) - 1, 1551 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1552 0,0,0,0,0,0,0, 1553 "STATUS utilities.", 1554 "Example:\r\n" 1555 " csys status all_pps get_counters short\r\n" 1556 "Results in reading all the counters in short format.\r\n" 1557 "The counters to be read are specific to the Packet Processors\n\r" 1558 "or Network Processors in the system", 1559 "", 1560 {BIT(14) | BIT(15)}, 1561 2, 1562 /* 1563 * Pointer to a function to call after symbolic parameter 1564 * has been accepted. 1565 */ 1566 (VAL_PROC_PTR)NULL 1567 }, 1568 { 1569 PARAM_CSYS_FAP_ID_ID, 1570 "fap_id", 1571 (PARAM_VAL_RULES *)&Csyse_fap_id_vals[0], 1572 (sizeof(Csyse_fap_id_vals) / sizeof(Csyse_fap_id_vals[0])) - 1, 1573 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1574 0,0,0,0,0,0,0, 1575 "STATUS utilities.", 1576 "Example:\r\n" 1577 " csys status all_faps get_counters short\r\n" 1578 "Results in reading all the counters in short format.\r\n" 1579 "The PP / NP registers might also be printed.", 1580 "", 1581 {BIT(10) | BIT(11)}, 1582 2, 1583 /* 1584 * Pointer to a function to call after symbolic parameter 1585 * has been accepted. 1586 */ 1587 (VAL_PROC_PTR)NULL 1588 }, 1589 { 1590 PARAM_CSYS_ALL_FES_ID, 1591 "all_fes", 1592 (PARAM_VAL_RULES *)&Csys_empty_vals[0], 1593 (sizeof(Csys_empty_vals) / sizeof(Csys_empty_vals[0])) - 1, 1594 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1595 0,0,0,0,0,0,0, 1596 "STATUS utilities.", 1597 "Example:\r\n" 1598 " csys status all_faps get_counters short\r\n" 1599 "Results in reading all the counters in short format.\r\n" 1600 "The PP / NP registers might also be printed.", 1601 "", 1602 {BIT(12) | BIT(13)}, 1603 2, 1604 /* 1605 * Pointer to a function to call after symbolic parameter 1606 * has been accepted. 1607 */ 1608 (VAL_PROC_PTR)NULL 1609 }, 1610 { 1611 PARAM_CSYS_FE_ID_ID, 1612 "fe_id", 1613 (PARAM_VAL_RULES *)&Csyse_fe_id_vals[0], 1614 (sizeof(Csyse_fe_id_vals) / sizeof(Csyse_fe_id_vals[0])) - 1, 1615 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1616 0,0,0,0,0,0,0, 1617 "STATUS utilities.", 1618 "Example:\r\n" 1619 " csys status all_faps get_counters short\r\n" 1620 "Results in reading all the counters in short format.\r\n" 1621 "The PP / NP registers might also be printed.", 1622 "", 1623 {BIT(12) | BIT(13)}, 1624 2, 1625 /* 1626 * Pointer to a function to call after symbolic parameter 1627 * has been accepted. 1628 */ 1629 (VAL_PROC_PTR)NULL 1630 }, 1631 { 1632 PARAM_CSYS_GET_COUNTERS_ID, 1633 "get_counters", 1634 (PARAM_VAL_RULES *)&Csyse_get_counters_flavor[0], 1635 (sizeof(Csyse_get_counters_flavor) / sizeof(Csyse_get_counters_flavor[0])) - 1, 1636 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1637 0,0,0,0,0,0,0, 1638 "Get all the counters in the system according to flavor.", 1639 "Example:\r\n" 1640 " csys status all_faps get_counters short.\r\n" 1641 "When running with SOC_SAND_FAP10M system,\n\r" 1642 "the short/long flag indicate the following:\r\n" 1643 "LONG: all the FAP counters and all the PP counters\r\n" 1644 " are printed.\r\n" 1645 "SHORT: Only non-zero counters are printed.", 1646 "", 1647 {BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(14) | BIT(15)}, 1648 3, 1649 /* 1650 * Pointer to a function to call after symbolic parameter 1651 * has been accepted. 1652 */ 1653 (VAL_PROC_PTR)NULL 1654 }, 1655 { 1656 PARAM_CSYS_GET_CONNECTIVITY_MAP_ID, 1657 "get_connectivity_map", 1658 (PARAM_VAL_RULES *)&Csyse_get_connectivity_map_flavor[0], 1659 (sizeof(Csyse_get_connectivity_map_flavor) / sizeof(Csyse_get_connectivity_map_flavor[0])) - 1, 1660 MUST_APPEAR | HAS_NO_DEFAULT,(PARAM_VAL *)0, 1661 0,0,0,0,0,0,0, 1662 "Print System Connectivity Map according to flavor.", 1663 "Example:\r\n" 1664 " csys status all_faps get_connectivity_map print_all_links.\r\n" 1665 "Will print the connectivity map of all the FAPs in the system.", 1666 "", 1667 {BIT(10) | BIT(11) | BIT(12) | BIT(13)}, 1668 3, 1669 /* 1670 * Pointer to a function to call after symbolic parameter 1671 * has been accepted. 1672 */ 1673 (VAL_PROC_PTR)NULL 1674 }, 1675 1676 1677 /* 1678 * Last element. Do not remove. 1679 */ 1680 { 1681 PARAM_END_OF_LIST 1682 } 1683 } 1684 #endif 1685 ; 1686 1687 /* 1688 * } 1689 */ 1690 1691 1692 /* } */ 1693 #endif 1694 1695