1cc264d00SThomas Moestl.\" $NetBSD: gem.4,v 1.2 2003/02/14 15:20:18 grant Exp $ 2cc264d00SThomas Moestl.\" 3cc264d00SThomas Moestl.\" Copyright (c) 2002 The NetBSD Foundation, Inc. 4cc264d00SThomas Moestl.\" All rights reserved. 5cc264d00SThomas Moestl.\" 6cc264d00SThomas Moestl.\" Redistribution and use in source and binary forms, with or without 7cc264d00SThomas Moestl.\" modification, are permitted provided that the following conditions 8cc264d00SThomas Moestl.\" are met: 9cc264d00SThomas Moestl.\" 1. Redistributions of source code must retain the above copyright 10cc264d00SThomas Moestl.\" notice, this list of conditions and the following disclaimer. 11cc264d00SThomas Moestl.\" 2. Redistributions in binary form must reproduce the above copyright 12cc264d00SThomas Moestl.\" notice, this list of conditions and the following disclaimer in the 13cc264d00SThomas Moestl.\" documentation and/or other materials provided with the distribution. 14cc264d00SThomas Moestl.\" 3. All advertising materials mentioning features or use of this software 15cc264d00SThomas Moestl.\" must display the following acknowledgement: 16cc264d00SThomas Moestl.\" This product includes software developed by the NetBSD 17cc264d00SThomas Moestl.\" Foundation, Inc. and its contributors. 18cc264d00SThomas Moestl.\" 4. Neither the name of The NetBSD Foundation nor the names of its 19cc264d00SThomas Moestl.\" contributors may be used to endorse or promote products derived 20cc264d00SThomas Moestl.\" from this software without specific prior written permission. 21cc264d00SThomas Moestl.\" 22cc264d00SThomas Moestl.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 23cc264d00SThomas Moestl.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 24cc264d00SThomas Moestl.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 25cc264d00SThomas Moestl.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 26cc264d00SThomas Moestl.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 27cc264d00SThomas Moestl.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 28cc264d00SThomas Moestl.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 29cc264d00SThomas Moestl.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 30cc264d00SThomas Moestl.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 31cc264d00SThomas Moestl.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32cc264d00SThomas Moestl.\" POSSIBILITY OF SUCH DAMAGE. 33cc264d00SThomas Moestl.\" 3401ddd31fSRuslan Ermilov.\" $FreeBSD$ 3501ddd31fSRuslan Ermilov.\" 361ed3fed7SMarius Strobl.Dd September 26, 2007 37cc264d00SThomas Moestl.Dt GEM 4 38cc264d00SThomas Moestl.Os 39cc264d00SThomas Moestl.Sh NAME 40cc264d00SThomas Moestl.Nm gem 41cc264d00SThomas Moestl.Nd ERI/GEM/GMAC Ethernet device driver 42cc264d00SThomas Moestl.Sh SYNOPSIS 4313311d23SMarius StroblTo compile this driver into the kernel, 4413311d23SMarius Stroblplace the following lines in your 4513311d23SMarius Stroblkernel configuration file: 4613311d23SMarius Strobl.Bd -ragged -offset indent 47cc264d00SThomas Moestl.Cd "device miibus" 48cc264d00SThomas Moestl.Cd "device gem" 4913311d23SMarius Strobl.Ed 5013311d23SMarius Strobl.Pp 5113311d23SMarius StroblAlternatively, to load the driver as a 5213311d23SMarius Stroblmodule at boot time, place the following line in 5313311d23SMarius Strobl.Xr loader.conf 5 : 5413311d23SMarius Strobl.Bd -literal -offset indent 5513311d23SMarius Stroblif_gem_load="YES" 5613311d23SMarius Strobl.Ed 57cc264d00SThomas Moestl.Sh DESCRIPTION 58cc264d00SThomas MoestlThe 59cc264d00SThomas Moestl.Nm 60cc264d00SThomas Moestldriver provides support for the GMac Ethernet hardware found mostly in 61cc264d00SThomas Moestlthe last Apple PowerBooks G3s and most G4-based Apple hardware, as 62cc264d00SThomas Moestlwell as many Sun UltraSPARCs. 6370a310e2SSimon L. B. Nielsen.Sh HARDWARE 64cc264d00SThomas Moestl.Pp 65092f607dSMarius StroblChips supported by the 6670a310e2SSimon L. B. Nielsen.Nm 6770a310e2SSimon L. B. Nielsendriver include: 6870a310e2SSimon L. B. Nielsen.Pp 6970a310e2SSimon L. B. Nielsen.Bl -bullet -compact 70cc264d00SThomas Moestl.It 71092f607dSMarius StroblApple GMAC 72cc264d00SThomas Moestl.It 7383e76ab9SMarius StroblSun ERI 10/100 Mbps Ethernet 74cc264d00SThomas Moestl.It 75092f607dSMarius StroblSun GEM Gigabit Ethernet 76cc264d00SThomas Moestl.El 771ed3fed7SMarius Strobl.Pp 781ed3fed7SMarius StroblThe 791ed3fed7SMarius Stroblfollowing add-on cards are known to work with the 801ed3fed7SMarius Strobl.Nm 811ed3fed7SMarius Strobldriver at this time: 821ed3fed7SMarius Strobl.Pp 831ed3fed7SMarius Strobl.Bl -bullet -compact 841ed3fed7SMarius Strobl.It 851ed3fed7SMarius StroblSun Gigabit Ethernet PCI 2.0/3.0 (GBE/P) 861ed3fed7SMarius Strobl(part no.\& 501-4373) 871ed3fed7SMarius Strobl.El 8883e76ab9SMarius Strobl.Sh NOTES 8983e76ab9SMarius StroblOn sparc64 the 9083e76ab9SMarius Strobl.Nm 9183e76ab9SMarius Strobldriver respects the 9283e76ab9SMarius Strobl.Va local-mac-address? 9383e76ab9SMarius Stroblsystem configuration variable which can be set in the Open Firmware boot 9483e76ab9SMarius Stroblmonitor using the 9583e76ab9SMarius Strobl.Ic setenv 9683e76ab9SMarius Stroblcommand or by 9783e76ab9SMarius Strobl.Xr eeprom 8 . 9883e76ab9SMarius StroblIf set to 9983e76ab9SMarius Strobl.Dq Li false 10083e76ab9SMarius Strobl(the default), the 10183e76ab9SMarius Strobl.Nm 10283e76ab9SMarius Strobldriver will use the system's default MAC address for all of its devices. 10383e76ab9SMarius StroblIf set to 10483e76ab9SMarius Strobl.Dq Li true , 10583e76ab9SMarius Stroblthe unique MAC address of each interface is used if present rather than 10683e76ab9SMarius Stroblthe system's default MAC address. 10783e76ab9SMarius Strobl.Pp 10883e76ab9SMarius StroblSupported interfaces having their own MAC address include the on-board 109092f607dSMarius StroblSun ERI 10/100 Mbps on boards equipped with more than one Ethernet interface 110092f607dSMarius Strobland the Sun Gigabit Ethernet 2.0/3.0 GBE add-on cards. 111092f607dSMarius Strobl.Sh CAVEATS 112092f607dSMarius StroblCurrently the 113092f607dSMarius Strobl.Nm 1141ed3fed7SMarius Strobldriver fails to attach to Sun Gigabit Ethernet SBus 2.0/3.0 (GBE/S) cards, 115092f607dSMarius Stroblas no SBus front-end has been written so far. 116cc264d00SThomas Moestl.Sh SEE ALSO 11722e1a9d5SChristian Brueffer.Xr altq 4 , 118cc264d00SThomas Moestl.Xr hme 4 , 119cc264d00SThomas Moestl.Xr miibus 4 , 120cc264d00SThomas Moestl.Xr netintro 4 , 12183e76ab9SMarius Strobl.Xr eeprom 8 , 122cc264d00SThomas Moestl.Xr ifconfig 8 123cc264d00SThomas Moestl.Sh HISTORY 124cc264d00SThomas MoestlThe 125cc264d00SThomas Moestl.Nm 126cc264d00SThomas Moestldevice driver appeared in 127cc264d00SThomas Moestl.Nx 1.6 . 128cc264d00SThomas MoestlThe first 129cc264d00SThomas Moestl.Fx 130cc264d00SThomas Moestlversion to include it was 131cc264d00SThomas Moestl.Fx 5.0 . 132cc264d00SThomas Moestl.Sh AUTHORS 13301ddd31fSRuslan Ermilov.An -nosplit 134cc264d00SThomas MoestlThe 135cc264d00SThomas Moestl.Nm 136cc264d00SThomas Moestldriver was written by 137cc264d00SThomas Moestl.An Eduardo Horvath 138cc264d00SThomas Moestl.Aq eeh@NetBSD.org . 139cc264d00SThomas MoestlThe man page was written by 140cc264d00SThomas Moestl.An Thomas Klausner 141cc264d00SThomas Moestl.Aq wiz@NetBSD.org . 142