1.\" Copyright (c) 1997, 1998, 1999 2.\" Bill Paul <wpaul@ee.columbia.edu>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 3. All advertising materials mentioning features or use of this software 13.\" must display the following acknowledgement: 14.\" This product includes software developed by Bill Paul. 15.\" 4. Neither the name of the author nor the names of any co-contributors 16.\" may be used to endorse or promote products derived from this software 17.\" without specific prior written permission. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22.\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD 23.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 29.\" THE POSSIBILITY OF SUCH DAMAGE. 30.\" 31.\" $FreeBSD$ 32.\" 33.Dd July 16, 2005 34.Dt SIS 4 35.Os 36.Sh NAME 37.Nm sis 38.Nd "SiS 900, SiS 7016 and NS DP83815 Fast Ethernet device driver" 39.Sh SYNOPSIS 40To compile support for the 41.Nm 42driver into your kernel, place the following lines in your 43kernel configuration file: 44.Bd -ragged -offset indent 45.Cd "device miibus" 46.Cd "device sis" 47.Ed 48.Pp 49Alternatively, to load the 50.Nm 51driver at boot time, place the following line in 52.Xr loader.conf 5 : 53.Bd -literal -offset indent 54if_sis_load="YES" 55.Ed 56.Sh DESCRIPTION 57The 58.Nm 59driver provides support for PCI Ethernet adapters and embedded 60controllers based on the Silicon Integrated Systems SiS 900 61and SiS 7016 Fast Ethernet controller chips. 62.Pp 63This driver also supports 64adapters based on the National Semiconductor DP83815 (MacPhyter) 65PCI Ethernet controller chip. 66.Pp 67The SiS 900 is a 100Mbps Ethernet MAC and MII-compliant transceiver 68in a single package. 69It uses a bus master DMA and a scatter/gather 70descriptor scheme. 71The SiS 7016 is similar to the SiS 900 except 72that it has no internal PHY, requiring instead an external transceiver 73to be attached to its MII interface. 74The SiS 900 and SiS 7016 both have a 128-bit multicast hash filter 75and a single perfect filter entry for the station address. 76.Pp 77The NS DP83815 is also a 100Mbps Ethernet MAC with integrated PHY. 78The NatSemi chip and the SiS 900 share many of the same features and 79a fairly similar programming interface, hence both chips are supported 80by the same driver. 81.Pp 82The 83.Nm 84driver supports the following media types: 85.Pp 86.Bl -tag -width 10baseTXUTP 87.It autoselect 88Enable autoselection of the media type and options. 89The user can manually override 90the autoselected mode by adding media options to 91.Xr rc.conf 5 . 92.It 10baseT/UTP 93Set 10Mbps operation. 94The 95.Xr ifconfig 8 96.Cm mediaopt 97option can also be used to select either 98.Sq full-duplex 99or 100.Sq half-duplex 101modes. 102.It 100baseTX 103Set 100Mbps (Fast Ethernet) operation. 104The 105.Xr ifconfig 8 106.Cm mediaopt 107option can also be used to select either 108.Sq full-duplex 109or 110.Sq half-duplex 111modes. 112.El 113.Pp 114The 115.Nm 116driver supports the following media options: 117.Pp 118.Bl -tag -width full-duplex 119.It full-duplex 120Force full duplex operation 121.It half-duplex 122Force half duplex operation. 123.El 124.Pp 125For more information on configuring this device, see 126.Xr ifconfig 8 . 127.Sh HARDWARE 128The 129.Nm 130driver supports Silicon Integrated Systems SiS 900 and SiS 7016 based 131Fast Ethernet adapters and embedded controllers, as well as Fast Ethernet 132adapters based on the National Semiconductor DP83815 (MacPhyter) chip. 133Supported adapters include: 134.Pp 135.Bl -bullet -compact 136.It 137@Nifty FNECHARD IFC USUP-TX 138.It 139MELCO LGY-PCI-TXC 140.It 141Netgear FA311-TX (DP83815) 142.It 143Netgear FA312-TX (DP83815) 144.It 145SiS 630, 635, and 735 motherboard chipsets 146.El 147.Sh DIAGNOSTICS 148.Bl -diag 149.It "sis%d: couldn't map ports/memory" 150A fatal initialization error has occurred. 151.It "sis%d: couldn't map interrupt" 152A fatal initialization error has occurred. 153.It "sis%d: watchdog timeout" 154The device has stopped responding to the network, or there is a problem with 155the network connection (e.g.\& a cable fault). 156.It "sis%d: no memory for rx list" 157The driver failed to allocate an mbuf for the receiver ring. 158.It "sis%d: no memory for tx list" 159The driver failed to allocate an mbuf for the transmitter ring when 160allocating a pad buffer or collapsing an mbuf chain into a cluster. 161.It "sis%d: chip is in D3 power state -- setting to D0" 162This message applies only to adapters which support power 163management. 164Some operating systems place the controller in low power 165mode when shutting down, and some PCI BIOSes fail to bring the chip 166out of this state before configuring it. 167The controller loses all of 168its PCI configuration in the D3 state, so if the BIOS does not set 169it back to full power mode in time, it will not be able to configure it 170correctly. 171The driver tries to detect this condition and bring 172the adapter back to the D0 (full power) state, but this may not be 173enough to return the driver to a fully operational condition. 174If 175you see this message at boot time and the driver fails to attach 176the device as a network interface, you will have to perform a 177warm boot to have the device properly configured. 178.Pp 179Note that this condition only occurs when warm booting from another 180operating system. 181If you power down your system prior to booting 182.Fx , 183the card should be configured correctly. 184.El 185.Sh SEE ALSO 186.Xr arp 4 , 187.Xr miibus 4 , 188.Xr netintro 4 , 189.Xr ng_ether 4 , 190.Xr polling 4 , 191.Xr ifconfig 8 192.Rs 193.%T SiS 900 and SiS 7016 datasheets 194.%O http://www.sis.com.tw 195.Re 196.Rs 197.%T NatSemi DP83815 datasheet 198.%O http://www.national.com 199.Re 200.Sh HISTORY 201The 202.Nm 203device driver first appeared in 204.Fx 3.0 . 205.Sh AUTHORS 206The 207.Nm 208driver was written by 209.An Bill Paul Aq wpaul@ee.columbia.edu . 210