1.\" $OpenBSD: mii.4,v 1.29 2011/01/15 04:35:34 kevlo Exp $ 2.\" $NetBSD: mii.4,v 1.1 1998/11/04 05:21:50 thorpej Exp $ 3.\" 4.\" Copyright (c) 1998 The NetBSD Foundation, Inc. 5.\" All rights reserved. 6.\" 7.\" This code is derived from software contributed to The NetBSD Foundation 8.\" by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 9.\" NASA Ames Research Center. 10.\" 11.\" Redistribution and use in source and binary forms, with or without 12.\" modification, are permitted provided that the following conditions 13.\" are met: 14.\" 1. Redistributions of source code must retain the above copyright 15.\" notice, this list of conditions and the following disclaimer. 16.\" 2. Redistributions in binary form must reproduce the above copyright 17.\" notice, this list of conditions and the following disclaimer in the 18.\" documentation and/or other materials provided with the distribution. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 21.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 24.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30.\" POSSIBILITY OF SUCH DAMAGE. 31.\" 32.Dd $Mdocdate: January 15 2011 $ 33.Dt MII 4 34.Os 35.Sh NAME 36.Nm mii 37.Nd IEEE 802.3 Media Independent Interface 38.Sh SYNOPSIS 39.Cd "acphy* at mii?" 40.Cd "amphy* at mii?" 41.Cd "atphy* at mii?" 42.Cd "bmtphy* at mii?" 43.Cd "brgphy* at mii?" 44.Cd "ciphy* at mii?" 45.Cd "dcphy* at mii?" 46.Cd "eephy* at mii?" 47.Cd "etphy* at mii?" 48.Cd "exphy* at mii?" 49.Cd "gentbi* at mii?" 50.Cd "icsphy* at mii?" 51.Cd "ipgphy* at mii?" 52.Cd "inphy* at mii?" 53.Cd "iophy* at mii?" 54.Cd "jmphy* at mii?" 55.Cd "luphy* at mii?" 56.Cd "lxtphy* at mii?" 57.Cd "mtdphy* at mii?" 58.Cd "nsgphy* at mii?" 59.Cd "nsphy* at mii?" 60.Cd "nsphyter* at mii?" 61.Cd "qsphy* at mii?" 62.Cd "rdcphy* at mii?" 63.Cd "rgephy* at mii?" 64.Cd "rlphy* at mii?" 65.Cd "sqphy* at mii?" 66.Cd "tlphy* at mii?" 67.Cd "tqphy* at mii?" 68.Cd "txphy* at mii?" 69.Cd "ukphy* at mii?" 70.Cd "urlphy* at mii?" 71.Cd "xmphy* at mii?" 72.Sh DESCRIPTION 73Media Independent Interface is an IEEE standard serial bus for 74connecting MACs (network controllers) to PHYs (physical media 75interfaces). 76The 77.Nm 78layer allows network device drivers to share support code for 79various PHY models, and allows unused support for PHYs which 80are not present in a system to be removed from the kernel. 81.Pp 82Network device drivers which use the 83.Nm 84layer carry the 85.Dq mii 86autoconfiguration attribute. 87This allows kernel configuration files to simply specify PHYs as 88described above in 89.Sx SYNOPSIS . 90.Pp 91The following is an example of the messages displayed when a network 92interface with an attached PHY is detected by the kernel: 93.Bd -literal -offset indent 94hme0 at sbus0 slot 1 offset 0x8c00000 pri 7: address 08:00:20:22:86:b8 rev 34 95nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1 96.Ed 97.Pp 98.Xr ifconfig 8 99can be used to display the media types supported by the PHY. 100These media types are valid media keywords for use with the 101.Xr ifconfig 8 102program. 103.Sh SEE ALSO 104.Xr acphy 4 , 105.Xr amphy 4 , 106.Xr atphy 4 , 107.Xr bmtphy 4 , 108.Xr brgphy 4 , 109.Xr ciphy 4 , 110.Xr dcphy 4 , 111.Xr eephy 4 , 112.Xr etphy 4 , 113.Xr exphy 4 , 114.Xr gentbi 4 , 115.Xr icsphy 4 , 116.Xr ifmedia 4 , 117.Xr inphy 4 , 118.Xr intro 4 , 119.Xr iophy 4 , 120.Xr ipgphy 4 , 121.Xr jmphy 4 , 122.Xr luphy 4 , 123.Xr lxtphy 4 , 124.Xr mtdphy 4 , 125.Xr netintro 4 , 126.Xr nsgphy 4 , 127.Xr nsphy 4 , 128.Xr nsphyter 4 , 129.Xr qsphy 4 , 130.Xr rdcphy 4 , 131.Xr rgephy 4 , 132.Xr rlphy 4 , 133.Xr sqphy 4 , 134.Xr tlphy 4 , 135.Xr tqphy 4 , 136.Xr txphy 4 , 137.Xr ukphy 4 , 138.Xr urlphy 4 , 139.Xr xmphy 4 , 140.Xr ifconfig 8 141