xref: /openbsd-src/share/man/man4/gem.4 (revision 30cd3717f86c709debe28117979fba84115159b2)
1.\"	$OpenBSD: gem.4,v 1.20 2022/03/21 14:56:16 miod 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 $Mdocdate: March 21 2022 $
28.Dt GEM 4
29.Os
30.Sh NAME
31.Nm gem
32.Nd GEM 10/100/1Gb Ethernet device
33.Sh SYNOPSIS
34.Cd "gem* at pci?"
35.Cd "gem* at sbus?"
36.Cd "bmtphy* at mii?"
37.Cd "brgphy* at mii?"
38.Cd "eephy* at mii?"
39.Cd "gentbi* at mii?"
40.Cd "luphy* at mii?"
41.Cd "lxtphy* at mii?"
42.Sh DESCRIPTION
43The
44.Nm
45driver provides support for various NICs based on the GEM Ethernet controller
46chips, including the following:
47.Pp
48.Bl -bullet -compact -offset indent
49.It
50Apple GMAC (10/100/1000baseT)
51.It
52Sun ERI (10/100baseT)
53.It
54Sun GEM (10/100/1000baseT)
55.It
56Sun GEM (1000baseSX)
57.El
58.Pp
59It uses an external PHY or an external 10-bit interface.
60.Pp
61The
62.Nm
63driver supports several media types, which are selected via the
64.Xr ifconfig 8
65command.
66The supported media types are:
67.Bl -tag -width "media" -offset indent
68.It Cm media No autoselect
69Attempt to autoselect the media type (default)
70.It Cm media No 1000baseT Cm mediaopt No full-duplex
71Use 1000baseT on copper, full duplex
72.It Cm media No 1000baseT Cm mediaopt No half-duplex
73Use 1000baseT on copper, half duplex
74.It Cm media No 1000baseSX Cm mediaopt No full-duplex
75Use 1000baseSX on fiber, full duplex
76.It Cm media No 1000baseSX Cm mediaopt No half-duplex
77Use 1000baseSX on fiber, half duplex
78.It Cm media No 100baseTX Cm mediaopt No full-duplex
79Use 100baseTX, full duplex
80.It Cm media No 100baseTX Cm mediaopt No half-duplex
81Use 100baseTX, half duplex
82.It Cm media No 10baseT Cm mediaopt No full-duplex
83Use 10baseT, full duplex
84.It Cm media No 10baseT Cm mediaopt No half-duplex
85Use 10baseT, half duplex
86.El
87.Sh SEE ALSO
88.Xr arp 4 ,
89.Xr bmtphy 4 ,
90.Xr brgphy 4 ,
91.Xr eephy 4 ,
92.Xr gentbi 4 ,
93.Xr ifmedia 4 ,
94.Xr inet 4 ,
95.Xr intro 4 ,
96.Xr luphy 4 ,
97.Xr lxtphy 4 ,
98.Xr netintro 4 ,
99.Xr hostname.if 5 ,
100.Xr ifconfig 8
101.Sh HISTORY
102.Ox
103support for
104.Nm
105first appeared in
106.Ox 3.0 .
107