portctrl_internal.h (1737B)
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: portctrl_internal.h 8 * Purpose: SDK SOC Port Control Glue Layer 9 */ 10 11 #ifndef _SOC_ESW_PORTCTRL_INTERNAL_H_ 12 #define _SOC_ESW_PORTCTRL_INTERNAL_H_ 13 14 #ifdef PORTMOD_SUPPORT 15 16 #include <soc/portmod/portmod_common.h> 17 #include <soc/portmod/portmod.h> 18 19 /* utility functions called from device specific portmod code */ 20 extern int 21 soc_esw_portctrl_pm_user_access_alloc(int unit, int num, 22 portmod_default_user_access_t **user_acc); 23 extern void 24 soc_esw_portctrl_dump_txrx_lane_map(int unit, int first_port, int logical_port, 25 int core_num, uint32 txlane_map_b, uint32 rxlane_map_b, 26 uint32 txlane_map, uint32 rxlane_map); 27 extern int soc_esw_portctrl_reset_tsc0_cb(int unit, int port, uint32 in_reset); 28 extern int soc_esw_portctrl_reset_tsc1_cb(int unit, int port, uint32 in_reset); 29 extern int soc_esw_portctrl_reset_tsc2_cb(int unit, int port, uint32 in_reset); 30 extern int soc_esw_portctrl_reset_tsc3_cb(int unit, int port, uint32 in_reset); 31 extern int soc_esw_portctrl_reset_qtsce_cb(int unit, int port, uint32 in_reset); 32 extern int soc_esw_portctrl_reset_gphy_cb(int unit, int port, uint32 in_reset); 33 34 extern int 35 soc_esw_portctrl_config_get(int unit, soc_port_t port, 36 portmod_port_interface_config_t* interface_config, 37 portmod_port_init_config_t* init_config, 38 phymod_operation_mode_t *phy_op_mode); 39 40 41 #endif /* PORTMOD_SUPPORT */ 42 43 #endif /* _SOC_ESW_PORTCTRL_INTERNAL_H_ */ 44