1.\" $OpenBSD: gem.4,v 1.8 2003/07/13 03:15:02 brad Exp $ 2.\" 3.\" Copyright (c) 2001 Miodrag Vallat. 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistribution of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25.\" 26.\" 27.Dd October 5, 2001 28.Dt GEM 4 29.Os 30.Sh NAME 31.Nm gem 32.Nd GEM gigabit ethernet interface 33.Sh SYNOPSIS 34.Cd "gem* at pci? dev ? function ?" 35.Cd "bmtphy* at mii? phy ?" 36.Cd "brgphy* at mii? phy ?" 37.Cd "eephy* at mii? phy ?" 38.Cd "lxtphy* at mii? phy ?" 39.Sh DESCRIPTION 40The 41.Nm 42interface provides access to the 10Mb/s, 100Mb/s and 1Gb/s Ethernet networks. 43The 44.Nm 45is found on the 46.Tn Sun 47GEM and ERI 10/100 boards, as well as the 48.Tn Apple 49internal GMAC ethernet. 50.Pp 51Each of the host's network addresses 52is specified at boot time with an 53.Dv SIOCSIFADDR 54.Xr ioctl 2 . 55The 56.Nm 57interface employs the address resolution protocol described in 58.Xr arp 4 59to dynamically map between Internet and Ethernet addresses on the local 60network. 61.Pp 62When a 63.Nm 64interface is brought up, by default, it will attempt to auto-negotiate the 65link speed and duplex. 66The speeds are tried in descending order; first in full duplex mode, then 67half duplex. 68.Pp 69The 70.Nm 71driver supports several media types, which are selected via the 72.Xr ifconfig 8 73command. 74The supported media types are: 75.Bl -tag -width "media" -offset indent 76.It media autoselect 77Attempt to autoselect the media type (default) 78.\" Check and correct the gigabit modes. Are both copper and fiber supported? 79.\" And in both duplex modes as well? 80.It media 1000baseT mediaopt full-duplex 81Use 1000baseT on copper, full duplex 82.It media 1000baseT Op mediaopt half-duplex 83Use 1000baseT on copper, half duplex 84.It media 1000baseSX mediaopt full-duplex 85Use 1000baseSX on fiber, full duplex 86.It media 1000baseSX Op mediaopt half-duplex 87Use 1000baseSX on fiber, half duplex 88.It media 100baseTX mediaopt full-duplex 89Use 100baseTX, full duplex 90.It media 100baseTX Op mediaopt half-duplex 91Use 100baseTX, half duplex 92.It media 10baseT mediaopt full-duplex 93Use 10baseT, full duplex 94.It media 10baseT Op mediaopt half-duplex 95Use 10baseT, half duplex 96.El 97.Sh SEE ALSO 98.Xr arp 4 , 99.Xr bmtphy 4 , 100.Xr brgphy 4 , 101.Xr eephy 4 , 102.Xr ifmedia 4 , 103.Xr inet 4 , 104.Xr intro 4 , 105.Xr lxtphy 4 , 106.Xr netintro 4 , 107.Xr hostname.if 5 , 108.Xr ifconfig 8 109.Sh HISTORY 110.Ox 111support for 112.Nm 113first appeared in 114.Ox 3.0 . 115