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

tdm_th2_soc.h (1690B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  * All Rights Reserved.$
      7  *
      8  * TDM soc header for BCM56970
      9  */
     10 
     11 #ifndef TDM_BCM56970_PREPROCESSOR_SOC_DEFINES_H
     12 #define TDM_BCM56970_PREPROCESSOR_SOC_DEFINES_H
     13 
     14 #ifdef _TDM_STANDALONE
     15 	#include <tdm_th2_defines.h>
     16 #else
     17 	#include <soc/tdm/tomahawk2/tdm_th2_defines.h>
     18 #endif
     19 
     20 #define TDM_CHIP_EXEC__ACCESSORIZE 13
     21 
     22 
     23 enum port_speed_indx_e { INDX_10G=0, INDX_20G=1, INDX_25G=2, INDX_40G=3, INDX_50G=4, INDX_100G=5};
     24 enum flexport_pm_state_e { FLEXPORT_PM_DOWN_DOWN=0, FLEXPORT_PM_SAME=1, FLEXPORT_PM_SOME_SAME=2, FLEXPORT_PM_UP_DOWN=3, FLEXPORT_PM_DOWN_UP=4, FLEXPORT_PM_UP_UP=5};
     25 
     26 typedef struct {
     27 	int  ovs_tables[2][TH2_OS_VBS_GRP_NUM/2][TH2_OS_VBS_GRP_LEN]; /* indexed by HP, ovs group num; ovs group index */
     28 	enum port_speed_e ovs_grp_speed[2][TH2_OS_VBS_GRP_NUM/2];
     29 	int               ovs_grp_weight[2][TH2_OS_VBS_GRP_NUM/2];
     30 	int  prev_num_grps[2][6];  /* first index is HP num; second index is the speed port_speed_indx_e*/
     31 	int  new_num_grps[2][6];   /* first index is HP num; second index is the speed port_speed_indx_e*/
     32 	int  ports_to_be_removed[TH2_NUM_EXT_PORTS];  /* indexed by phy_port; set to 1 if needs to be removed */
     33 	int  ports_to_be_added[TH2_NUM_EXT_PORTS];    /* indexed by phy_port; set to 1 if needs to be added   */
     34 	int  ovs_grp_pms[2][TH2_OS_VBS_GRP_NUM/2][TH2_OS_VBS_GRP_LEN]; /* indicates which PMs contains each group */
     35 
     36 	int  skip_ovs_for_speed[2][6];   /* first index is HP num; second index is the speed port_speed_indx_e*/
     37 } th2_flxport_t;
     38 
     39 #endif