openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

lmfb48.soc (1818B)


      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-2019 Broadcom Inc. All rights reserved.
      5 
      6 # This script runs the tr 19 test for all the 24 GE ports and 4 HiGig
      7 # ports of the firebolt device. There are 2 firebolt devices on the
      8 # LM48 platform. 
      9 # After running the tr 19 test, this script runs the system snake
     10 # test for the platform.
     11 
     12 
     13 #Set the mode argument as a variable
     14 if $?1 'local $1 1'
     15 
     16 #Set the duration argument as a variable
     17 if !$?2 'local count 10'
     18 if $?2 'local count $2'
     19 
     20 
     21 #Check for ext_mode/int_mode argument
     22 if !$?int_mode && !$?ext_mode || !$?1  'Echo   ; \
     23 	 Echo -----------------------------------; \
     24          Echo MISSING mandatory arguments:; \
     25          Echo   ; \
     26          Echo lmfb48 ext_mode <duration>; \
     27          Echo - run in external mode. Default duration=10 [pkts for tr19, 10sec for ss]; \
     28          Echo   ; \
     29          Echo lmfb48 int_mode <duration>; \
     30          Echo - run in internal mode. Default duration=10 [pkts for tr19, 10sec for ss]; \
     31          Echo -----------------------------------; \
     32          exit'
     33 
     34 
     35 
     36 if !$?lm48p && !$?lm48p_D "echo rc: config variable lm48p or lm48p_D not set; exit"
     37 
     38 echo " "
     39 echo "Starting TR 19 test ..."
     40 testmode run
     41 
     42 1:modreg mac_ctrl.hg2 RMTLOOP=1
     43 1:modreg mac_ctrl.hg3 RMTLOOP=1
     44 0: tr 19 ExtselfloopPBM=hg count=$count
     45 1:modreg mac_ctrl.hg2 RMTLOOP=0
     46 1:modreg mac_ctrl.hg3 RMTLOOP=0
     47 
     48 0:modreg mac_ctrl.hg2 RMTLOOP=1
     49 0:modreg mac_ctrl.hg3 RMTLOOP=1
     50 1: tr 19 ExtselfloopPBM=hg count=$count
     51 0:modreg mac_ctrl.hg2 RMTLOOP=0
     52 0:modreg mac_ctrl.hg3 RMTLOOP=0
     53 
     54 echo " "
     55 echo "Starting System snake test ..."
     56 
     57 if $?ext_mode 'Echo (in external mode);0:ss mode=ext duration=$count'
     58 if $?int_mode 'Echo (in internal mode);0:ss duration=$count'
     59 
     60 
     61