Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ MDI_MonitorPhy

Media Vault

Software Library

Restoration Projects

Artifacts Sought

MDI_MonitorPhy

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

MDI_MonitorPhy()

Check the status of all PHYs

Synopsis:

int MDI_MonitorPhy  ( mdi_t *mdi)

Arguments:

mdi
A pointer to the mdi_t structure obtained from MDI_Register() or MDI_Register_Extended().

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 you passed a value of 1 as the LDownTest argument to MDI_EnableMonitor(), 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

See also:

MDI_DisableMonitor(), MDI_EnableMonitor(), MDI_InitPhy(), MDI_Register(), MDI_Register_Extended()


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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026