1.\" $OpenBSD: re.4,v 1.39 2008/11/17 02:40:42 brad Exp $ 2.\" Copyright (c) 2003 3.\" Bill Paul <wpaul@windriver.com>. All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 3. All advertising materials mentioning features or use of this software 14.\" must display the following acknowledgement: 15.\" This product includes software developed by Bill Paul. 16.\" 4. Neither the name of the author nor the names of any co-contributors 17.\" may be used to endorse or promote products derived from this software 18.\" without specific prior written permission. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23.\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD 24.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30.\" THE POSSIBILITY OF SUCH DAMAGE. 31.\" 32.\" $FreeBSD: /repoman/r/ncvs/src/share/man/man4/re.4,v 1.4 2004/03/04 06:42:46 sanpei Exp $ 33.\" 34.Dd $Mdocdate: November 17 2008 $ 35.Dt RE 4 36.Os 37.Sh NAME 38.Nm re 39.Nd RealTek 8139C+/8169/816xS/811xS/8168/810xE 10/100/Gigabit Ethernet device 40.Sh SYNOPSIS 41.Cd "re* at pci?" 42.Cd "re* at cardbus?" 43.Cd "eephy* at mii?" 44.Cd "rgephy* at mii?" 45.Cd "rlphy* at mii?" 46.Sh DESCRIPTION 47The 48.Nm 49driver provides support for various NICs based on the 50RealTek RTL8139C+, RTL8169, RTL816xS, RTL811xS, RTL8168 and 51RTL810xE PCI and PCI Express Ethernet controllers, 52including the following: 53.Pp 54.Bl -bullet -compact 55.It 56Alloy Computer Products EtherGOLD 1439E 10/100 (8139C+) 57.It 58Buffalo LGY-PCI-GT (8169S) 59.It 60Compaq Evo N1015v Integrated Ethernet (8139C+) 61.It 62Corega CG-LAPCIGT (8169S) 63.It 64D-Link DGE-528T (8169S) 65.It 66D-Link DGE-660TD (8169/8110SB) 67.It 68Gigabyte 7N400 Pro2 Integrated Gigabit Ethernet (8110S) 69.It 70LevelOne GNC-0105T (8169S) 71.It 72Linksys EG1032v3 (8169S) 73.It 74Netgear GA311 (8169S) 75.It 76Netgear GA511 PC Card (8169) 77.It 78PLANEX COMMUNICATIONS Inc. GN-1200TC (8169S) 79.It 80Surecom EP-320G-TX1 (8169S) 81.It 82TTTech MC322 (8139C+) 83.It 84US Robotics USR997902 (8169S) 85.It 86Xterasys XN-152 10/100/1000 NIC (8169) 87.El 88.Pp 89NICs based on the 8139C+ and 810xE are capable of 10 and 100Mbps speeds 90over CAT5 cable. 91NICs based on the 8169, 816xS, 811xS and 8168 are capable of 10, 100 and 921000Mbps operation. 93.Pp 94All 95.Nm 96NICs support 97IPv4 transmit/receive IP/TCP/UDP checksum offload, VLAN tag insertion and 98stripping, and use a descriptor-based DMA mechanism. 99.Pp 100The 8139C+ is a single-chip solution combining both a 10/100 MAC and PHY. 101The 8169 is a 10/100/1000 MAC only, requiring a GMII or TBI external PHY. 102The 8169S, 8110S, 8111B and 8168 are single-chip devices 103containing both a 10/100/1000 MAC and 10/100/1000 copper PHY. 104Standalone 10/100/1000 cards are available in both 32-bit PCI and 64-bit 105PCI models. 106The 8110S and 8111B are designed for embedded LAN-on-motherboard applications. 107.Pp 108The 8169, 8169S and 8110S also support Jumbo frames, 109which can be configured via the interface MTU setting. 110The MTU is limited to 7422, since the chip cannot transmit larger frames. 111Selecting an MTU larger than 1500 bytes with the 112.Xr ifconfig 8 113utility configures the adapter to transmit Jumbo frames. 114.Pp 115The 116.Nm 117driver supports the following media types: 118.Bl -tag -width 10baseTXUTP 119.It autoselect 120Enable autoselection of the media type and options. 121The user can manually override the autoselected mode by adding media options 122to the appropriate 123.Xr hostname.if 5 124file. 125.It 10baseT/UTP 126Set 10Mbps operation. 127The 128.Xr ifconfig 8 129.Ic mediaopt 130option can also be used to select either 131.Ar full-duplex 132or 133.Ar half-duplex 134modes. 135.It 100baseTX 136Set 100Mbps (Fast Ethernet) operation. 137The 138.Xr ifconfig 8 139.Ic mediaopt 140option can also be used to select either 141.Ar full-duplex 142or 143.Ar half-duplex 144modes. 145.It 1000baseT 146Set 1000baseT operation over twisted pair. 147The RealTek GigE chips support 1000Mbps in 148.Ar full-duplex 149mode only. 150.\" .It 1000baseSX 151.\" Set 1000Mbps (Gigabit Ethernet) operation. 152.\" Both 153.\" .Ar full-duplex 154.\" and 155.\" .Ar half-duplex 156.\" modes are supported. 157.El 158.Pp 159The 160.Nm 161driver supports the following media options: 162.Bl -tag -width full-duplex 163.It full-duplex 164Force full duplex operation. 165.It half-duplex 166Force half duplex operation. 167.El 168.Pp 169For more information on configuring this device, see 170.Xr ifconfig 8 . 171.Sh SEE ALSO 172.Xr arp 4 , 173.Xr eephy 4 , 174.Xr ifmedia 4 , 175.Xr intro 4 , 176.Xr netintro 4 , 177.Xr pci 4 , 178.Xr rgephy 4 , 179.Xr rlphy 4 , 180.Xr hostname.if 5 , 181.Xr ifconfig 8 182.Rs 183.%T RealTek Semiconductor RTL8139C+, RTL8169, RTL8169S and RTL8110S datasheets 184.%O http://www.realtek.com.tw 185.Re 186.Sh HISTORY 187The 188.Nm 189device driver first appeared in 190.Ox 3.6 . 191.Sh AUTHORS 192.An -nosplit 193The 194.Nm 195driver was written by 196.An Bill Paul Aq wpaul@windriver.com 197and ported to 198.Ox 199by 200.An Peter Valchev Aq pvalchev@openbsd.org . 201.Sh BUGS 202The Xterasys XN-152 32-bit PCI NIC, which uses the RTL8169 MAC and 203Marvell 88E1000 PHY, has a defect that causes DMA corruption 204if the board is plugged into a 64-bit PCI slot. 205The defect lies in the board design, not the chip itself: the PCI REQ64# 206and ACK64# lines should be pulled high, but they are not. 207The result is that the 8169 chip is tricked into performing 64-bit DMA 208transfers even though a 64-bit data path between the NIC and the bus does 209not actually exist. 210.Pp 211Unfortunately, it is not possible to correct this problem in software, 212however it is possible to detect it. 213The user should ensure the NIC is installed in a 32-bit PCI slot to avoid 214this problem. 215.Pp 216The RealTek 8169, 8169S and 8110S chips are only capable of transmitting 217Jumbo frames up to 7440 bytes in size. 218