Bs_feature.h (1392B)
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: BS_feature.h 8 * 9 * Holds SDK features version info, to be shared with BS FW 10 */ 11 12 #ifndef __BS_FEATURE_H__ 13 #define __BS_FEATURE_H__ 14 15 /*#define _BCM_MBOX_SDK_VERSION (0x01000000)*/ 16 /*#define _BCM_MBOX_UC_MIN_VERSION (0x01000000)*/ 17 18 #define ENABLE 1 19 #define DISABLE 0 20 #define BS_SDK_BASE_VERSION 0x01000000 21 #define BS_SDK_VERSION BS_SDK_BASE_VERSION | \ 22 (DISABLE << BS_FEATURE_1) | \ 23 (DISABLE << BS_FEATURE_2) 24 25 #define BS_MIN_UC_VERSION 0x01000000 26 27 /*BS FW version*/ 28 extern uint32 bs_firmware_version; 29 30 #define BS_UC_FEATURE_CHECK(feature) (bs_firmware_version & (1 << feature)) 31 32 /* Feature support bit should be shared between SDK and BS UKERNEL version. 33 * 8th and 24th bit is reserved as they are set in the legacy version 34 * BS_BASE_SDK_VERSION : 0x01000000,BS_FW_VERSION : 0x01000100*/ 35 #define BS_FEATURE_RESERVED1 8 36 #define BS_FEATURE_RESERVED2 24 37 38 /* Features added in uKernel BS SDK */ 39 #define BS_FEATURE_1 0 /*dummy to be replaced with actual feature*/ 40 #define BS_FEATURE_2 0 /*dummy to be replaced with actual feature*/ 41 42 #endif /*__BS_FEATURE_H__*/ 43