xref: /freebsd/share/man/man4/man4.arm/mge.4 (revision eb49a6d366f391bf87e2a18513a7f64934c8db50)
1916c41e0SRafal Jaworowski.\"
2916c41e0SRafal Jaworowski.\" Copyright (c) 2008 Semihalf, Rafal Jaworowski
3916c41e0SRafal Jaworowski.\"
4916c41e0SRafal Jaworowski.\" All rights reserved.
5916c41e0SRafal Jaworowski.\"
6916c41e0SRafal Jaworowski.\" Redistribution and use in source and binary forms, with or without
7916c41e0SRafal Jaworowski.\" modification, are permitted provided that the following conditions
8916c41e0SRafal Jaworowski.\" are met:
9916c41e0SRafal Jaworowski.\" 1. Redistributions of source code must retain the above copyright
10916c41e0SRafal Jaworowski.\"    notice, this list of conditions and the following disclaimer.
11916c41e0SRafal Jaworowski.\" 2. Redistributions in binary form must reproduce the above copyright
12916c41e0SRafal Jaworowski.\"    notice, this list of conditions and the following disclaimer in the
13916c41e0SRafal Jaworowski.\"    documentation and/or other materials provided with the distribution.
14916c41e0SRafal Jaworowski.\"
15916c41e0SRafal Jaworowski.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
16916c41e0SRafal Jaworowski.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17916c41e0SRafal Jaworowski.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18916c41e0SRafal Jaworowski.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19916c41e0SRafal Jaworowski.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20916c41e0SRafal Jaworowski.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21916c41e0SRafal Jaworowski.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22916c41e0SRafal Jaworowski.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23916c41e0SRafal Jaworowski.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24916c41e0SRafal Jaworowski.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25916c41e0SRafal Jaworowski.\"
26916c41e0SRafal Jaworowski.\" $FreeBSD$
27916c41e0SRafal Jaworowski.\"
28916c41e0SRafal Jaworowski.Dd November 27, 2008
29916c41e0SRafal Jaworowski.Dt MGE 4
30916c41e0SRafal Jaworowski.Os
31916c41e0SRafal Jaworowski.Sh NAME
32916c41e0SRafal Jaworowski.Nm mge
33916c41e0SRafal Jaworowski.Nd "Marvell Gigabit Ethernet device driver"
34916c41e0SRafal Jaworowski.Sh SYNOPSIS
35916c41e0SRafal JaworowskiTo compile this driver into the kernel, place the following lines in your
36916c41e0SRafal Jaworowskikernel configuration file:
37916c41e0SRafal Jaworowski.Bd -ragged -offset indent
38916c41e0SRafal Jaworowski.Cd "device mge"
39916c41e0SRafal Jaworowski.Cd "device miibus"
40916c41e0SRafal Jaworowski.Ed
41916c41e0SRafal Jaworowski.Sh DESCRIPTION
42916c41e0SRafal JaworowskiThe
43916c41e0SRafal Jaworowski.Nm
44916c41e0SRafal Jaworowskidriver provides support for gigabit Ethernet controller integrated in Marvell
45916c41e0SRafal Jaworowskisystem-on-chip devices.
46916c41e0SRafal Jaworowski.Pp
47916c41e0SRafal JaworowskiThe
48916c41e0SRafal Jaworowski.Nm
49916c41e0SRafal Jaworowskidriver supports the following media types:
50916c41e0SRafal Jaworowski.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
51916c41e0SRafal Jaworowski.It autoselect
52916c41e0SRafal JaworowskiEnable autoselection of the media type and options
53916c41e0SRafal Jaworowski.It 10baseT/UTP
54916c41e0SRafal JaworowskiSet 10Mbps operation
55916c41e0SRafal Jaworowski.It 100baseTX
56916c41e0SRafal JaworowskiSet 100Mbps operation
57916c41e0SRafal Jaworowski.It 1000baseT
58916c41e0SRafal JaworowskiSet 1000baseT operation
59916c41e0SRafal Jaworowski.El
60916c41e0SRafal Jaworowski.Pp
61916c41e0SRafal JaworowskiThe
62916c41e0SRafal Jaworowski.Nm
63916c41e0SRafal Jaworowskidriver supports the following media options:
64916c41e0SRafal Jaworowski.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
65916c41e0SRafal Jaworowski.It full-duplex
66916c41e0SRafal JaworowskiSet full duplex operation
67916c41e0SRafal Jaworowski.El
68916c41e0SRafal Jaworowski.Pp
69916c41e0SRafal JaworowskiThe
70916c41e0SRafal Jaworowski.Nm
71916c41e0SRafal Jaworowskidriver supports polled operation when the system is configured with
72916c41e0SRafal JaworowskiDEVICE_POLLING kernel option, see
73916c41e0SRafal Jaworowski.Xr polling 4
74916c41e0SRafal Jaworowskifor more details.
75916c41e0SRafal Jaworowski.Pp
76916c41e0SRafal JaworowskiThe
77916c41e0SRafal Jaworowski.Nm
78916c41e0SRafal Jaworowskidriver supports reception and transmission of extended frames
79916c41e0SRafal Jaworowskifor
80916c41e0SRafal Jaworowski.Xr vlan 4 .
81916c41e0SRafal JaworowskiThis capability of
82916c41e0SRafal Jaworowski.Nm
83916c41e0SRafal Jaworowskican be controlled by means of the
84916c41e0SRafal Jaworowski.Cm vlanmtu
85916c41e0SRafal Jaworowskiparameter
86916c41e0SRafal Jaworowskito
87916c41e0SRafal Jaworowski.Xr ifconfig 8 .
88916c41e0SRafal Jaworowski.Pp
89916c41e0SRafal JaworowskiThe
90916c41e0SRafal Jaworowski.Nm
91916c41e0SRafal Jaworowskidriver supports interrupts coalescing (IC) so that raising a transmit/receive
92916c41e0SRafal Jaworowskiframe interrupt is delayed, if possible, until a threshold-defined period of
93*eb49a6d3SEdward Tomasz Napieralatime has elapsed.
94*eb49a6d3SEdward Tomasz NapieralaThe following sysctls regulate this behaviour (separately for each path):
95916c41e0SRafal Jaworowski.Bl -tag -width indent
96916c41e0SRafal Jaworowski.It Va dev.mge.X.int_coal.rx_time
97916c41e0SRafal Jaworowski.It Va dev.mge.X.int_coal.tx_time
98916c41e0SRafal Jaworowski.Pp
99916c41e0SRafal JaworowskiValue of 0 disables IC on the given path, value greater than zero corresponds
100916c41e0SRafal Jaworowskito a real time period and is expressed in units equivalent to 64 ticks of the
101*eb49a6d3SEdward Tomasz NapieralaMGE clock.
102*eb49a6d3SEdward Tomasz NapieralaMaximum allowed value depends on MGE hardware revision.
103*eb49a6d3SEdward Tomasz NapieralaUser provided values larger than supported will be trimmed to the maximum
104*eb49a6d3SEdward Tomasz Napieralasupported.
105*eb49a6d3SEdward Tomasz NapieralaMore details are available in the reference manual of the device.
106916c41e0SRafal Jaworowski.El
107916c41e0SRafal Jaworowski.Sh HARDWARE
108916c41e0SRafal JaworowskiGigabit Ethernet controllers built into the following Marvell systems-on-chip
109916c41e0SRafal Jaworowskiare known to work with the
110916c41e0SRafal Jaworowski.Nm
111916c41e0SRafal Jaworowskidriver:
112916c41e0SRafal Jaworowski.Pp
113916c41e0SRafal Jaworowski.Bl -bullet -compact
114916c41e0SRafal Jaworowski.It
115916c41e0SRafal JaworowskiOrion 88F5182
116916c41e0SRafal Jaworowski.It
117916c41e0SRafal JaworowskiOrion 88F5281
118916c41e0SRafal Jaworowski.It
119916c41e0SRafal JaworowskiKirkwood 88F6281 (MGE V2)
120916c41e0SRafal Jaworowski.It
121916c41e0SRafal JaworowskiDiscovery MV78100 (MGE V2)
122916c41e0SRafal Jaworowski.El
123916c41e0SRafal Jaworowski.Pp
124916c41e0SRafal JaworowskiThere are also Marvell system controllers for PowerPC processors, which
125916c41e0SRafal Jaworowskiinclude a variation of this gigabit Ethernet module integrated on chip, and
126916c41e0SRafal Jaworowskithey should also work with the
127916c41e0SRafal Jaworowski.Nm
128916c41e0SRafal Jaworowskidriver, but this wasn't tested:
129916c41e0SRafal Jaworowski.Pp
130916c41e0SRafal Jaworowski.Bl -bullet -compact
131916c41e0SRafal Jaworowski.It
132916c41e0SRafal JaworowskiMV64430
133916c41e0SRafal Jaworowski.It
134916c41e0SRafal JaworowskiMV64460, MV64461, MV64462
135916c41e0SRafal Jaworowski.El
136916c41e0SRafal Jaworowski.Sh SEE ALSO
137916c41e0SRafal Jaworowski.Xr altq 4 ,
138916c41e0SRafal Jaworowski.Xr arp 4 ,
139916c41e0SRafal Jaworowski.Xr miibus 4 ,
140916c41e0SRafal Jaworowski.Xr netintro 4 ,
141916c41e0SRafal Jaworowski.Xr ng_ether 4 ,
142916c41e0SRafal Jaworowski.Xr polling 4 ,
143916c41e0SRafal Jaworowski.Xr vlan 4 ,
144916c41e0SRafal Jaworowski.Xr ifconfig 8
145916c41e0SRafal Jaworowski.Sh HISTORY
146916c41e0SRafal JaworowskiThe
147916c41e0SRafal Jaworowski.Nm
148916c41e0SRafal Jaworowskidevice driver first appeared in
149916c41e0SRafal Jaworowski.Fx 8.0 .
150916c41e0SRafal Jaworowski.Sh AUTHORS
151916c41e0SRafal Jaworowski.An -nosplit
152916c41e0SRafal JaworowskiThe base version of
153916c41e0SRafal Jaworowski.Nm
154916c41e0SRafal Jaworowskidevice driver was written by
155916c41e0SRafal Jaworowski.An Grzegorz Bernacki.
156916c41e0SRafal JaworowskiIt has been extended with advanced features (polling, interrupt coalescing,
157916c41e0SRafal Jaworowskimulticast, h/w checksum calculation etc.) by
158916c41e0SRafal Jaworowski.An Piotr Ziecik .
159916c41e0SRafal JaworowskiThis manual page was written by
160916c41e0SRafal Jaworowski.An Rafal Jaworowski .
161