1.\" $NetBSD: mii.4,v 1.1 1998/11/04 05:21:50 thorpej Exp $ 2.\" 3.\" Copyright (c) 1998 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.\" 3. All advertising materials mentioning features or use of this software 19.\" must display the following acknowledgement: 20.\" This product includes software developed by the NetBSD 21.\" Foundation, Inc. and its contributors. 22.\" 4. Neither the name of The NetBSD Foundation nor the names of its 23.\" contributors may be used to endorse or promote products derived 24.\" from this software without specific prior written permission. 25.\" 26.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 27.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 28.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 29.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 30.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 31.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36.\" POSSIBILITY OF SUCH DAMAGE. 37.\" 38.Dd November 3, 1998 39.Dt MII 4 40.Os NetBSD 41.Sh NAME 42.Nm mii 43.Nd IEEE 802.3 Media Independent Interface 44.Sh SYNOPSIS 45.Cd "exphy* at mii? phy ?" 46.Cd "icsphy* at mii? phy ?" 47.Cd "inphy* at mii? phy ?" 48.Cd "lxtphy* at mii? phy ?" 49.Cd "nsphy* at mii? phy ?" 50.Cd "qsphy* at mii? phy ?" 51.Cd "rtpphy* at mii? phy ?" 52.Cd "sqphy* at mii? phy ?" 53.Cd "tlphy* at mii? phy ?" 54.Sh DESCRIPTION 55Media Independent Interface is an IEEE standard serial bus for 56connecting MACs (network controllers) to PHYs (physical media 57interfaces). The 58.Nm 59layer allows network device drivers to share support code for 60various PHY models, and allows unused support for PHYs which 61are not present in a system to be removed from the kernel. 62.Pp 63Network device drivers which use the 64.Nm 65layer carry the 66.Dq mii 67autoconfiguration attribute. This allows kernel configuration 68files to simply specify PHYs as described above in the synopsis. 69.Pp 70The following is an example of the messages displayed when a network 71interface with an attached PHY is detected by the kernel: 72.Bd -literal -offset indent 73epic0 at pci0 dev 12 function 0: SMC EPIC/100 Fast Ethernet 74epic0: interrupting at kn20aa irq 4 75epic0: SMC9432TX, Ethernet address 00:e0:29:07:17:c4 76qsphy0 at epic0 phy 3: QS6612 10/100 media interface, rev. 1 77qsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto 78.Ed 79.Pp 80All PHY drivers display the media types supported by the PHY when it 81is detected by the kernel. These media types are valid media keywords 82for use with the 83.Xr ifconfig 8 84program. 85.Sh SEE ALSO 86.Xr exphy 4 , 87.Xr icsphy 4 , 88.Xr ifmedia 4 , 89.Xr inphy 4 , 90.Xr intro 4 , 91.Xr lxtphy 4 , 92.Xr nsphy 4 , 93.Xr qsphy 4 , 94.Xr rtpphy 4 , 95.Xr sqphy 4 , 96.Xr tlphy 4 , 97.Xr ifconfig 8 98