phynull.h (2404B)
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: phynull.h 8 * Purpose: 9 */ 10 11 #ifndef _PHY_NULL_H_ 12 #define _PHY_NULL_H_ 13 14 15 extern int phy_null_init(int unit, soc_port_t port); 16 extern int phy_null_reset(int unit, soc_port_t port, void *user_arg); 17 extern int phy_null_set(int unit, soc_port_t port, int parm); 18 extern int phy_null_one_get(int unit, soc_port_t port, int *parm); 19 extern int phy_null_zero_get(int unit, soc_port_t port, int *parm); 20 extern int phy_null_enable_get(int unit, soc_port_t port, int *enable); 21 extern int phy_null_duplex_set(int unit, soc_port_t port, int parm); 22 extern int phy_null_duplex_get(int unit, soc_port_t port, int *parm); 23 extern int phy_null_speed_set(int unit, soc_port_t port, int parm); 24 extern int phy_null_speed_get(int unit, soc_port_t port, int *parm); 25 extern int phy_null_an_get(int unit, soc_port_t port, int *an, int *an_done); 26 extern int phy_null_mode_set(int unit, soc_port_t port, soc_port_mode_t mode); 27 extern int phy_null_mode_get(int unit, soc_port_t port, soc_port_mode_t *mode); 28 extern int phy_null_interface_set(int unit, soc_port_t port, 29 soc_port_if_t pif); 30 extern int phy_null_interface_get(int unit, soc_port_t port, 31 soc_port_if_t *pif); 32 extern int phy_null_mdix_set(int unit, soc_port_t port, 33 soc_port_mdix_t mode); 34 extern int phy_null_mdix_get(int unit, soc_port_t port, 35 soc_port_mdix_t *mode); 36 extern int phy_null_mdix_status_get(int unit, soc_port_t port, 37 soc_port_mdix_status_t *status); 38 extern int phy_null_medium_get(int unit, soc_port_t port, 39 soc_port_medium_t *medium); 40 extern int phy_null_control_get(int unit, soc_port_t port, 41 soc_phy_control_t phy_ctrl, uint32 *param); 42 extern int phy_null_notify(int unit, soc_port_t port, 43 soc_phy_event_t event, uint32 value); 44 45 extern int phy_nocxn_mode_get(int unit, soc_port_t port, 46 soc_port_mode_t *mode); 47 extern int phy_nocxn_interface_set(int unit, soc_port_t port, 48 soc_port_if_t pif); 49 extern int phy_nocxn_interface_get(int unit, soc_port_t port, 50 soc_port_if_t *pif); 51 52 #endif /* _PHY_NULL_H_ */