st_feature.h (764B)
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: 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 18 #define ST_SDK_VERSION ST_SDK_BASE_VERSION | \ 19 (1 << ST_MAX_NUM_PORTS) 20 21 #define ST_UC_MIN_VERSION 0x0 22 23 extern uint32 st_firmware_version; 24 25 /* Macro for ST feature check */ 26 #define ST_UC_FEATURE_CHECK(feature) (st_firmware_version & (1 << feature)) 27 28 #endif /* ST_FEATURE_H_ */