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

tomahawk3_flexport_defines.h (2512B)


      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 *
      7 * $File:  tomahawk3_flexport_defines.h
      8 */
      9 
     10 #ifndef TOMAHAWK3_FLEXPORT_DEFINES_H
     11 #define TOMAHAWK3_FLEXPORT_DEFINES_H
     12 
     13 #define _TH3_CA_BUFFER_SIZE             64
     14 #define _TH3_NUM_OF_TSCBH               32
     15 #define _TH3_PHY_PORT_CPU               0
     16 #define _TH3_PHY_PORT_MNG0              257
     17 #define _TH3_PHY_PORT_MNG1              258
     18 #define _TH3_LOG_PORT_MNG0              38
     19 #define _TH3_LOG_PORT_MNG1              118
     20 #define _TH3_PHY_PORT_LPBK0             259
     21 #define _TH3_PHY_PORT_LPBK1             260
     22 #define _TH3_PHY_PORT_LPBK2             261
     23 #define _TH3_PHY_PORT_LPBK3             262
     24 #define _TH3_PHY_PORT_LPBK4             263
     25 #define _TH3_PHY_PORT_LPBK5             264
     26 #define _TH3_PHY_PORT_LPBK6             265
     27 #define _TH3_PHY_PORT_LPBK7             266
     28 #define _TH3_FORCE_SAF_TIMER_ENTRY_CNT  5
     29 #define _TH3_OBM_PRIORITY_LOSSY_LO      0
     30 #define _TH3_OBM_PRIORITY_LOSSY_HI      1
     31 #define _TH3_OBM_PRIORITY_LOSSLESS0     2
     32 #define _TH3_OBM_PRIORITY_LOSSLESS1     3
     33 #define COUNTOF(ary)        ((int) (sizeof (ary) / sizeof ((ary)[0])))
     34 #define _TH3_PHY_IS_FRONT_PANEL_PORT(p)        ((p>=1)&& (p<=256))
     35 
     36 /* General Physical port */
     37 #define _TH3_PORTS_PER_PBLK             8
     38 #define _TH3_PBLKS_PER_PIPE             4
     39 /*#define _TH3_PBLKS_PER_HPIPE            0*/
     40 #define _TH3_PIPES_PER_DEV              8
     41 #define _TH3_XPES_PER_DEV               2
     42 #define _TH3_GPHY_PORTS_PER_PIPE        \
     43     (_TH3_PORTS_PER_PBLK * _TH3_PBLKS_PER_PIPE)
     44 #define _TH3_PHY_PORTS_PER_PIPE         (_TH3_GPHY_PORTS_PER_PIPE + 2)
     45 #define _TH3_PBLKS_PER_DEV              \
     46     (_TH3_PBLKS_PER_PIPE * _TH3_PIPES_PER_DEV)
     47 #define _TH3_PHY_PORTS_PER_DEV          \
     48     (_TH3_PHY_PORTS_PER_PIPE * _TH3_PIPES_PER_DEV)
     49 
     50 
     51 /* Device port
     52  * 32 General device port + 1 CPU/Mng + 1 Loopback*/
     53 #define _TH3_GDEV_PORTS_PER_PIPE        18
     54 #define _TH3_DEV_PORTS_PER_PIPE         (_TH3_GDEV_PORTS_PER_PIPE + 2)
     55 #define _TH3_DEV_PORTS_PER_DEV          \
     56     (_TH3_DEV_PORTS_PER_PIPE * _TH3_PIPES_PER_DEV)
     57 
     58 /* MMU port */
     59 #define _TH3_MMU_PORTS_OFFSET_PER_PIPE  32
     60 #define _TH3_MMU_PORTS_PER_DEV          (32 * 8)
     61 
     62 /* TDM */
     63 #define _TH3_TDM_LENGTH                 33
     64 #define _TH3_TDM_SCHED_SPECIAL_SLOT     18
     65 
     66 #ifndef TRUE
     67 #define TRUE    1
     68 #endif
     69 #ifndef FALSE
     70 #define FALSE   0
     71 #endif
     72 
     73 #endif /* TOMAHAWK3_FLEXPORT_DEFINES_H */