1.\" $NetBSD: mii.4,v 1.27 2014/03/03 09:10:00 wiz 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 March 3, 2014 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 "micphy* at mii? phy ? # Micrel KSZ9021 Gig-E PHYs" 55.Cd "nsphy* at mii? phy ? # NatSemi DP83840 PHYs" 56.Cd "nsphyter* at mii? phy ? # NatSemi DP83843/DP83815 PHYs" 57.Cd "pnaphy* at mii? phy ? # Generic HomePNA PHYs" 58.Cd "qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs" 59.Cd "rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs" 60.Cd "rlphy* at mii? phy ? # Realtek 8139/8201L PHYs" 61.Cd "sqphy* at mii? phy ? # Seeq 80220/80221/80223/80225 PHYs" 62.Cd "tlphy* at mii? phy ? # ThunderLAN internal PHYs" 63.Cd "tqphy* at mii? phy ? # TSC Semiconductor 78Q2120 PHYs" 64.Cd "ukphy* at mii? phy ? # Generic/unknown PHYs" 65.Cd "urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs" 66.Pp 67.Cd options MIIVERBOSE 68.Sh DESCRIPTION 69Media Independent Interface is an IEEE standard serial bus for 70connecting MACs (network controllers) to PHYs (physical media 71interfaces). 72The 73.Nm 74layer allows network device drivers to share support code for 75various PHY models, and allows unused support for PHYs which 76are not present in a system to be removed from the kernel. 77.Pp 78Network device drivers which use the 79.Nm 80layer carry the 81.Dq mii 82autoconfiguration attribute. 83This allows kernel configuration 84files to simply specify PHYs as described above in the synopsis. 85.Pp 86The following is an example of the messages displayed when a network 87interface with an attached PHY is detected by the kernel: 88.Bd -literal -offset indent 89epic0 at pci0 dev 12 function 0: SMC EPIC/100 Fast Ethernet 90epic0: interrupting at kn20aa irq 4 91epic0: SMC9432TX, Ethernet address 00:e0:29:07:17:c4 92qsphy0 at epic0 phy 3: QS6612 10/100 media interface, rev. 1 93qsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto 94.Ed 95.Pp 96All PHY drivers display the media types supported by the PHY when it 97is detected by the kernel. 98These media types are valid media keywords for use with the 99.Xr ifconfig 8 100program. 101.Sh SEE ALSO 102.Xr acphy 4 , 103.Xr amhphy 4 , 104.Xr bmtphy 4 , 105.Xr brgphy 4 , 106.Xr ciphy 4 , 107.Xr dmphy 4 , 108.Xr exphy 4 , 109.Xr gentbi 4 , 110.Xr glxtphy 4 , 111.Xr gphyter 4 , 112.Xr icsphy 4 , 113.Xr ifmedia 4 , 114.Xr ikphy 4 , 115.Xr inphy 4 , 116.Xr iophy 4 , 117.Xr lxtphy 4 , 118.Xr makphy 4 , 119.Xr micphy 4 , 120.Xr nsphy 4 , 121.Xr nsphyter 4 , 122.Xr pnaphy 4 , 123.Xr qsphy 4 , 124.Xr rgephy 4 , 125.Xr rlphy 4 , 126.Xr sqphy 4 , 127.Xr tlphy 4 , 128.Xr tqphy 4 , 129.Xr ukphy 4 , 130.Xr urlphy 4 , 131.Xr ifconfig 8 132.Pp 133The OUI assignments list can be found at: 134.Lk http://standards.ieee.org/regauth/oui/index.shtml 135