xref: /freebsd/share/man/man4/alc.4 (revision b805efe6dda768ab6e42380ddb99a2b2e281d93f)
1ff24f054SPyun YongHyeon.\" Copyright (c) 2009 Pyun YongHyeon
2ff24f054SPyun YongHyeon.\" All rights reserved.
3ff24f054SPyun YongHyeon.\"
4ff24f054SPyun YongHyeon.\" Redistribution and use in source and binary forms, with or without
5ff24f054SPyun YongHyeon.\" modification, are permitted provided that the following conditions
6ff24f054SPyun YongHyeon.\" are met:
7ff24f054SPyun YongHyeon.\" 1. Redistributions of source code must retain the above copyright
8ff24f054SPyun YongHyeon.\"    notice, this list of conditions and the following disclaimer.
9ff24f054SPyun YongHyeon.\" 2. Redistributions in binary form must reproduce the above copyright
10ff24f054SPyun YongHyeon.\"    notice, this list of conditions and the following disclaimer in the
11ff24f054SPyun YongHyeon.\"    documentation and/or other materials provided with the distribution.
12ff24f054SPyun YongHyeon.\"
13ff24f054SPyun YongHyeon.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14ff24f054SPyun YongHyeon.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15ff24f054SPyun YongHyeon.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16ff24f054SPyun YongHyeon.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17ff24f054SPyun YongHyeon.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18ff24f054SPyun YongHyeon.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19ff24f054SPyun YongHyeon.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20ff24f054SPyun YongHyeon.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21ff24f054SPyun YongHyeon.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22ff24f054SPyun YongHyeon.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23ff24f054SPyun YongHyeon.\" SUCH DAMAGE.
24ff24f054SPyun YongHyeon.\"
25ff24f054SPyun YongHyeon.\" $FreeBSD$
26ff24f054SPyun YongHyeon.\"
27*b805efe6SPyun YongHyeon.Dd August 9, 2010
28ff24f054SPyun YongHyeon.Dt ALC 4
29ff24f054SPyun YongHyeon.Os
30ff24f054SPyun YongHyeon.Sh NAME
31ff24f054SPyun YongHyeon.Nm alc
32*b805efe6SPyun YongHyeon.Nd Atheros AR813x/AR815x Gigabit/Fast Ethernet driver
33ff24f054SPyun YongHyeon.Sh SYNOPSIS
34ff24f054SPyun YongHyeonTo compile this driver into the kernel,
35ff24f054SPyun YongHyeonplace the following lines in your
36ff24f054SPyun YongHyeonkernel configuration file:
37ff24f054SPyun YongHyeon.Bd -ragged -offset indent
38ff24f054SPyun YongHyeon.Cd "device miibus"
39ff24f054SPyun YongHyeon.Cd "device alc"
40ff24f054SPyun YongHyeon.Ed
41ff24f054SPyun YongHyeon.Pp
42ff24f054SPyun YongHyeonAlternatively, to load the driver as a
43ff24f054SPyun YongHyeonmodule at boot time, place the following line in
44ff24f054SPyun YongHyeon.Xr loader.conf 5 :
45ff24f054SPyun YongHyeon.Bd -literal -offset indent
46ff24f054SPyun YongHyeonif_alc_load="YES"
47ff24f054SPyun YongHyeon.Ed
48ff24f054SPyun YongHyeon.Sh DESCRIPTION
49ff24f054SPyun YongHyeonThe
50ff24f054SPyun YongHyeon.Nm
51*b805efe6SPyun YongHyeondevice driver provides support for Atheros AR813x and AR815x PCI
52*b805efe6SPyun YongHyeonExpress Gigabit/Fast Ethernet controllers.
53ff24f054SPyun YongHyeon.Pp
54ff24f054SPyun YongHyeonAll LOMs supported by the
55ff24f054SPyun YongHyeon.Nm
56ff24f054SPyun YongHyeondriver have TCP/UDP/IP checksum offload for transmit, TCP
57ff24f054SPyun YongHyeonsegmentation offload (TSO), hardware VLAN tag stripping/insertion
58ff24f054SPyun YongHyeonfeatures, Wake On Lan (WOL) and an interrupt moderation mechanism
59ff24f054SPyun YongHyeonas well as a 64-bit multicast hash filter.
60ff24f054SPyun YongHyeon.Pp
61*b805efe6SPyun YongHyeonThe AR813x and AR815x supports Jumbo Frames (up to 9216 and 6144
62*b805efe6SPyun YongHyeonbytes, respectively), which can be configured via the interface
63*b805efe6SPyun YongHyeonMTU setting.
64ff24f054SPyun YongHyeonSelecting an MTU larger than 1500 bytes with the
65ff24f054SPyun YongHyeon.Xr ifconfig 8
66ff24f054SPyun YongHyeonutility configures the adapter to receive and transmit Jumbo Frames.
67ff24f054SPyun YongHyeon.Pp
68ff24f054SPyun YongHyeonThe
69ff24f054SPyun YongHyeon.Nm
70ff24f054SPyun YongHyeondriver supports the following media types:
71ff24f054SPyun YongHyeon.Bl -tag -width ".Cm 10baseT/UTP"
72ff24f054SPyun YongHyeon.It Cm autoselect
73ff24f054SPyun YongHyeonEnable autoselection of the media type and options.
74ff24f054SPyun YongHyeonThe user can manually override
75ff24f054SPyun YongHyeonthe autoselected mode by adding media options to
76ff24f054SPyun YongHyeon.Xr rc.conf 5 .
77ff24f054SPyun YongHyeon.It Cm 10baseT/UTP
78ff24f054SPyun YongHyeonSet 10Mbps operation.
79ff24f054SPyun YongHyeon.It Cm 100baseTX
80ff24f054SPyun YongHyeonSet 100Mbps (Fast Ethernet) operation.
81ff24f054SPyun YongHyeon.It Cm 1000baseTX
82ff24f054SPyun YongHyeonSet 1000baseTX operation over twisted pair.
83ff24f054SPyun YongHyeon.El
84ff24f054SPyun YongHyeon.Pp
85ff24f054SPyun YongHyeonThe
86ff24f054SPyun YongHyeon.Nm
87ff24f054SPyun YongHyeondriver supports the following media options:
88ff24f054SPyun YongHyeon.Bl -tag -width ".Cm full-duplex"
89ff24f054SPyun YongHyeon.It Cm full-duplex
90ff24f054SPyun YongHyeonForce full duplex operation.
91ff24f054SPyun YongHyeon.It Cm half-duplex
92ff24f054SPyun YongHyeonForce half duplex operation.
93ff24f054SPyun YongHyeon.El
94ff24f054SPyun YongHyeon.Pp
95ff24f054SPyun YongHyeonFor more information on configuring this device, see
96ff24f054SPyun YongHyeon.Xr ifconfig 8 .
97ff24f054SPyun YongHyeon.Sh HARDWARE
98ff24f054SPyun YongHyeonThe
99ff24f054SPyun YongHyeon.Nm
100ff24f054SPyun YongHyeondevice driver provides support for the following Ethernet controllers:
101ff24f054SPyun YongHyeon.Pp
102ff24f054SPyun YongHyeon.Bl -bullet -compact
103ff24f054SPyun YongHyeon.It
104ff24f054SPyun YongHyeonAtheros AR8131 PCI Express Gigabit Ethernet controller
105ff24f054SPyun YongHyeon.It
106ff24f054SPyun YongHyeonAtheros AR8132 PCI Express Fast Ethernet controller
107*b805efe6SPyun YongHyeon.It
108*b805efe6SPyun YongHyeonAtheros AR8151 v1.0 PCI Express Gigabit Ethernet controller
109*b805efe6SPyun YongHyeon.It
110*b805efe6SPyun YongHyeonAtheros AR8151 v2.0 PCI Express Gigabit Ethernet controller
111*b805efe6SPyun YongHyeon.It
112*b805efe6SPyun YongHyeonAtheros AR8152 v1.1 PCI Express Fast Ethernet controller
113*b805efe6SPyun YongHyeon.It
114*b805efe6SPyun YongHyeonAtheros AR8152 v2.0 PCI Express Fast Ethernet controller
115ff24f054SPyun YongHyeon.El
116ff24f054SPyun YongHyeon.Sh LOADER TUNABLES
117ff24f054SPyun YongHyeonTunables can be set at the
118ff24f054SPyun YongHyeon.Xr loader 8
119ff24f054SPyun YongHyeonprompt before booting the kernel or stored in
120ff24f054SPyun YongHyeon.Xr loader.conf 5 .
121ff24f054SPyun YongHyeon.Bl -tag -width "xxxxxx"
122ff24f054SPyun YongHyeon.It Va hw.alc.msi_disable
123ff24f054SPyun YongHyeonThis tunable disables MSI support on the Ethernet hardware.
124ff24f054SPyun YongHyeonThe default value is 0.
125ff24f054SPyun YongHyeon.It Va hw.alc.msix_disable
126ff24f054SPyun YongHyeonThis tunable disables MSI-X support on the Ethernet hardware.
127ff24f054SPyun YongHyeonThe default value is 0.
128ff24f054SPyun YongHyeon.El
129ff24f054SPyun YongHyeon.Sh SYSCTL VARIABLES
130ff24f054SPyun YongHyeonThe following variables are available as both
131ff24f054SPyun YongHyeon.Xr sysctl 8
132ff24f054SPyun YongHyeonvariables and
133ff24f054SPyun YongHyeon.Xr loader 8
134ff24f054SPyun YongHyeontunables:
135ff24f054SPyun YongHyeon.Bl -tag -width "xxxxxx"
136ff24f054SPyun YongHyeon.It Va dev.alc.%d.int_rx_mod
137ff24f054SPyun YongHyeonMaximum amount of time to delay receive interrupt processing in
138ff24f054SPyun YongHyeonunits of 1us.
139ff24f054SPyun YongHyeonThe accepted range is 0 to 130000, the default is 100(100us).
140ff24f054SPyun YongHyeonValue 0 completely disables the interrupt moderation.
141ff24f054SPyun YongHyeon.It Va dev.alc.%d.int_tx_mod
142ff24f054SPyun YongHyeonMaximum amount of time to delay transmit interrupt processing in
143ff24f054SPyun YongHyeonunits of 1us.
14485bac12cSPyun YongHyeonThe accepted range is 0 to 130000, the default is 1000(1ms).
145ff24f054SPyun YongHyeonValue 0 completely disables the interrupt moderation.
146ff24f054SPyun YongHyeon.It Va dev.alc.%d.process_limit
147ff24f054SPyun YongHyeonMaximum amount of Rx frames to be processed in the event loop before
148ff24f054SPyun YongHyeonrescheduling a taskqueue.
149ff24f054SPyun YongHyeonThe accepted range is 32 to 255, the default value is 64 events.
150ff24f054SPyun YongHyeonThe interface does not need to be brought down and up again before
151ff24f054SPyun YongHyeona change takes effect.
152ff24f054SPyun YongHyeon.El
153ff24f054SPyun YongHyeon.Sh SEE ALSO
154ff24f054SPyun YongHyeon.Xr altq 4 ,
155ff24f054SPyun YongHyeon.Xr arp 4 ,
156ff24f054SPyun YongHyeon.Xr miibus 4 ,
157ff24f054SPyun YongHyeon.Xr netintro 4 ,
158ff24f054SPyun YongHyeon.Xr ng_ether 4 ,
159ff24f054SPyun YongHyeon.Xr vlan 4 ,
160ff24f054SPyun YongHyeon.Xr ifconfig 8
161ff24f054SPyun YongHyeon.Sh HISTORY
162ff24f054SPyun YongHyeonThe
163ff24f054SPyun YongHyeon.Nm
164ff24f054SPyun YongHyeondriver was written by
165ff24f054SPyun YongHyeon.An Pyun YongHyeon
166ff24f054SPyun YongHyeon.Aq yongari@FreeBSD.org .
167ff24f054SPyun YongHyeonIt first appeared in
168ff24f054SPyun YongHyeon.Fx 8.0 .
169