xref: /freebsd/share/man/man4/ure.4 (revision 6ea4d95f6c76aa64d2db5c04c87e68dc299544df)
1e1b74f21SKevin Lo.\"
2a24d62b5SKevin Lo.\" Copyright (c) 2015-2016 Kevin Lo <kevlo@FreeBSD.org>
3e1b74f21SKevin Lo.\" All rights reserved.
4e1b74f21SKevin Lo.\"
5e1b74f21SKevin Lo.\" Redistribution and use in source and binary forms, with or without
6e1b74f21SKevin Lo.\" modification, are permitted provided that the following conditions
7e1b74f21SKevin Lo.\" are met:
8e1b74f21SKevin Lo.\" 1. Redistributions of source code must retain the above copyright
9e1b74f21SKevin Lo.\"    notice, this list of conditions and the following disclaimer.
10e1b74f21SKevin Lo.\" 2. Redistributions in binary form must reproduce the above copyright
11e1b74f21SKevin Lo.\"    notice, this list of conditions and the following disclaimer in the
12e1b74f21SKevin Lo.\"    documentation and/or other materials provided with the distribution.
13e1b74f21SKevin Lo.\"
14e1b74f21SKevin Lo.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15e1b74f21SKevin Lo.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16e1b74f21SKevin Lo.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17e1b74f21SKevin Lo.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18e1b74f21SKevin Lo.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19e1b74f21SKevin Lo.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20e1b74f21SKevin Lo.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21e1b74f21SKevin Lo.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22e1b74f21SKevin Lo.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23e1b74f21SKevin Lo.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24e1b74f21SKevin Lo.\" SUCH DAMAGE.
25e1b74f21SKevin Lo.\"
26*6ea4d95fSLi-Wen Hsu.Dd May 3, 2024
27e1b74f21SKevin Lo.Dt URE 4
28e1b74f21SKevin Lo.Os
29e1b74f21SKevin Lo.Sh NAME
30e1b74f21SKevin Lo.Nm ure
31*6ea4d95fSLi-Wen Hsu.Nd "RealTek RTL8152/RTL8153/RTL8153B/RTL8156/RTL8156B USB to Ethernet controller driver"
32e1b74f21SKevin Lo.Sh SYNOPSIS
33e1b74f21SKevin LoTo compile this driver into the kernel,
34e1b74f21SKevin Loplace the following lines in your
35e1b74f21SKevin Lokernel configuration file:
36e1b74f21SKevin Lo.Bd -ragged -offset indent
37e1b74f21SKevin Lo.Cd "device uhci"
38e1b74f21SKevin Lo.Cd "device ohci"
39e1b74f21SKevin Lo.Cd "device usb"
40e1b74f21SKevin Lo.Cd "device miibus"
41e1b74f21SKevin Lo.Cd "device uether"
42e1b74f21SKevin Lo.Cd "device ure"
43e1b74f21SKevin Lo.Ed
44e1b74f21SKevin Lo.Pp
45e1b74f21SKevin LoAlternatively, to load the driver as a
46e1b74f21SKevin Lomodule at boot time, place the following line in
47e1b74f21SKevin Lo.Xr loader.conf 5 :
48e1b74f21SKevin Lo.Bd -literal -offset indent
49e1b74f21SKevin Loif_ure_load="YES"
50e1b74f21SKevin Lo.Ed
51e1b74f21SKevin Lo.Sh DESCRIPTION
52e1b74f21SKevin LoThe
53e1b74f21SKevin Lo.Nm
54e1b74f21SKevin Lodriver provides support for USB Ethernet adapters based on the RealTek
55a24d62b5SKevin LoRealTek RTL8152 and RTL8153 USB Ethernet controllers.
56e1b74f21SKevin Lo.Pp
57a24d62b5SKevin LoNICs based on the RTL8152 are capable of 10 and 100Mbps speeds.
58a24d62b5SKevin LoNICs based on the RTL8153 are capable of 10, 100 and 1000Mbps operation.
59e1b74f21SKevin Lo.Pp
60e1b74f21SKevin LoThe
61e1b74f21SKevin Lo.Nm
62e1b74f21SKevin Lodriver supports the following media types:
63e1b74f21SKevin Lo.Bl -tag -width ".Cm 10baseT/UTP"
64e1b74f21SKevin Lo.It Cm autoselect
65e1b74f21SKevin LoEnable auto selection of the media type and options.
66e1b74f21SKevin LoThe user can manually override
67e1b74f21SKevin Lothe auto selected mode by adding media options to the
68e1b74f21SKevin Lo.Pa /etc/rc.conf
69e1b74f21SKevin Lofile.
70e1b74f21SKevin Lo.It Cm 10baseT/UTP
71e1b74f21SKevin LoSet 10Mbps operation.
72e1b74f21SKevin LoThe
73e1b74f21SKevin Lo.Cm mediaopt
74e1b74f21SKevin Looption can also be used to select either
75e1b74f21SKevin Lo.Cm full-duplex
76e1b74f21SKevin Loor
77e1b74f21SKevin Lo.Cm half-duplex
78e1b74f21SKevin Lomodes.
79e1b74f21SKevin Lo.It Cm 100baseTX
80e1b74f21SKevin LoSet 100Mbps (Fast Ethernet) operation.
81e1b74f21SKevin LoThe
82e1b74f21SKevin Lo.Cm mediaopt
83e1b74f21SKevin Looption can also be used to select either
84e1b74f21SKevin Lo.Cm full-duplex
85e1b74f21SKevin Loor
86e1b74f21SKevin Lo.Cm half-duplex
87e1b74f21SKevin Lomodes.
88a24d62b5SKevin Lo.It Cm 1000baseTX
89a24d62b5SKevin LoSet 1000baseTX operation over twisted pair.
90a24d62b5SKevin LoThe RealTek gigE chips support 1000Mbps in
91a24d62b5SKevin Lo.Cm full-duplex
92a24d62b5SKevin Lomode only.
93*6ea4d95fSLi-Wen Hsu.It Cm 2500base-T
94*6ea4d95fSLi-Wen HsuSet 2500Base-T operation over twisted pair.
95*6ea4d95fSLi-Wen HsuThe RealTek 8156/8156B chips support 2500Mbps in
96*6ea4d95fSLi-Wen Hsu.Cm full-duplex
97*6ea4d95fSLi-Wen Hsumode only.
98e1b74f21SKevin Lo.El
99e1b74f21SKevin Lo.Pp
100e1b74f21SKevin LoThe
101e1b74f21SKevin Lo.Nm
102e1b74f21SKevin Lodriver supports the following media options:
103a24d62b5SKevin Lo.Bl -tag -width ".Cm full-duplex"
104e1b74f21SKevin Lo.It Cm full-duplex
105e1b74f21SKevin LoForce full duplex operation.
106e1b74f21SKevin Lo.It Cm half-duplex
107e1b74f21SKevin LoForce half duplex operation.
108e1b74f21SKevin Lo.El
109e1b74f21SKevin Lo.Pp
110e1b74f21SKevin LoFor more information on configuring this device, see
111e1b74f21SKevin Lo.Xr ifconfig 8 .
112e1b74f21SKevin Lo.Sh DIAGNOSTICS
113e1b74f21SKevin Lo.Bl -diag
114e1b74f21SKevin Lo.It "ure%d: watchdog timeout"
115e1b74f21SKevin LoA packet was queued for transmission and a transmit command was
116e1b74f21SKevin Loissued, however the device failed to acknowledge the transmission
117e1b74f21SKevin Lobefore a timeout expired.
118e1b74f21SKevin Lo.El
119e1b74f21SKevin Lo.Sh SEE ALSO
120e1b74f21SKevin Lo.Xr arp 4 ,
121e1b74f21SKevin Lo.Xr miibus 4 ,
122e1b74f21SKevin Lo.Xr netintro 4 ,
123e1b74f21SKevin Lo.Xr ng_ether 4 ,
124e1b74f21SKevin Lo.Xr ifconfig 8
125e1b74f21SKevin Lo.Sh AUTHORS
126e1b74f21SKevin LoThe
127e1b74f21SKevin Lo.Nm
128e1b74f21SKevin Lodriver was written by
129e1b74f21SKevin Lo.An Kevin Lo Aq Mt kevlo@FreeBSD.org .
130