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_ap_defines.h (3228B)


      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_AP_PREPROCESSOR_MACROS_H
     12 #define TDM_AP_PREPROCESSOR_MACROS_H
     13 
     14 /* Default number of PM in chip */
     15 #define AP_NUM_PM_MOD 19
     16 #define AP_NUM_PHY_PM 18
     17 /* Default number of lanes per PM in chip */
     18 #define AP_NUM_PM_LNS 4
     19 /* Allocation length of port lookup tables */
     20 #define AP_NUM_EXT_PORTS 130
     21 /* Number of the hardware designated management PM */
     22 #define AP_MGMT_TSC_ID 3
     23 
     24 #define AP_CL1_TSC_ID 7
     25 #define AP_CL2_TSC_ID 8
     26 #define AP_CL4_TSC_ID 16
     27 #define AP_CL5_TSC_ID 17
     28 #define AP_CL1_PORT 29
     29 #define AP_CL2_PORT 33
     30 #define AP_CL4_PORT 65
     31 #define AP_CL5_PORT 69
     32 
     33 /* Number of possible physical ports */
     34 #define AP_NUM_PHY_PORTS 72
     35 /* Number of scheduling blocks */
     36 #define AP_NUM_QUAD 2
     37 
     38 /* Default number of ancillary ports in calendar */
     39 #define AP_ACC_PORT_NUM 9
     40 
     41 /* Allocation length of LLS line rate calendar */
     42 #define AP_TDM_AUX_SIZE 72
     43 #define AP_LR_LLS_LEN 64
     44 /* Allocation length of VBS line rate calendar */
     45 #define AP_LR_VBS_LEN 512
     46 /* Allocation length of IARB static calendar */
     47 #define AP_LR_IARB_STATIC_LEN 512
     48 /* Allocation area of LLS port groups */
     49 #define AP_OS_LLS_GRP_NUM 2
     50 #define AP_OS_LLS_GRP_LEN 40
     51 /* Allocation area of VBS port groups */
     52 #define AP_OS_VBS_GRP_NUM 8
     53 #define AP_OS_VBS_GRP_LEN 16
     54 
     55 /* Architecturally specific allocation area of VBS vector map */
     56 #define AP_VMAP_MAX_LEN 256
     57 #define AP_VMAP_MAX_WID 55
     58 
     59 /* Tokenization values */
     60 #ifdef _TDM_STANDALONE
     61 	/* Token for pmap management port */
     62 	#define AP_MGMT_TOKEN (AP_NUM_EXT_PORTS+3) 
     63 	/* Token for granularity scaling */
     64 	#define AP_US1G_TOKEN (AP_NUM_EXT_PORTS+4) 
     65 	/* Token for ancillary soc functions */
     66 	#define AP_ANCL_TOKEN 103
     67     /* Token for oversub round robin */
     68     #define AP_OVSB_TOKEN 75
     69     /* Memreset, L2 management, other */
     70     #define AP_IDL1_TOKEN 76
     71     /* EP refresh, idle cycle */
     72     #define AP_IDL2_TOKEN 77
     73   /* EP aux cycle */
     74     #define AP_AUX_TOKEN 78
     75   /* Dedicated SBUS Op */
     76     #define AP_SBUS_TOKEN 81
     77 #else
     78 	/* Token for pmap management port */
     79 	#define AP_MGMT_TOKEN (AP_NUM_EXT_PORTS+3) 
     80 	/* Token for granularity scaling */
     81 	#define AP_US1G_TOKEN (AP_NUM_EXT_PORTS+4) 
     82 	/* Token for ancillary soc functions */
     83 	#define AP_ANCL_TOKEN 103
     84     /* Token for oversub round robin */
     85     #define AP_OVSB_TOKEN 90
     86     /* Memreset, L2 management, other */
     87     #define AP_IDL1_TOKEN 91
     88     /* EP refresh, idle cycle */
     89     #define AP_IDL2_TOKEN AP_IDL1_TOKEN
     90   /* EP aux cycle */
     91     #define AP_AUX_TOKEN 93
     92   /* Dedicated SBUS Op */
     93     #define AP_SBUS_TOKEN 94
     94 #endif
     95 
     96 #define MMU_OVRSUB_PORT 57
     97 #define MMU_NULL_PORT   58
     98 
     99 /* Static port identities */
    100 /*#define AP_MGMT_PORT_0 103 */ /*nak,dummy MGMT PORT defines*/
    101 /*#define AP_MGMT_PORT_1 104
    102 #define AP_MGMT_PORT_2 105
    103 #define AP_MGMT_PORT_3 106*/
    104 #define AP_LOOPBACK_PORT 73
    105 #define AP_CPU_PORT 0
    106 
    107 /* Macro definitions */
    108 #define AP_PIPE_X_ID 0
    109 #define AP_PIPE_Y_ID 1
    110 
    111 #define AP_XPIPE_CAL_ID 2
    112 #define AP_YPIPE_CAL_ID 5
    113 
    114 
    115 #endif /* TDM_AP_PREPROCESSOR_MACROS_H */