sw_state_dpp_access.c (1405B)
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 * DO NOT EDIT THIS FILE! 8 * This file is auto-generated. 9 * Edits to this file will be lost when it is regenerated. 10 */ 11 12 #include <sal/core/libc.h> 13 #include <shared/swstate/sw_state.h> 14 #include <shared/error.h> 15 #include <shared/swstate/sw_state_defs.h> 16 #include <shared/bsl.h> 17 #include <shared/swstate/access/sw_state_access.h> 18 #include <shared/swstate/access/sw_state_dpp_access.h> 19 20 #ifdef _ERR_MSG_MODULE_NAME 21 #error "_ERR_MSG_MODULE_NAME redefined" 22 #endif 23 24 #define _ERR_MSG_MODULE_NAME BSL_LS_SHARED_SWSTATE 25 26 extern shr_sw_state_t *sw_state[BCM_MAX_NUM_UNITS]; 27 28 #ifdef BCM_PETRA_SUPPORT 29 /* AUTO-GENERATED - DO NOT MODIFY */ 30 int sw_state_dpp_verify(int unit){ 31 SW_STATE_INIT_FUNC_DEFS; 32 if (unit >= SOC_MAX_NUM_DEVICES || unit < 0 || sw_state[unit] == NULL) return _SHR_E_UNIT; 33 SW_STATE_FUNC_RETURN; 34 } 35 36 #endif /* BCM_PETRA_SUPPORT*/ 37 38 39 int 40 sw_state_dpp_access_cb_init(int unit){ 41 sw_state_dpp_bcm_access_cb_init(unit); 42 sw_state_dpp_shr_access_cb_init(unit); 43 sw_state_dpp_soc_access_cb_init(unit); 44 #ifdef BCM_PETRA_SUPPORT 45 sw_state_access[unit].dpp.verify = sw_state_dpp_verify; 46 #endif /* BCM_PETRA_SUPPORT*/ 47 return _SHR_E_NONE; 48 } 49 50 #undef _ERR_MSG_MODULE_NAME