11-05-2019 08:58 PM
11-06-2019 01:11 AM
11-06-2019 10:05 AM
Long Form: lan_port_cfg_getand the result of SSH into the module and running: onu lan_port_cfg_get 0
Short Form: lanpcg
Input Parameter
- uint32_t pport
Output Parameter
- enum onu_errorcode errorcode
- uint32_t pport
- uint32_t enable
- int32_t mdio_dev_addr
- enum lan_mode_gmux gmux_mode
LAN_MODE_GMUX_GPHY0_GMII = 0
LAN_MODE_GMUX_GPHY0_MII2 = 1
LAN_MODE_GMUX_GPHY1_GMII = 2
LAN_MODE_GMUX_GPHY1_MII2 = 3
LAN_MODE_GMUX_SGMII = 4
LAN_MODE_GMUX_XMII0 = 5
LAN_MODE_GMUX_XMII1 = 6
- enum lan_mode_interface mode
LAN_MODE_OFF = 0
LAN_MODE_GPHY = 1
LAN_MODE_EPHY = 2
LAN_MODE_SGMII = 3
LAN_MODE_SGMII_FAST = 4
LAN_MODE_RGMII_MAC = 5
LAN_MODE_RMII_MAC = 6
LAN_MODE_RMII_PHY = 7
LAN_MODE_GMII_MAC = 8
LAN_MODE_GMII_PHY = 9
LAN_MODE_MII_MAC = 10
LAN_MODE_MII_PHY = 11
LAN_MODE_TMII_MAC = 12
LAN_MODE_TMII_PHY = 13
LAN_MODE_TBI_SERDES = 14
LAN_MODE_TBI_AUTODETECT = 15
- enum lan_mode_duplex duplex_mode
LAN_PHY_MODE_DUPLEX_AUTO = 0
LAN_PHY_MODE_DUPLEX_FULL = 1
LAN_PHY_MODE_DUPLEX_HALF = 2
LAN_PHY_MODE_DUPLEX_UNKNOWN = 3
- enum lan_mode_flow_control flow_control_mode
LAN_FLOW_CONTROL_MODE_AUTO = 0
LAN_FLOW_CONTROL_MODE_RX = 1
LAN_FLOW_CONTROL_MODE_TX = 2
LAN_FLOW_CONTROL_MODE_RXTX = 3
LAN_FLOW_CONTROL_MODE_NONE = 4
- enum lan_mode_speed speed_mode
LAN_MODE_SPEED_AUTO = 0
LAN_MODE_SPEED_10 = 1
LAN_MODE_SPEED_100 = 2
LAN_MODE_SPEED_200 = 3
LAN_MODE_SPEED_1000 = 4
LAN_MODE_SPEED_2500 = 5
LAN_MODE_SPEED_UNKNOWN = 6
- uint8_t tx_clk_dly
- uint8_t rx_clk_dly
- uint16_t max_frame_size
- uint32_t lpi_enable
- enum sgmii_autoneg_mode autoneg_mode
SGMII_NO_ANEG = 0
SGMII_MAC_ANEG = 1
SGMII_PHY_ANEG = 2
SGMII_SERDES_ANEG = 3
- uint32_t invtx
- uint32_t invrx
errorcode=0 pport=0 enable=1 mdio_dev_addr=-1 gmux_mode=4 mode=15 duplex_mode=1 flow_control_mode=4 speed_mode=5 tx_clk_dly=0 rx_clk_dly=0 max_frame_size=9216 lpi_enable=1 autoneg_mode=3 invtx=0 invrx=0As you can see the LAN/SFP end is set to Ten-bit Interface AUTO, speed is set to 2500, duplex is set to full, etc.
- enum lan_phy_status link_status
LAN_PHY_STATUS_OFF = 0
LAN_PHY_STATUS_DOWN = 1
LAN_PHY_STATUS_10_UP = 2
LAN_PHY_STATUS_100_UP = 3
LAN_PHY_STATUS_1000_UP = 4
LAN_PHY_STATUS_2500_UP = 5
LAN_PHY_STATUS_NONE = 6
LAN_PHY_STATUS_UNKNOWN = 255
11-07-2019 06:34 AM
11-08-2019 11:59 AM