rio_sport_is_active — Tests if a switch port has an active connection.
Master port to send transaction
Associated destination ID for switch
Hopcount to reach switch
Switch port number
Reads the port error status CSR for a particular switch port to determine if the port has an active link. Returns PORT_N_ERR_STS_PORT_OK if the port is active or 0 if it is inactive.