1.\" $OpenBSD: vr.4,v 1.38 2014/03/15 12:52:56 sthen Exp $ 2.\" 3.\" Copyright (c) 1997, 1998 4.\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by Bill Paul. 17.\" 4. Neither the name of the author nor the names of any co-contributors 18.\" may be used to endorse or promote products derived from this software 19.\" without specific prior written permission. 20.\" 21.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 22.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24.\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD 25.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31.\" THE POSSIBILITY OF SUCH DAMAGE. 32.\" 33.\" $FreeBSD: vr.4,v 1.3 1999/03/25 00:52:44 wpaul Exp $ 34.\" 35.Dd $Mdocdate: March 15 2014 $ 36.Dt VR 4 37.Os 38.Sh NAME 39.Nm vr 40.Nd VIA Rhine I/II/III 10/100 Ethernet device 41.Sh SYNOPSIS 42.Cd "vr* at pci?" 43.Cd "amphy* at mii?" 44.Cd "icsphy* at mii?" 45.Cd "sqphy* at mii?" 46.Sh DESCRIPTION 47The 48.Nm 49driver provides support for PCI Ethernet adapters and embedded 50controllers based on the VIA Technologies VT3043 Rhine I, 51VT86C100A Rhine II, VT6102 Rhine II, and VT6105/VT6105M Rhine III 52Fast Ethernet controller chips, including the following: 53.Pp 54.Bl -bullet -compact 55.It 56AOpen/Acer ALN-320 57.It 58D-Link DFE-520TX, DFE-530TX 59.It 60Hawking Technologies PN102TX 61.It 62Soekris Engineering lan1741 63.El 64.Pp 65The VIA Rhine chips use bus master DMA and have a software interface 66designed to resemble that of the DEC 21x4x "tulip" chips. 67The major differences are that the receive filter in the Rhine chips is 68much simpler and is programmed through registers rather than by 69downloading a special setup frame through the transmit DMA engine, 70and that on older chips transmit and receive DMA buffers must be 71longword aligned. 72The Rhine chips are meant to be interfaced with external 73physical layer devices via an MII bus. 74They support both 10 and 100Mbps speeds in either full or half duplex. 75.Pp 76The 77.Nm 78driver for the VT6105M controller supports IPv4 IP/TCP/UDP transmit/receive 79checksum offload and VLAN tag insertion and stripping. 80The 81.Nm 82driver additionally supports Wake on LAN (WoL). 83See 84.Xr arp 8 85and 86.Xr ifconfig 8 87for more details. 88.Pp 89The 90.Nm 91driver supports the following media types: 92.Bl -tag -width full-duplex 93.It autoselect 94Enable autoselection of the media type and options. 95The user can manually override 96the autoselected mode by adding media options to the appropriate 97.Xr hostname.if 5 98file. 99.It 10baseT 100Set 10Mbps operation. 101The 102.Ar mediaopt 103option can also be used to select either 104.Ar full-duplex 105or 106.Ar half-duplex 107modes. 108.It 100baseTX 109Set 100Mbps (Fast Ethernet) operation. 110The 111.Ar mediaopt 112option can also be used to select either 113.Ar full-duplex 114or 115.Ar half-duplex 116modes. 117.El 118.Pp 119The 120.Nm 121driver supports the following media options: 122.Bl -tag -width full-duplex 123.It full-duplex 124Force full duplex operation. 125.It half-duplex 126Force half duplex operation. 127.El 128.Pp 129Note that the 100baseTX media type is only available if supported 130by the adapter. 131.Pp 132For more information on configuring this device, see 133.Xr ifconfig 8 . 134.Sh DIAGNOSTICS 135.Bl -diag 136.It "vr0: couldn't map memory" 137A fatal initialization error has occurred. 138.It "vr0: couldn't map interrupt" 139A fatal initialization error has occurred. 140.It "vr0: watchdog timeout" 141The device has stopped responding to the network, or there is a problem with 142the network connection (cable). 143.It "vr0: no memory for rx list" 144The driver failed to allocate an mbuf for the receiver ring. 145.It "vr0: no memory for tx list" 146The driver failed to allocate an mbuf for the transmitter ring when 147allocating a pad buffer or collapsing an mbuf chain into a cluster. 148.El 149.Sh SEE ALSO 150.Xr amphy 4 , 151.Xr arp 4 , 152.Xr icsphy 4 , 153.Xr ifmedia 4 , 154.Xr intro 4 , 155.Xr netintro 4 , 156.Xr pci 4 , 157.Xr sqphy 4 , 158.Xr hostname.if 5 , 159.Xr ifconfig 8 160.Rs 161.%T The VIA Technologies VT86C100A data sheet 162.%U http://www.via.com.tw 163.Re 164.Sh HISTORY 165The 166.Nm 167device driver first appeared in 168.Fx 3.0 . 169.Ox 170support first appeared in 171.Ox 2.5 . 172.Sh AUTHORS 173The 174.Nm 175driver was written by 176.An Bill Paul Aq Mt wpaul@ctr.columbia.edu . 177.Sh CAVEATS 178The 179.Nm 180driver copies transmit mbuf chains into longword-aligned buffers prior 181to transmission in order to pacify the VT3043 and VT86C100A chips. 182If buffers are not aligned correctly, the chip will round the 183supplied buffer address and begin DMAing from the wrong location. 184This buffer copying impairs transmit performance on slower systems but can't 185be avoided. 186On faster machines (e.g., a Pentium II), the performance 187impact is much less noticeable. 188