ifa_feature.h (877B)
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: ifa_feature.h 8 */ 9 10 #ifndef IFA_FEATURE_H_ 11 #define IFA_FEATURE_H_ 12 13 #define IFA_SDK_BASE_VERSION 0x0 14 15 /* Number of hops in the topology is 16 * greater than Hop limit, IFA MD stack 17 * contains Hop limit number of MDs in 18 * MD stack. 19 */ 20 #define IFA_CONFIG_TRUE_HOP_COUNT 1 21 22 #define IFA_SDK_VERSION IFA_SDK_BASE_VERSION | \ 23 (1 << IFA_CONFIG_TRUE_HOP_COUNT) 24 25 #define IFA_UC_MIN_VERSION 0x0 26 27 extern uint32 ifa_firmware_version; 28 29 /* Macro for IFA feature check */ 30 #define IFA_UC_FEATURE_CHECK(feature) (ifa_firmware_version & (1 << feature)) 31 32 #endif /* IFA_FEATURE_H_ */