xref: /freebsd/share/man/man4/man4.powerpc/tsec.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
19e8894a0SRafal Jaworowski.\"
29e8894a0SRafal Jaworowski.\" Copyright (c) 2009 Semihalf, Rafal Jaworowski
39e8894a0SRafal Jaworowski.\"
49e8894a0SRafal Jaworowski.\" All rights reserved.
59e8894a0SRafal Jaworowski.\"
69e8894a0SRafal Jaworowski.\" Redistribution and use in source and binary forms, with or without
79e8894a0SRafal Jaworowski.\" modification, are permitted provided that the following conditions
89e8894a0SRafal Jaworowski.\" are met:
99e8894a0SRafal Jaworowski.\" 1. Redistributions of source code must retain the above copyright
109e8894a0SRafal Jaworowski.\"    notice, this list of conditions and the following disclaimer.
119e8894a0SRafal Jaworowski.\" 2. Redistributions in binary form must reproduce the above copyright
129e8894a0SRafal Jaworowski.\"    notice, this list of conditions and the following disclaimer in the
139e8894a0SRafal Jaworowski.\"    documentation and/or other materials provided with the distribution.
149e8894a0SRafal Jaworowski.\"
159e8894a0SRafal Jaworowski.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
169e8894a0SRafal Jaworowski.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
179e8894a0SRafal Jaworowski.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
189e8894a0SRafal Jaworowski.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
199e8894a0SRafal Jaworowski.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
209e8894a0SRafal Jaworowski.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
219e8894a0SRafal Jaworowski.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
229e8894a0SRafal Jaworowski.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
239e8894a0SRafal Jaworowski.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
249e8894a0SRafal Jaworowski.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
259e8894a0SRafal Jaworowski.\"
26*f5f2c69bSChristian Brueffer.Dd February 20, 2015
279e8894a0SRafal Jaworowski.Dt TSEC 4
289e8894a0SRafal Jaworowski.Os
299e8894a0SRafal Jaworowski.Sh NAME
309e8894a0SRafal Jaworowski.Nm tsec
319e8894a0SRafal Jaworowski.Nd "Freescale Three-Speed Ethernet Controller device driver"
329e8894a0SRafal Jaworowski.Sh SYNOPSIS
339e8894a0SRafal JaworowskiTo compile this driver into the kernel, place the following lines in your
349e8894a0SRafal Jaworowskikernel configuration file:
359e8894a0SRafal Jaworowski.Bd -ragged -offset indent
369e8894a0SRafal Jaworowski.Cd "device tsec"
379e8894a0SRafal Jaworowski.Cd "device miibus"
389e8894a0SRafal Jaworowski.Ed
399e8894a0SRafal Jaworowski.Sh DESCRIPTION
409e8894a0SRafal JaworowskiThe
419e8894a0SRafal Jaworowski.Nm
429e8894a0SRafal Jaworowskidriver provides support for the gigabit Ethernet controller integrated in
439e8894a0SRafal Jaworowskisome of the Freescale system-on-chip devices.
449e8894a0SRafal Jaworowski.Pp
459e8894a0SRafal JaworowskiThe
469e8894a0SRafal Jaworowski.Nm
479e8894a0SRafal Jaworowskidriver supports the following media types:
489e8894a0SRafal Jaworowski.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
499e8894a0SRafal Jaworowski.It autoselect
509e8894a0SRafal JaworowskiEnable autoselection of the media type and options
519e8894a0SRafal Jaworowski.It 10baseT/UTP
529e8894a0SRafal JaworowskiSet 10Mbps operation
539e8894a0SRafal Jaworowski.It 100baseTX
549e8894a0SRafal JaworowskiSet 100Mbps operation
559e8894a0SRafal Jaworowski.It 1000baseT
569e8894a0SRafal JaworowskiSet 1000baseT operation
579e8894a0SRafal Jaworowski.El
589e8894a0SRafal Jaworowski.Pp
599e8894a0SRafal JaworowskiThe
609e8894a0SRafal Jaworowski.Nm
619e8894a0SRafal Jaworowskidriver supports the following media options:
629e8894a0SRafal Jaworowski.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
639e8894a0SRafal Jaworowski.It full-duplex
649e8894a0SRafal JaworowskiSet full duplex operation
659e8894a0SRafal Jaworowski.El
669e8894a0SRafal Jaworowski.Pp
679e8894a0SRafal JaworowskiThe
689e8894a0SRafal Jaworowski.Nm
699e8894a0SRafal Jaworowskidriver supports polled operation when the system is configured with
709e8894a0SRafal JaworowskiDEVICE_POLLING kernel option, see
719e8894a0SRafal Jaworowski.Xr polling 4
729e8894a0SRafal Jaworowskifor more details.
739e8894a0SRafal Jaworowski.Pp
749e8894a0SRafal JaworowskiThe
759e8894a0SRafal Jaworowski.Nm
769e8894a0SRafal Jaworowskidriver supports reception and transmission of extended frames
779e8894a0SRafal Jaworowskifor
789e8894a0SRafal Jaworowski.Xr vlan 4 .
799e8894a0SRafal JaworowskiThis capability of
809e8894a0SRafal Jaworowski.Nm
819e8894a0SRafal Jaworowskican be controlled by means of the
829e8894a0SRafal Jaworowski.Cm vlanmtu
839e8894a0SRafal Jaworowskiparameter
849e8894a0SRafal Jaworowskito
859e8894a0SRafal Jaworowski.Xr ifconfig 8 .
869e8894a0SRafal Jaworowski.Pp
879e8894a0SRafal JaworowskiThe
889e8894a0SRafal Jaworowski.Nm
899e8894a0SRafal Jaworowskidriver supports interrupts coalescing (IC) so that raising a transmit/receive
909e8894a0SRafal Jaworowskiframe interrupt is delayed, if possible, until a threshold-defined period of
919e8894a0SRafal Jaworowskitime has elapsed, or a threshold-defined frame counter has been reached
92*f5f2c69bSChristian Brueffer(whichever occurs first).
93*f5f2c69bSChristian BruefferThe following sysctls regulate this behaviour:
949e8894a0SRafal Jaworowski.Bl -tag -width indent
959e8894a0SRafal Jaworowski.It Va dev.tsec.X.int_coal.rx_time
969e8894a0SRafal Jaworowski.It Va dev.tsec.X.int_coal.rx_count
979e8894a0SRafal Jaworowski.It Va dev.tsec.X.int_coal.tx_time
989e8894a0SRafal Jaworowski.It Va dev.tsec.X.int_coal.tx_count
999e8894a0SRafal Jaworowski.Pp
100*f5f2c69bSChristian BruefferValue of 0 for either time or count disables IC on the given path.
101*f5f2c69bSChristian BruefferTime value
1029e8894a0SRafal Jaworowski1-65535 corresponds to a real time period and is expressed in units equivalent
103*f5f2c69bSChristian Bruefferto 64 ticks of the TSEC clock.
104*f5f2c69bSChristian BruefferCount 1-255 represents the number of frames
105*f5f2c69bSChristian Brueffer(note that value of 1 is equivalent to IC disabled).
106*f5f2c69bSChristian BruefferUser provided values
107*f5f2c69bSChristian Bruefferlarger than supported will be trimmed to the maximum supported.
108*f5f2c69bSChristian BruefferMore details
1099e8894a0SRafal Jaworowskiare available in the reference manual of the device.
1109e8894a0SRafal Jaworowski.El
1119e8894a0SRafal Jaworowski.Sh HARDWARE
1129e8894a0SRafal JaworowskiGigabit Ethernet controllers built into the following Freescale
1139e8894a0SRafal Jaworowskisystem-on-chip devices are known to work with the
1149e8894a0SRafal Jaworowski.Nm
1159e8894a0SRafal Jaworowskidriver:
1169e8894a0SRafal Jaworowski.Pp
1179e8894a0SRafal Jaworowski.Bl -bullet -compact
1189e8894a0SRafal Jaworowski.It
1199e8894a0SRafal JaworowskiMPC8349
1209e8894a0SRafal Jaworowski.It
1219e8894a0SRafal JaworowskiMPC8533, MPC8541, MPC8555
1229e8894a0SRafal Jaworowski.El
1239e8894a0SRafal Jaworowski.Pp
1249e8894a0SRafal JaworowskiThe enhanced version of the controller (eTSEC), integrated in the following
1259e8894a0SRafal Jaworowskidevices, is also supported by this driver:
1269e8894a0SRafal Jaworowski.Pp
1279e8894a0SRafal Jaworowski.Bl -bullet -compact
1289e8894a0SRafal Jaworowski.It
1299e8894a0SRafal JaworowskiMPC8548, MPC8572
1309e8894a0SRafal Jaworowski.El
1319e8894a0SRafal Jaworowski.Sh SEE ALSO
1329e8894a0SRafal Jaworowski.Xr altq 4 ,
1339e8894a0SRafal Jaworowski.Xr arp 4 ,
1349e8894a0SRafal Jaworowski.Xr miibus 4 ,
1359e8894a0SRafal Jaworowski.Xr netintro 4 ,
1369e8894a0SRafal Jaworowski.Xr ng_ether 4 ,
1379e8894a0SRafal Jaworowski.Xr polling 4 ,
1389e8894a0SRafal Jaworowski.Xr vlan 4 ,
1399e8894a0SRafal Jaworowski.Xr ifconfig 8
1409e8894a0SRafal Jaworowski.Sh HISTORY
1419e8894a0SRafal JaworowskiThe
1429e8894a0SRafal Jaworowski.Nm
1439e8894a0SRafal Jaworowskidevice driver first appeared in
1449e8894a0SRafal Jaworowski.Fx 8.0 .
1459e8894a0SRafal Jaworowski.Sh AUTHORS
1469e8894a0SRafal Jaworowski.An -nosplit
1479e8894a0SRafal JaworowskiThe base version of
1489e8894a0SRafal Jaworowski.Nm
1499e8894a0SRafal Jaworowskidevice driver was written by
1509e8894a0SRafal Jaworowski.An Piotr Kruszynski .
1519e8894a0SRafal JaworowskiIt has been extended with polling and interrupt coalescing support by
1529e8894a0SRafal Jaworowski.An Rafal Jaworowski .
1539e8894a0SRafal JaworowskiIt has been further enhanced with multicast, h/w checksum calculation and vlan
1549e8894a0SRafal Jaworowskisupport by
1559e8894a0SRafal Jaworowski.An Piotr Ziecik .
1569e8894a0SRafal JaworowskiThis manual page was written by
1579e8894a0SRafal Jaworowski.An Rafal Jaworowski .
158