link.h (1937B)
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 Link module definitions internal to the BCM library. 8 */ 9 10 #ifndef _BCM_INT_LINK_H 11 #define _BCM_INT_LINK_H 12 13 #define _BCM_LINK_STATUS_NO_CALLBACK 0x1 14 15 extern int _bcm_esw_link_get(int unit, bcm_port_t port, int *link); 16 extern int _bcm_esw_link_force(int unit, uint32 flags, bcm_port_t port, 17 int force, int link); 18 extern int _bcm_esw_link_down_tx_set(int unit, bcm_port_t port, int enable); 19 extern int _bcm_esw_link_down_tx_get(int unit, bcm_port_t port, int *enable); 20 extern int _bcm_esw_link_failover_set(int unit, bcm_port_t port, int enable); 21 extern int _bcm_esw_link_failed_clear(int unit, bcm_port_t port); 22 extern int _bcm_esw_link_port_info_skip_set(int unit, bcm_port_t port, int skip); 23 extern int _bcm_esw_link_port_info_skip_get(int unit, bcm_port_t port, int *skip); 24 extern int _bcm_esw_link_fast_set(int unit, bcm_port_t port, int enable); 25 extern int _bcm_esw_link_fast_get(int unit, bcm_port_t port, int *enable); 26 extern int _bcm_esw_roe_link_down_tx_set(int unit, bcm_port_t port, int enable); 27 extern int _bcm_esw_roe_link_down_tx_get(int unit, bcm_port_t port, int *enable); 28 extern int _bcm_esw_roe_link_down_rx_set(int unit, bcm_port_t port, int enable); 29 extern int _bcm_esw_roe_link_down_rx_get(int unit, bcm_port_t port, int *enable); 30 31 32 #ifdef BCM_WARM_BOOT_SUPPORT 33 extern int _bcm_esw_link_sync(int unit); 34 #endif /* BCM_WARM_BOOT_SUPPORT */ 35 36 #ifndef BCM_SW_STATE_DUMP_DISABLE 37 extern void _bcm_link_sw_dump(int unit); 38 #endif /* BCM_SW_STATE_DUMP_DISABLE */ 39 40 int _bcm_esw_lc_lock(int unit); 41 int _bcm_esw_lc_unlock(int unit); 42 int _bcm_esw_lc_check_init(int unit); 43 44 extern int bcm_esw_linkscan_port_attach(int unit, bcm_port_t port); 45 #endif /* !_BCM_INT_LINK_H */