greyhound2_tdm.h (1417B)
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: greyhound2_tdm.h 8 */ 9 10 #ifndef _SOC_GREYHOUND2_TDM_H_ 11 #define _SOC_GREYHOUND2_TDM_H_ 12 13 #include <soc/esw/port.h> 14 15 /*** START SDK API COMMON CODE ***/ 16 17 /* GH2 specific defines */ 18 #define GREYHOUND2_TDM_PHY_PORTS_PER_DEV 90 19 #define GREYHOUND2_TDM_LOG_PORTS_PER_DEV 66 20 21 22 /*** START SDK API COMMON CODE ***/ 23 extern void _soc_gh2_tdm_print_port_map(int unit, 24 soc_port_map_type_t *port_map); 25 extern void _soc_gh2_tdm_print_tdm_info(int unit, soc_tdm_schedule_t *tdm_info); 26 extern void _soc_gh2_tdm_print_schedule_state(int unit, 27 soc_port_schedule_state_t *sch_info); 28 extern int _soc_gh2_tdm_calculation(int unit, 29 soc_port_schedule_state_t *sch_info); 30 extern int _soc_gh2_tdm_set_idb_calendar(int unit, 31 soc_port_schedule_state_t *sch_info); 32 33 extern int soc_gh2_tdm_init(int unit, 34 soc_port_schedule_state_t *schedule_state); 35 36 extern void soc_gh2_port_schedule_speed_remap( 37 int unit, 38 soc_port_schedule_state_t *port_schedule_state); 39 40 /*** END SDK API COMMON CODE ***/ 41 42 #endif /* !_SOC_GREYHOUND2_TDM_H_ */