tomahawk3_cdmac_flexport.h (1469B)
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: tomahawk3_cdmac_flexport.h 8 */ 9 10 11 12 #ifndef _SOC_TOMAHAWK3_CDMAC_FLEXPORT_H_ 13 #define _SOC_TOMAHAWK3_CDMAC_FLEXPORT_H_ 14 15 #include <soc/init/tomahawk3_flexport_defines.h> 16 #include <soc/init/tomahawk3_set_tdm.h> 17 18 19 /*** START SDK API COMMON CODE ***/ 20 21 extern int soc_tomahawk3_flex_mac_rx_port_down( 22 int unit, soc_port_schedule_state_t *port_schedule_state); 23 24 extern int soc_tomahawk3_flex_mac_tx_port_down( 25 int unit, soc_port_schedule_state_t *port_schedule_state); 26 27 extern int soc_tomahawk3_flex_mac_port_up( 28 int unit, soc_port_schedule_state_t *port_schedule_state); 29 30 extern int soc_tomahawk3_flex_mac_enable( 31 int unit, soc_port_schedule_state_t *port_schedule_state); 32 33 extern int soc_tomahawk3_flex_get_pm_state( 34 int unit, 35 soc_port_schedule_state_t *port_schedule_state, 36 int pm_num, 37 int *pm_is_up_before_flex, 38 int *pm_is_up_after_flex); 39 40 extern int soc_tomahawk3_flex_tsc( 41 int unit, 42 soc_port_schedule_state_t *port_schedule_state, 43 int is_down); 44 45 extern int soc_tomahawk3_flex_tsc_down( 46 int unit, 47 soc_port_schedule_state_t *port_schedule_state); 48 49 extern int soc_tomahawk3_flex_tsc_up( 50 int unit, 51 soc_port_schedule_state_t *port_schedule_state); 52 53 /*** END SDK API COMMON CODE ***/ 54 55 #endif