st_feature.h (927B)
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-2020 Broadcom Inc. All rights reserved. 6 * 7 * File: st_feature.h 8 */ 9 10 #ifndef ST_FEATURE_H_ 11 #define ST_FEATURE_H_ 12 13 #define ST_SDK_BASE_VERSION 0x0 14 15 /* Maximum number of ports to be monitored */ 16 #define ST_MAX_NUM_PORTS 1 17 /* Accept Component from collector */ 18 #define ST_COMP_FROM_COLLECTOR 1 19 20 #define ST_SDK_VERSION ST_SDK_BASE_VERSION | \ 21 (1 << ST_MAX_NUM_PORTS) | \ 22 (1 << ST_COMP_FROM_COLLECTOR) 23 24 #define ST_UC_MIN_VERSION 0x0 25 26 extern uint32 st_firmware_version; 27 28 /* Macro for ST feature check */ 29 #define ST_UC_FEATURE_CHECK(feature) (st_firmware_version & (1 << feature)) 30 31 #endif /* ST_FEATURE_H_ */