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_td2p_defines.h (2778B)


      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 macro values for BCM56860
      9  */
     10 
     11 #ifndef TDM_TD2P_PREPROCESSOR_MACROS_H
     12 #define TDM_TD2P_PREPROCESSOR_MACROS_H
     13 
     14 /* Default number of PM in chip */
     15 #define TD2P_NUM_PM_MOD 33
     16 #define TD2P_NUM_PHY_PM 32
     17 /* Default number of lanes per PM in chip */
     18 #define TD2P_NUM_PM_LNS 4
     19 /* Allocation length of port lookup tables */
     20 #define TD2P_NUM_EXT_PORTS 130
     21 /* Number of the hardware designated management PM */
     22 #define TD2P_MGMT_TSC_ID 3
     23 
     24 /* Number of possible physical ports */
     25 #define TD2P_NUM_PHY_PORTS 128
     26 /* Number of scheduling blocks */
     27 #define TD2P_NUM_QUAD 4
     28 
     29 /* Default number of ancillary ports in calendar */
     30 #define TD2P_ACC_PORT_NUM 10
     31 
     32 /* Allocation length of LLS line rate calendar */
     33 #define TD2P_LR_LLS_LEN 64
     34 /* Allocation length of VBS line rate calendar */
     35 #define TD2P_LR_VBS_LEN 256
     36 /* Allocation length of IARB static calendar */
     37 #define TD2P_LR_IARB_STATIC_LEN 512
     38 /* Allocation area of LLS port groups */
     39 #define TD2P_OS_LLS_GRP_NUM 2
     40 #define TD2P_OS_LLS_GRP_LEN 32
     41 /* Allocation area of VBS port groups */
     42 #define TD2P_OS_VBS_GRP_NUM 8
     43 #define TD2P_OS_VBS_GRP_LEN 16
     44 
     45 /* Architecturally specific allocation area of VBS vector map */
     46 #define TD2P_VMAP_MAX_LEN TD2P_LR_VBS_LEN
     47 #define TD2P_VMAP_MAX_WID 128 
     48 
     49 /* Tokenization values 
     50 	TD2P_MGMT_TOKEN: for pmap management port
     51 	TD2P_US1G_TOKEN: for granularity scaling
     52 	TD2P_ANCL_TOKEN: for ancillary soc functions
     53 	TD2P_OVSB_TOKEN: for oversub round robin
     54 	TD2P_IDL1_TOKEN: for memory reset, L2 management, and other
     55 	TD2P_IDL2_TOKEN: for EP refresh, and idle cycle
     56 */
     57 #ifdef _TDM_STANDALONE
     58 	#define TD2P_MGMT_TOKEN (TD2P_NUM_EXT_PORTS+3) 
     59 	#define TD2P_US1G_TOKEN (TD2P_NUM_EXT_PORTS+4) 
     60 	#define TD2P_ANCL_TOKEN (TD2P_NUM_EXT_PORTS+5)
     61     #define TD2P_OVSB_TOKEN (TD2P_NUM_EXT_PORTS+7)
     62     #define TD2P_IDL1_TOKEN (TD2P_NUM_EXT_PORTS+8)
     63     #define TD2P_IDL2_TOKEN (TD2P_NUM_EXT_PORTS)
     64 #else
     65 	#define TD2P_MGMT_TOKEN (TD2P_NUM_EXT_PORTS+3) 
     66 	#define TD2P_US1G_TOKEN (TD2P_NUM_EXT_PORTS+4) 
     67 	#define TD2P_ANCL_TOKEN (TD2P_NUM_EXT_PORTS+5)
     68     #define TD2P_OVSB_TOKEN 250
     69     #define TD2P_IDL1_TOKEN 251
     70     #define TD2P_IDL2_TOKEN 252
     71 #endif
     72 
     73 #define MMU_OVRSUB_PORT 57
     74 #define MMU_NULL_PORT   58
     75 
     76 /* Static port identities */
     77 #define TD2P_MGMT_PORT_0 13
     78 #define TD2P_MGMT_PORT_1 14
     79 #define TD2P_MGMT_PORT_2 15
     80 #define TD2P_MGMT_PORT_3 16
     81 #define TD2P_LOOPBACK_PORT 129
     82 #define TD2P_CPU_PORT 0
     83 
     84 /* Macro definitions */
     85 #define TD2P_PIPE_X_ID 0
     86 #define TD2P_PIPE_Y_ID 1
     87 
     88 #define TD2P_XPIPE_CAL_ID 4
     89 #define TD2P_YPIPE_CAL_ID 5
     90 
     91 
     92 #endif /* TDM_TD2P_PREPROCESSOR_MACROS_H */