1.\" $NetBSD: mii.4,v 1.24 2008/04/30 13:10:54 martin Exp $ 2.\" 3.\" Copyright (c) 1998, 2002 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 8.\" NASA Ames Research Center. 9.\" 10.\" Redistribution and use in source and binary forms, with or without 11.\" modification, are permitted provided that the following conditions 12.\" are met: 13.\" 1. Redistributions of source code must retain the above copyright 14.\" notice, this list of conditions and the following disclaimer. 15.\" 2. Redistributions in binary form must reproduce the above copyright 16.\" notice, this list of conditions and the following disclaimer in the 17.\" documentation and/or other materials provided with the distribution. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29.\" POSSIBILITY OF SUCH DAMAGE. 30.\" 31.Dd October 13, 2006 32.Dt MII 4 33.Os 34.Sh NAME 35.Nm mii 36.Nd IEEE 802.3 Media Independent Interface network bus 37.Sh SYNOPSIS 38.Cd "acphy* at mii? phy ? # Altima AC101 10/100 PHY" 39.Cd "amhphy* at mii? phy ? # AMD 79c901 PHY (10BASE-T part)" 40.Cd "bmtphy* at mii? phy ? # Broadcom BCM5201/5202 PHYs" 41.Cd "brgphy* at mii? phy ? # Broadcom BCM5400/5401 Gig-E PHYs" 42.Cd "ciphy* at mii? phy ? # Cicada CS8201 Gig-E PHYs" 43.Cd "dmphy* at mii? phy ? # Davicom DM9101 PHYs" 44.Cd "exphy* at mii? phy ? # 3Com internal PHYs" 45.Cd "gentbi* at mii? phy ? # Generic ten-bit 1000BASE-X PHYs" 46.Cd "glxtphy* at mii? phy ? # Level One LXT-1000 Gig-E PHYs" 47.Cd "gphyter* at mii? phy ? # NatSemi DP83861 Gig-E PHYs" 48.Cd "icsphy* at mii? phy ? # Integrated Circuit Systems ICS1890 PHYs" 49.Cd "ikphy* at mii? phy ? # Intel 82563 PHYs" 50.Cd "inphy* at mii? phy ? # Intel 82555 PHYs" 51.Cd "iophy* at mii? phy ? # Intel 82553 PHYs" 52.Cd "lxtphy* at mii? phy ? # Level One LXT-970 PHYs" 53.Cd "makphy* at mii? phy ? # Marvel 88E1000 Gig-E PHYs" 54.Cd "nsphy* at mii? phy ? # NatSemi DP83840 PHYs" 55.Cd "nsphyter* at mii? phy ? # NatSemi DP83843/DP83815 PHYs" 56.Cd "pnaphy* at mii? phy ? # Generic HomePNA PHYs" 57.Cd "qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs" 58.Cd "rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs" 59.Cd "rlphy* at mii? phy ? # Realtek 8139/8201L PHYs" 60.Cd "sqphy* at mii? phy ? # Seeq 80220/80221/80223/80225 PHYs" 61.Cd "tlphy* at mii? phy ? # ThunderLAN internal PHYs" 62.Cd "tqphy* at mii? phy ? # TSC Semiconductor 78Q2120 PHYs" 63.Cd "ukphy* at mii? phy ? # Generic/unknown PHYs" 64.Cd "urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs" 65.Pp 66.Cd options MIIVERBOSE 67.Sh DESCRIPTION 68Media Independent Interface is an IEEE standard serial bus for 69connecting MACs (network controllers) to PHYs (physical media 70interfaces). The 71.Nm 72layer allows network device drivers to share support code for 73various PHY models, and allows unused support for PHYs which 74are not present in a system to be removed from the kernel. 75.Pp 76Network device drivers which use the 77.Nm 78layer carry the 79.Dq mii 80autoconfiguration attribute. This allows kernel configuration 81files to simply specify PHYs as described above in the synopsis. 82.Pp 83The following is an example of the messages displayed when a network 84interface with an attached PHY is detected by the kernel: 85.Bd -literal -offset indent 86epic0 at pci0 dev 12 function 0: SMC EPIC/100 Fast Ethernet 87epic0: interrupting at kn20aa irq 4 88epic0: SMC9432TX, Ethernet address 00:e0:29:07:17:c4 89qsphy0 at epic0 phy 3: QS6612 10/100 media interface, rev. 1 90qsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto 91.Ed 92.Pp 93All PHY drivers display the media types supported by the PHY when it 94is detected by the kernel. These media types are valid media keywords 95for use with the 96.Xr ifconfig 8 97program. 98.Sh SEE ALSO 99.Xr acphy 4 , 100.Xr amhphy 4 , 101.Xr bmtphy 4 , 102.Xr brgphy 4 , 103.Xr ciphy 4 , 104.Xr dmphy 4 , 105.Xr exphy 4 , 106.Xr gentbi 4 , 107.Xr glxtphy 4 , 108.Xr gphyter 4 , 109.Xr icsphy 4 , 110.Xr ifmedia 4 , 111.Xr ikphy 4 , 112.Xr inphy 4 , 113.Xr iophy 4 , 114.Xr lxtphy 4 , 115.Xr makphy 4 , 116.Xr nsphy 4 , 117.Xr nsphyter 4 , 118.Xr pnaphy 4 , 119.Xr qsphy 4 , 120.Xr rgephy 4 , 121.Xr rlphy 4 , 122.Xr sqphy 4 , 123.Xr tlphy 4 , 124.Xr tqphy 4 , 125.Xr ukphy 4 , 126.Xr urlphy 4 , 127.Xr ifconfig 8 128.Pp 129The OUI assignments list can be found at: 130.D1 http://standards.ieee.org/regauth/oui/index.shtml 131