[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

MDI_MonitorPhy()

Check all PHY status

Synopsis:

int MDI_MonitorPhy  ( mdi_t *mdi)

Arguments:

mdi
A pointer to the mdi_t structure obtained from the MDI_Register_Extended() function call.

Description:

The driver can call this function when it receives a link monitor pulse or a link event interrupt. The MDI_MonitorPhy() function checks the status of all PHYs that were initialized with MDI_InitPHY(). The function calls the link state change callback if it detects a change to the link state since the last callback, or if this is the first time that MDI_MonitorPhy() was called since the PHY was reset.


Note: If the MDI_EnableMonitor() function passes a value of one as the LDownTest argument, and MDI_MonitorPhy() doesn't detect a link, it attempts to establish a new link by writing to various PHY registers.

Classification:

QNX Neutrino

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes

[Previous] [Contents] [Index] [Next]