xref: /freebsd/share/man/man4/man4.arm/mge.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
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.Dd November 27, 2008
27916c41e0SRafal Jaworowski.Dt MGE 4
28916c41e0SRafal Jaworowski.Os
29916c41e0SRafal Jaworowski.Sh NAME
30916c41e0SRafal Jaworowski.Nm mge
31916c41e0SRafal Jaworowski.Nd "Marvell Gigabit Ethernet device driver"
32916c41e0SRafal Jaworowski.Sh SYNOPSIS
33916c41e0SRafal JaworowskiTo compile this driver into the kernel, place the following lines in your
34916c41e0SRafal Jaworowskikernel configuration file:
35916c41e0SRafal Jaworowski.Bd -ragged -offset indent
36916c41e0SRafal Jaworowski.Cd "device mge"
37916c41e0SRafal Jaworowski.Cd "device miibus"
38916c41e0SRafal Jaworowski.Ed
39916c41e0SRafal Jaworowski.Sh DESCRIPTION
40916c41e0SRafal JaworowskiThe
41916c41e0SRafal Jaworowski.Nm
42916c41e0SRafal Jaworowskidriver provides support for gigabit Ethernet controller integrated in Marvell
43916c41e0SRafal Jaworowskisystem-on-chip devices.
44916c41e0SRafal Jaworowski.Pp
45916c41e0SRafal JaworowskiThe
46916c41e0SRafal Jaworowski.Nm
47916c41e0SRafal Jaworowskidriver supports the following media types:
48916c41e0SRafal Jaworowski.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
49916c41e0SRafal Jaworowski.It autoselect
50916c41e0SRafal JaworowskiEnable autoselection of the media type and options
51916c41e0SRafal Jaworowski.It 10baseT/UTP
52916c41e0SRafal JaworowskiSet 10Mbps operation
53916c41e0SRafal Jaworowski.It 100baseTX
54916c41e0SRafal JaworowskiSet 100Mbps operation
55916c41e0SRafal Jaworowski.It 1000baseT
56916c41e0SRafal JaworowskiSet 1000baseT operation
57916c41e0SRafal Jaworowski.El
58916c41e0SRafal Jaworowski.Pp
59916c41e0SRafal JaworowskiThe
60916c41e0SRafal Jaworowski.Nm
61916c41e0SRafal Jaworowskidriver supports the following media options:
62916c41e0SRafal Jaworowski.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
63916c41e0SRafal Jaworowski.It full-duplex
64916c41e0SRafal JaworowskiSet full duplex operation
65916c41e0SRafal Jaworowski.El
66916c41e0SRafal Jaworowski.Pp
67916c41e0SRafal JaworowskiThe
68916c41e0SRafal Jaworowski.Nm
69916c41e0SRafal Jaworowskidriver supports polled operation when the system is configured with
70916c41e0SRafal JaworowskiDEVICE_POLLING kernel option, see
71916c41e0SRafal Jaworowski.Xr polling 4
72916c41e0SRafal Jaworowskifor more details.
73916c41e0SRafal Jaworowski.Pp
74916c41e0SRafal JaworowskiThe
75916c41e0SRafal Jaworowski.Nm
76916c41e0SRafal Jaworowskidriver supports reception and transmission of extended frames
77916c41e0SRafal Jaworowskifor
78916c41e0SRafal Jaworowski.Xr vlan 4 .
79916c41e0SRafal JaworowskiThis capability of
80916c41e0SRafal Jaworowski.Nm
81916c41e0SRafal Jaworowskican be controlled by means of the
82916c41e0SRafal Jaworowski.Cm vlanmtu
83916c41e0SRafal Jaworowskiparameter
84916c41e0SRafal Jaworowskito
85916c41e0SRafal Jaworowski.Xr ifconfig 8 .
86916c41e0SRafal Jaworowski.Pp
87916c41e0SRafal JaworowskiThe
88916c41e0SRafal Jaworowski.Nm
89916c41e0SRafal Jaworowskidriver supports interrupts coalescing (IC) so that raising a transmit/receive
90916c41e0SRafal Jaworowskiframe interrupt is delayed, if possible, until a threshold-defined period of
91*eb49a6d3SEdward Tomasz Napieralatime has elapsed.
92*eb49a6d3SEdward Tomasz NapieralaThe following sysctls regulate this behaviour (separately for each path):
93916c41e0SRafal Jaworowski.Bl -tag -width indent
94916c41e0SRafal Jaworowski.It Va dev.mge.X.int_coal.rx_time
95916c41e0SRafal Jaworowski.It Va dev.mge.X.int_coal.tx_time
96916c41e0SRafal Jaworowski.Pp
97916c41e0SRafal JaworowskiValue of 0 disables IC on the given path, value greater than zero corresponds
98916c41e0SRafal Jaworowskito a real time period and is expressed in units equivalent to 64 ticks of the
99*eb49a6d3SEdward Tomasz NapieralaMGE clock.
100*eb49a6d3SEdward Tomasz NapieralaMaximum allowed value depends on MGE hardware revision.
101*eb49a6d3SEdward Tomasz NapieralaUser provided values larger than supported will be trimmed to the maximum
102*eb49a6d3SEdward Tomasz Napieralasupported.
103*eb49a6d3SEdward Tomasz NapieralaMore details are available in the reference manual of the device.
104916c41e0SRafal Jaworowski.El
105916c41e0SRafal Jaworowski.Sh HARDWARE
106916c41e0SRafal JaworowskiGigabit Ethernet controllers built into the following Marvell systems-on-chip
107916c41e0SRafal Jaworowskiare known to work with the
108916c41e0SRafal Jaworowski.Nm
109916c41e0SRafal Jaworowskidriver:
110916c41e0SRafal Jaworowski.Pp
111916c41e0SRafal Jaworowski.Bl -bullet -compact
112916c41e0SRafal Jaworowski.It
113916c41e0SRafal JaworowskiOrion 88F5182
114916c41e0SRafal Jaworowski.It
115916c41e0SRafal JaworowskiOrion 88F5281
116916c41e0SRafal Jaworowski.It
117916c41e0SRafal JaworowskiKirkwood 88F6281 (MGE V2)
118916c41e0SRafal Jaworowski.It
119916c41e0SRafal JaworowskiDiscovery MV78100 (MGE V2)
120916c41e0SRafal Jaworowski.El
121916c41e0SRafal Jaworowski.Pp
122916c41e0SRafal JaworowskiThere are also Marvell system controllers for PowerPC processors, which
123916c41e0SRafal Jaworowskiinclude a variation of this gigabit Ethernet module integrated on chip, and
124916c41e0SRafal Jaworowskithey should also work with the
125916c41e0SRafal Jaworowski.Nm
126916c41e0SRafal Jaworowskidriver, but this wasn't tested:
127916c41e0SRafal Jaworowski.Pp
128916c41e0SRafal Jaworowski.Bl -bullet -compact
129916c41e0SRafal Jaworowski.It
130916c41e0SRafal JaworowskiMV64430
131916c41e0SRafal Jaworowski.It
132916c41e0SRafal JaworowskiMV64460, MV64461, MV64462
133916c41e0SRafal Jaworowski.El
134916c41e0SRafal Jaworowski.Sh SEE ALSO
135916c41e0SRafal Jaworowski.Xr altq 4 ,
136916c41e0SRafal Jaworowski.Xr arp 4 ,
137916c41e0SRafal Jaworowski.Xr miibus 4 ,
138916c41e0SRafal Jaworowski.Xr netintro 4 ,
139916c41e0SRafal Jaworowski.Xr ng_ether 4 ,
140916c41e0SRafal Jaworowski.Xr polling 4 ,
141916c41e0SRafal Jaworowski.Xr vlan 4 ,
142916c41e0SRafal Jaworowski.Xr ifconfig 8
143916c41e0SRafal Jaworowski.Sh HISTORY
144916c41e0SRafal JaworowskiThe
145916c41e0SRafal Jaworowski.Nm
146916c41e0SRafal Jaworowskidevice driver first appeared in
147916c41e0SRafal Jaworowski.Fx 8.0 .
148916c41e0SRafal Jaworowski.Sh AUTHORS
149916c41e0SRafal Jaworowski.An -nosplit
150916c41e0SRafal JaworowskiThe base version of
151916c41e0SRafal Jaworowski.Nm
152916c41e0SRafal Jaworowskidevice driver was written by
153916c41e0SRafal Jaworowski.An Grzegorz Bernacki.
154916c41e0SRafal JaworowskiIt has been extended with advanced features (polling, interrupt coalescing,
155916c41e0SRafal Jaworowskimulticast, h/w checksum calculation etc.) by
156916c41e0SRafal Jaworowski.An Piotr Ziecik .
157916c41e0SRafal JaworowskiThis manual page was written by
158916c41e0SRafal Jaworowski.An Rafal Jaworowski .
159