stg.h (1061B)
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 * This file contains STG definitions internal to the BCM library. 8 */ 9 10 #ifndef _BCM_INT_STG_H 11 #define _BCM_INT_STG_H 12 13 extern int _bcm_stg_stp_translate(int unit, int bcm_state, int *pvp_state); 14 extern int _bcm_stg_pvp_translate(int unit, int pvp_state, int *bcm_state); 15 extern int _bcm_stg_vlan_destroy(int unit, bcm_stg_t stg, bcm_vlan_t vid); 16 extern int bcm_esw_stg_detach(int unit); 17 18 #define BCM_LYNX_VLANS_PER_MSTP_ENTRY 16 19 20 /* MSTP mask support */ 21 #define _BCM_STG_STP_TO_MSTP_MASK_ENABLE(stp_state) \ 22 (((stp_state) != BCM_STG_STP_DISABLE) && \ 23 ((stp_state) != BCM_STG_STP_BLOCK)) 24 25 #ifdef BCM_WARM_BOOT_SUPPORT 26 extern int _bcm_esw_stg_sync(int unit); 27 #endif /* BCM_WARM_BOOT_SUPPORT */ 28 29 #ifndef BCM_SW_STATE_DUMP_DISABLE 30 extern void _bcm_stg_sw_dump(int unit); 31 #endif /* BCM_SW_STATE_DUMP_DISABLE */ 32 33 #endif /* !_BCM_INT_STG_H */