phymod_port_control.h (2354B)
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 8 #ifndef _PHY_PHYMOD_PORT_CONTROL_H_ 9 #define _PHY_PHYMOD_PORT_CONTROL_H_ 10 11 #include <soc/types.h> 12 #include <soc/phyctrl.h> 13 #include <phymod/phymod.h> 14 #include <phymod/phymod_diagnostics.h> 15 #include <phymod/phymod_diag.h> 16 17 18 int soc_port_control_get_wrapper(int unit, 19 phymod_ref_clk_t ref_clock, 20 int is_lane_control, 21 phymod_phy_access_t *phys, 22 int nof_phys, 23 soc_phy_control_t control, 24 uint32 *value); 25 26 int soc_port_control_set_wrapper(int unit, 27 phymod_ref_clk_t ref_clock, 28 int is_lane_control, 29 phymod_phy_access_t *phys, 30 int nof_phys, 31 soc_phy_control_t control, 32 uint32 value); 33 34 int soc_prbs_poly_to_phymod(uint32 sdk_poly, phymod_prbs_poly_t *phymod_poly); 35 int phymod_prbs_poly_to_soc(phymod_prbs_poly_t phymod_poly, uint32 *sdk_poly); 36 37 int soc_phymod_phy_intf_to_port_intf (int unit, 38 phymod_interface_t phymod_interface, 39 soc_port_if_t *interface); 40 41 int soc_phymod_phy_intf_from_port_intf(int unit, 42 int speed, 43 soc_port_if_t interface, 44 phymod_interface_t *phymod_interface); 45 int soc_phymod_media_type_from_port_intf(int unit, 46 soc_port_if_t interface, 47 phymod_phy_inf_config_t *phy_interface_config); 48 int soc_phymod_intf_mode_from_phymod_intf(int unit, 49 phymod_interface_t phymod_interface, 50 phymod_phy_inf_config_t *phy_interface_config); 51 52 int soc_portctrl_phy_tx_get(int unit, phymod_phy_access_t *phys, phymod_tx_t *phy_tx); 53 54 int soc_portctrl_phy_tx_set(int unit, phymod_phy_access_t *phys, phymod_tx_t *phy_tx); 55 56 #endif /* _PHY_PHYMOD_PORT_CONTROL_H_ */