Index Index for
Section 9
Index Alphabetical
listing for L
Bottom of page Bottom of
page

lan_media(9s)

NAME

lan_media - Network: Defines information related to the network medium

SYNOPSIS

_______________________________ Member Name Data Type _______________________________ lan_media_mode unsigned long lan_media_state unsigned long lan_media unsigned long _______________________________

MEMBERS

lan_media_mode Specifies the media mode. Typically, you set this member in the driver's probe interface to one of the following values, defined in <lan_common.h>: LAN_MEDIA_UTP The mode for the media is unshielded twisted-pair cable. LAN_MEDIA_BNC The mode for the media is thin wire. LAN_MEDIA_STP The mode for the media is shielded twisted-pair cable. LAN_MEDIA_FIBER The mode for the media is any fiber-based media. LAN_MEDIA_AUI The mode for the media is the attachment unit interface (AUI). LAN_MEDIA_4PAIR The mode for the media is 4-pair cable. LAN_MODE_AUTOSENSE The mode for the media is autosense. This means the hardware determines the media automatically. lan_media_state Specifies the media state. You set the lan_media_state member only if lan_media_mode is set to LAN_MODE_AUTOSENSE. You set this member in the driver's probe interface to one of the following constants, defined in <lan_common.h>: LAN_MEDIA_STATE_SENSING The driver is trying to determine the media mode. LAN_MEDIA_STATE_DETERMINED The media state has been determined. lan_media If lan_media_mode is set to lan_media_autosense, specifies the media mode that was set by the probe interface, as follows: · If lan_media_state is set to LAN_MEDIA_SENSING, the lan_media member contains the mode that the probe interface is currently testing. This value is not necessarily the media mode for the network device. · If lan_media_state is set to LAN_MEDIA_DETERMINED, the lan_media member contains the current media mode. That is, probe has successfully determined the media mode.

DESCRIPTION

The lan_media data structure defines information related to the network medium. You typically declare an instance of the lan_media data structure in the network driver's softc data structure.

FILES

<io/dec/netif/lan_common.h>

Index Index for
Section 9
Index Alphabetical
listing for L
Top of page Top of
page