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

syssnake.soc (4394B)


      1 #
      2 # 
      3 #
      4 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5 # 
      6 # Copyright 2007-2019 Broadcom Inc. All rights reserved.
      7 
      8 echo "syssnake.rc : Initializing system snake on unit $unit"
      9 
     10 # fbpoe setup
     11 # (enabled by adding the property "fbpoe=1")
     12 # Notes:
     13 #       BCM56504 unit-0 higig port (port 27,28) is connected
     14 #       to BCM56504 Unit-1 higig port (port 27,28)
     15 #
     16 if $?BCM56147_A0 \
     17     'local BCM56147 1'
     18 
     19 if $?unit0 && $?firebolt_any && $?fbpoe \
     20   "mod port_tab 24 2 PORT_BRIDGE=1; \
     21    w modport_map 1 1 HIGIG_PORT_BITMAP=0xC; \
     22    w egress_mask 0 12 EGRESS_MASK=0x8000000; \
     23    w egress_mask 12 12 EGRESS_MASK=0x4000000; \
     24    w egress_mask 24 1 EGRESS_MASK=0x8000000; \
     25    w egress_mask 25 1 EGRESS_MASK=0x4000000"
     26 
     27 if $?unit1 && $?firebolt_any && $?fbpoe \
     28    "mod port_tab 24 2 PORT_BRIDGE=1; \
     29    w modport_map 0 1 HIGIG_PORT_BITMAP=0xC; \
     30    w egress_mask 32 12 EGRESS_MASK=0x8000000; \
     31    w egress_mask 44 12 EGRESS_MASK=0x4000000; \
     32    w egress_mask 56 1 EGRESS_MASK=0x8000000; \
     33    w egress_mask 57 1 EGRESS_MASK=0x4000000"
     34 
     35 # LM fb48 platform setup
     36 # (enabled by adding the property "lm48p=1")
     37 #
     38 if $?unit0 && $?firebolt_any && $?lm48p || $?lm48p_D \
     39    "w modport_map 1 1 HIGIG_PORT_BITMAP=0xC; \
     40     w egress_mask 0 12 EGRESS_MASK=0x8000000; \
     41     w egress_mask 12 12 EGRESS_MASK=0x4000000"
     42 
     43 
     44 if $?unit1 && $?firebolt_any && $?lm48p || $?lm48p_D \
     45    "w modport_map 0 1 HIGIG_PORT_BITMAP=0xC; \
     46     w egress_mask 32 12 EGRESS_MASK=0x8000000; \
     47     w egress_mask 44 12 EGRESS_MASK=0x4000000"
     48 
     49 # Raptor dual Eb platforms
     50 if $?raptor && $?unit0 && $?ics_eb \
     51   "modify PORT 1 29 MY_MODID=0 ;            \
     52    modify IPORT_TABLE 1 1 MY_MODID=0 ;      \
     53    w modport_map 1 1 HIGIG_PORT_BITMAP=0x1; \
     54    "
     55 
     56 if $?raptor && $?unit1 && $?ics_eb \
     57    "modify PORT 1 29 MY_MODID=1 ;           \
     58     modify IPORT_TABLE 1 1 MY_MODID=1 ;     \
     59     w modport_map 0 1 HIGIG_PORT_BITMAP=0x1;\
     60     "
     61 
     62 # Raptor dual Eb platforms
     63 if $?raven && $?unit0 && $?ics_eb \
     64   "modify PORT 1 29 MY_MODID=0 ;            \
     65    modify IPORT_TABLE 1 1 MY_MODID=0 ;      \
     66    w modport_map 1 1 HIGIG_PORT_BITMAP=0x2; \
     67    port ge0 AN=off SP=1000 FD=True;        \
     68    "
     69 
     70 if $?raven && $?unit1 && $?ics_eb \
     71    "modify PORT 1 29 MY_MODID=1 ;           \
     72     modify IPORT_TABLE 1 1 MY_MODID=1 ;     \
     73     w modport_map 0 1 HIGIG_PORT_BITMAP=0x2;\
     74     port ge0 AN=off SP=1000 FD=True;        \
     75     "
     76 
     77 # hurricane 48p GE platform setup
     78 # (enabled by adding the property "ge_hu_48p=1")
     79 #
     80 if $?unit0 && $?ge_hu_48p \
     81    "stkmode modid=0; \
     82     w modport_map 1 1 HIGIG_PORT_BITMAP=0x3; \
     83     w egress_mask 0 12 EGRESS_MASK=0x8000000; \
     84     w egress_mask 12 12 EGRESS_MASK=0x4000000; \
     85     w egress_mask 24 1 EGRESS_MASK=0x8000000; \
     86     w egress_mask 25 1 EGRESS_MASK=0x4000000"
     87 
     88 if $?unit1 && $?ge_hu_48p \
     89    "stkmode modid=1; \
     90     w modport_map 0 1 HIGIG_PORT_BITMAP=0xc; \
     91     w egress_mask 64 12 EGRESS_MASK=0x20000000; \
     92     w egress_mask 76 12 EGRESS_MASK=0x10000000; \
     93     w egress_mask 88 1 EGRESS_MASK=0x20000000; \
     94     w egress_mask 89 1 EGRESS_MASK=0x10000000"
     95 
     96 # hurricane 48p FE platform setup
     97 # (enabled by adding the property "fe_hu_48p=1")
     98 #
     99 if $?unit0 && $?fe_hu_48p && !$?BCM56147 \
    100    "stkmode modid=0; \
    101     port ge0-ge1 sp=2500 an=f encap=higig2; \
    102     w modport_map 1 1 HIGIG_PORT_BITMAP=0x3; \
    103     w egress_mask 0 12 EGRESS_MASK=0x8000000; \
    104     w egress_mask 12 12 EGRESS_MASK=0x4000000; \
    105     w egress_mask 24 1 EGRESS_MASK=0x8000000; \
    106     w egress_mask 25 1 EGRESS_MASK=0x4000000"
    107 
    108 if $?unit1 && $?fe_hu_48p && !$?BCM56147 \
    109    "stkmode modid=1; \
    110     port ge2-ge3 sp=2500 an=f encap=higig2; \
    111     w modport_map 0 1 HIGIG_PORT_BITMAP=0xc; \
    112     w egress_mask 64 12 EGRESS_MASK=0x20000000; \
    113     w egress_mask 76 12 EGRESS_MASK=0x10000000; \
    114     w egress_mask 88 1 EGRESS_MASK=0x20000000; \
    115     w egress_mask 89 1 EGRESS_MASK=0x10000000"
    116 
    117 # hurricane 48p FE platform setup for 56147_A0 devices
    118 # (enabled by adding the property "fe_hu_48p=1")
    119 #
    120 if $?unit0 && $?fe_hu_48p && $?BCM56147 \
    121    "stkmode modid=0; \
    122     w modport_map 1 1 HIGIG_PORT_BITMAP=0x3; \
    123     w egress_mask 2 27 EGRESS_MASK=0x8000000"
    124 
    125 if $?unit1 && $?fe_hu_48p && $?BCM56147 \
    126    "stkmode modid=1; \
    127     w modport_map 0 1 HIGIG_PORT_BITMAP=0xc; \
    128     w egress_mask 66 91 EGRESS_MASK=0x20000000"
    129