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

mpls_lm_dm_feature.h (1608B)


      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:    mpls_lm_dm_feature.h
      8  */
      9 
     10 #ifndef MPLS_LM_DM_FEATURE_H_
     11 #define MPLS_LM_DM_FEATURE_H_
     12 
     13 /* Indicates the feature supported : Same bit to be used in SDK and UKERNEL
     14  * Reserved Bits (0, 24)
     15  */
     16 #define MPLS_LM_DM_SDK_BASE_VERSION     0x00000001
     17 #define MPLS_LM_DM_UC_MIN_VERSION       0x01000000
     18 
     19 
     20 
     21 #define MPLS_LM_DM_PM                     1
     22 #define MPLS_LM_DM_PM_STAT_EXTRA_ELEM     2 /* Extra elements added in
     23                                              * pm_stat structure.
     24                                              */
     25 #define MPLS_LM_DM_FLEX_CTR_SESS_ID       3 /* Flex ctr based session id */
     26 
     27 /* LM/DM hierarchial counter info in delay_get SDK-UC internal messaging */
     28 #define MPLS_LM_DM_COUNTER_INFO_GET       4
     29 
     30 
     31 
     32 #define MPLS_LM_DM_SDK_VERSION          MPLS_LM_DM_SDK_BASE_VERSION          | \
     33                                         (1 << MPLS_LM_DM_PM)                 | \
     34                                         (1 << MPLS_LM_DM_PM_STAT_EXTRA_ELEM) | \
     35                                         (1 << MPLS_LM_DM_FLEX_CTR_SESS_ID)   | \
     36                                         (1 << MPLS_LM_DM_COUNTER_INFO_GET)
     37 
     38 /* mpls_lm_dm firmware version running in uKernel*/
     39 extern uint32 mpls_lm_dm_firmware_version;
     40 /*Macro for MPLS_LM_DM feature check*/
     41 #define MPLS_LM_DM_UC_FEATURE_CHECK(feature)  (mpls_lm_dm_firmware_version & (1 << feature))
     42 
     43 #endif /* MPLS_LM_DM_FEATURE_H_ */