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

MDI_SetAdvert()

Select the media types to advertise

Synopsis:

int MDI_SetAdvert( mdi_t * mdi,
                   int PhyAddr,
                   int Media );

Arguments:

mdi
A pointer to the mdi_t structure obtained from MDI_Register() or MDI_Register_Extended().
PhyAddr
The physical address of the physical layer device (PHY).
Media
Values for the advertised media type. Valid values are:

Note: These media values are flags; you can OR them together.

Description:

The MDI_SetAdvert() function selects the media types to advertise to the PHY's link partner.

Returns:

MDI_SUCCESS
The advertisement is capable and was sent.
MDI_INVALID_MEDIA or MDI_UNSUPPORTED
The PHY can't advertise the specified values.

Any other value indicates that an error occurred.

Classification:

QNX Neutrino

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

See also:

MDI_GetAdvert(), MDI_Register(), MDI_Register_Extended()