pm4x25td.h (2546B)
1 /* 2 * 3 * 4 * 5 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 6 * 7 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 8 * 9 * 10 * DO NOT EDIT THIS FILE! 11 */ 12 13 #ifndef _PM4X25TD_H__H_ 14 #define _PM4X25TD_H__H_ 15 16 #include <phymod/phymod.h> 17 #include <phymod/phymod_diagnostics.h> 18 #include <phymod/phymod_reg.h> 19 #include <soc/cprimod/cprimod.h> 20 #include <soc/portmod/portmod_defs.h> 21 /*set PFC config registers.*/ 22 int pm4x25td_port_pfc_config_set(int unit, int port, pm_info_t pm_info, const portmod_pfc_config_t* pfc_cfg); 23 int pm4x25td_port_pfc_config_get(int unit, int port, pm_info_t pm_info, portmod_pfc_config_t* pfc_cfg); 24 25 /*set modid field.*/ 26 int pm4x25td_port_modid_set(int unit, int port, pm_info_t pm_info, int value); 27 28 /*set modid field.*/ 29 int pm4x25td_port_led_chain_config(int unit, int port, pm_info_t pm_info, int value); 30 31 /*Attaches an external phy lane to a specific port macro*/ 32 int pm4x25td_xphy_lane_attach_to_pm(int unit, pm_info_t pm_info, int iphy, int phyn, const portmod_xphy_lane_connection_t* lane_connection); 33 34 /*Attaches an external phy lane to a specific port macro*/ 35 int pm4x25td_xphy_lane_detach_from_pm(int unit, pm_info_t pm_info, int iphy, int phyn, portmod_xphy_lane_connection_t* lane_connection); 36 37 /*Toggle Lag Failover Status.*/ 38 int pm4x25td_port_lag_failover_status_toggle(int unit, int port, pm_info_t pm_info); 39 40 /*set port register higig field.*/ 41 int pm4x25td_port_higig_mode_set(int unit, int port, pm_info_t pm_info, int mode); 42 int pm4x25td_port_higig_mode_get(int unit, int port, pm_info_t pm_info, int* mode); 43 44 /*set port register higig field.*/ 45 int pm4x25td_port_higig2_mode_set(int unit, int port, pm_info_t pm_info, int mode); 46 int pm4x25td_port_higig2_mode_get(int unit, int port, pm_info_t pm_info, int* mode); 47 48 /*set port register port type field.*/ 49 int pm4x25td_port_config_port_type_set(int unit, int port, pm_info_t pm_info, int type); 50 int pm4x25td_port_config_port_type_get(int unit, int port, pm_info_t pm_info, int* type); 51 52 /*Disable lag failover.*/ 53 int pm4x25td_port_cntmaxsize_set(int unit, int port, pm_info_t pm_info, int val); 54 int pm4x25td_port_cntmaxsize_get(int unit, int port, pm_info_t pm_info, int* val); 55 56 /**/ 57 int pm4x25td_port_soft_reset_toggle(int unit, int port, pm_info_t pm_info, int idx); 58 59 /*reconfig pgw.*/ 60 int pm4x25td_port_pgw_reconfig(int unit, int port, pm_info_t pm_info, const portmod_port_mode_info_t* pmode, int phy_port, int flags); 61 62 #endif /*_PM4X25TD_H_*/