2006-12-13 02:37:01 +00:00
|
|
|
.\" Copyright (c) 2006 Pyun YongHyeon
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2011-05-23 22:02:15 +00:00
|
|
|
.Dd May 23, 2011
|
2006-12-13 02:37:01 +00:00
|
|
|
.Dt MSK 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm msk
|
|
|
|
.Nd Marvell/SysKonnect Yukon II Gigabit Ethernet adapter driver
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
To compile this driver into the kernel,
|
|
|
|
place the following lines in your
|
|
|
|
kernel configuration file:
|
|
|
|
.Bd -ragged -offset indent
|
|
|
|
.Cd "device miibus"
|
|
|
|
.Cd "device msk"
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Alternatively, to load the driver as a
|
|
|
|
module at boot time, place the following line in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
if_msk_load="YES"
|
|
|
|
.Ed
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
device driver provides support for various NICs based on the
|
|
|
|
Marvell/SysKonnect Yukon II Gigabit Ethernet controller chip.
|
|
|
|
.Pp
|
|
|
|
All NICs supported by the
|
|
|
|
.Nm
|
|
|
|
driver have TCP/UDP/IP checksum offload for transmit, TCP
|
2006-12-13 08:51:40 +00:00
|
|
|
segmentation offload (TSO), hardware VLAN tag stripping/insertion
|
|
|
|
features and an interrupt moderation mechanism as well as a 64-bit
|
2006-12-13 02:37:01 +00:00
|
|
|
multicast hash filter.
|
|
|
|
The Yukon II supports TBI (ten bit interface) and GMII
|
|
|
|
transceivers, which means it can be used with either copper or
|
|
|
|
1000baseX fiber applications.
|
|
|
|
.Pp
|
2007-07-01 09:42:47 +00:00
|
|
|
The Yukon II also supports Jumbo Frames (up to 9022 bytes), which can be
|
2006-12-13 02:37:01 +00:00
|
|
|
configured via the interface MTU setting.
|
|
|
|
Selecting an MTU larger than 1500 bytes with the
|
|
|
|
.Xr ifconfig 8
|
2007-07-01 09:42:47 +00:00
|
|
|
utility configures the adapter to receive and transmit Jumbo Frames.
|
2006-12-13 02:37:01 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver supports the following media types:
|
|
|
|
.Bl -tag -width ".Cm 10baseT/UTP"
|
|
|
|
.It Cm autoselect
|
|
|
|
Enable autoselection of the media type and options.
|
|
|
|
The user can manually override
|
|
|
|
the autoselected mode by adding media options to
|
|
|
|
.Xr rc.conf 5 .
|
|
|
|
.It Cm 10baseT/UTP
|
|
|
|
Set 10Mbps operation.
|
|
|
|
The
|
|
|
|
.Xr ifconfig 8
|
|
|
|
.Cm mediaopt
|
|
|
|
option can also be used to select either
|
|
|
|
.Cm full-duplex
|
|
|
|
or
|
|
|
|
.Cm half-duplex
|
|
|
|
modes.
|
|
|
|
.It Cm 100baseTX
|
|
|
|
Set 100Mbps (Fast Ethernet) operation.
|
|
|
|
The
|
|
|
|
.Xr ifconfig 8
|
|
|
|
.Cm mediaopt
|
|
|
|
option can also be used to select either
|
|
|
|
.Cm full-duplex
|
|
|
|
or
|
|
|
|
.Cm half-duplex
|
|
|
|
modes.
|
|
|
|
.It Cm 1000baseTX
|
|
|
|
Set 1000baseTX operation over twisted pair.
|
|
|
|
The
|
|
|
|
.Xr ifconfig 8
|
|
|
|
.Cm mediaopt
|
|
|
|
option can also be used to select either
|
|
|
|
.Cm full-duplex
|
|
|
|
or
|
|
|
|
.Cm half-duplex
|
|
|
|
modes.
|
|
|
|
.It Cm 1000baseSX
|
|
|
|
Set 1000Mbps (Gigabit Ethernet) operation.
|
|
|
|
Both
|
|
|
|
.Cm full-duplex
|
|
|
|
and
|
|
|
|
.Cm half-duplex
|
|
|
|
modes are supported.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver supports the following media options:
|
|
|
|
.Bl -tag -width ".Cm full-duplex"
|
|
|
|
.It Cm full-duplex
|
|
|
|
Force full duplex operation.
|
|
|
|
.It Cm half-duplex
|
|
|
|
Force half duplex operation.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
For more information on configuring this device, see
|
|
|
|
.Xr ifconfig 8 .
|
|
|
|
.Sh HARDWARE
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver provides support for various NICs based on the Marvell/SysKonnect
|
|
|
|
Yukon II based Gigabit Ethernet controller chips, including:
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
2006-12-13 08:51:40 +00:00
|
|
|
D-Link 550SX Gigabit Ethernet
|
2006-12-13 02:37:01 +00:00
|
|
|
.It
|
2009-09-28 21:15:57 +00:00
|
|
|
D-Link 560SX Gigabit Ethernet
|
|
|
|
.It
|
2006-12-13 08:51:40 +00:00
|
|
|
D-Link 560T Gigabit Ethernet
|
2006-12-13 02:37:01 +00:00
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8021CU Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8021 SX/LX Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8022CU Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8022 SX/LX Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8061CU Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8061 SX/LX Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8062CU Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8062 SX/LX Gigabit Ethernet
|
|
|
|
.It
|
2009-05-25 08:27:52 +00:00
|
|
|
Marvell Yukon 88E8035 Fast Ethernet
|
2006-12-13 02:37:01 +00:00
|
|
|
.It
|
2009-05-25 08:27:52 +00:00
|
|
|
Marvell Yukon 88E8036 Fast Ethernet
|
2006-12-13 02:37:01 +00:00
|
|
|
.It
|
2009-05-25 08:27:52 +00:00
|
|
|
Marvell Yukon 88E8038 Fast Ethernet
|
2006-12-13 02:37:01 +00:00
|
|
|
.It
|
2009-05-25 08:27:52 +00:00
|
|
|
Marvell Yukon 88E8039 Fast Ethernet
|
2007-12-05 09:41:58 +00:00
|
|
|
.It
|
2009-05-25 08:11:03 +00:00
|
|
|
Marvell Yukon 88E8040 Fast Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8040T Fast Ethernet
|
|
|
|
.It
|
2009-10-25 21:46:38 +00:00
|
|
|
Marvell Yukon 88E8042 Fast Ethernet
|
|
|
|
.It
|
2009-05-25 08:11:03 +00:00
|
|
|
Marvell Yukon 88E8048 Fast Ethernet
|
|
|
|
.It
|
2006-12-13 02:37:01 +00:00
|
|
|
Marvell Yukon 88E8050 Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8052 Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8053 Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8055 Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8056 Gigabit Ethernet
|
|
|
|
.It
|
2009-11-07 01:18:03 +00:00
|
|
|
Marvell Yukon 88E8057 Gigabit Ethernet
|
|
|
|
.It
|
2007-11-20 07:53:52 +00:00
|
|
|
Marvell Yukon 88E8058 Gigabit Ethernet
|
|
|
|
.It
|
2010-04-30 19:05:01 +00:00
|
|
|
Marvell Yukon 88E8059 Gigabit Ethernet
|
|
|
|
.It
|
2009-06-02 05:13:02 +00:00
|
|
|
Marvell Yukon 88E8070 Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8071 Gigabit Ethernet
|
|
|
|
.It
|
|
|
|
Marvell Yukon 88E8072 Gigabit Ethernet
|
2009-05-25 08:11:03 +00:00
|
|
|
.It
|
2011-05-23 22:02:15 +00:00
|
|
|
Marvell Yukon 88E8075 Gigabit Ethernet
|
|
|
|
.It
|
2006-12-13 08:51:40 +00:00
|
|
|
SysKonnect SK-9Sxx Gigabit Ethernet
|
2006-12-13 02:37:01 +00:00
|
|
|
.It
|
2006-12-13 08:51:40 +00:00
|
|
|
SysKonnect SK-9Exx Gigabit Ethernet
|
2006-12-13 02:37:01 +00:00
|
|
|
.El
|
|
|
|
.Sh LOADER TUNABLES
|
|
|
|
Tunables can be set at the
|
|
|
|
.Xr loader 8
|
|
|
|
prompt before booting the kernel or stored in
|
|
|
|
.Xr loader.conf 5 .
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va hw.msk.msi_disable
|
|
|
|
This tunable disables MSI support on the Ethernet hardware.
|
|
|
|
The default value is 0.
|
|
|
|
.El
|
|
|
|
.Sh SYSCTL VARIABLES
|
|
|
|
The following variables are available as both
|
|
|
|
.Xr sysctl 8
|
|
|
|
variables and
|
|
|
|
.Xr loader 8
|
|
|
|
tunables:
|
|
|
|
.Bl -tag -width indent
|
2010-03-01 23:56:51 +00:00
|
|
|
.It Va dev.mskc.%d.int_holdoff
|
|
|
|
Maximum number of time to delay interrupts.
|
|
|
|
The valid range is 0 to 34359738 for 125MHz clock in units of 1us,
|
|
|
|
the default is 100 (100us).
|
|
|
|
The interface need to be brought down and up again before a change
|
|
|
|
takes effect.
|
2006-12-13 02:37:01 +00:00
|
|
|
.It Va dev.mskc.%d.process_limit
|
2007-07-01 09:42:47 +00:00
|
|
|
Maximum amount of Rx events to be processed in the event loop before
|
2006-12-13 02:37:01 +00:00
|
|
|
rescheduling a taskqueue.
|
2007-07-01 09:42:47 +00:00
|
|
|
The accepted range is 30 to 256, the default value is 128 events.
|
2006-12-13 02:37:01 +00:00
|
|
|
The interface does not need to be brought down and up again before
|
|
|
|
a change takes effect.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2007-01-30 08:40:04 +00:00
|
|
|
.Xr altq 4 ,
|
2006-12-13 02:37:01 +00:00
|
|
|
.Xr arp 4 ,
|
|
|
|
.Xr miibus 4 ,
|
|
|
|
.Xr netintro 4 ,
|
|
|
|
.Xr ng_ether 4 ,
|
|
|
|
.Xr vlan 4 ,
|
|
|
|
.Xr ifconfig 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver was written by
|
|
|
|
.An Pyun YongHyeon
|
|
|
|
.Aq yongari@FreeBSD.org
|
2006-12-13 08:51:40 +00:00
|
|
|
and it is based on
|
2006-12-13 02:37:01 +00:00
|
|
|
.Xr sk 4
|
2006-12-13 08:51:40 +00:00
|
|
|
and Marvell's
|
|
|
|
.Fx
|
|
|
|
driver.
|
|
|
|
It first appeared in
|
2007-07-01 09:42:47 +00:00
|
|
|
.Fx 7.0
|
|
|
|
and
|
|
|
|
.Fx 6.3 .
|