xref: /freebsd/share/man/man4/alc.4 (revision ff24f0549150b4329f77bac5404ca452a7f079f8)
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.\"
27ff24f054SPyun YongHyeon.Dd June 10, 2009
28ff24f054SPyun YongHyeon.Dt ALC 4
29ff24f054SPyun YongHyeon.Os
30ff24f054SPyun YongHyeon.Sh NAME
31ff24f054SPyun YongHyeon.Nm alc
32ff24f054SPyun YongHyeon.Nd Atheros AR8131/AR8132 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
51ff24f054SPyun YongHyeondevice driver provides support for Atheros AR8131 PCI Express
52ff24f054SPyun YongHyeonGigabit Ethernet controllers and Atheros AR8132 PCI Express
53ff24f054SPyun YongHyeonFast Ethernet controllers.
54ff24f054SPyun YongHyeon.Pp
55ff24f054SPyun YongHyeonAll LOMs supported by the
56ff24f054SPyun YongHyeon.Nm
57ff24f054SPyun YongHyeondriver have TCP/UDP/IP checksum offload for transmit, TCP
58ff24f054SPyun YongHyeonsegmentation offload (TSO), hardware VLAN tag stripping/insertion
59ff24f054SPyun YongHyeonfeatures, Wake On Lan (WOL) and an interrupt moderation mechanism
60ff24f054SPyun YongHyeonas well as a 64-bit multicast hash filter.
61ff24f054SPyun YongHyeon.Pp
62ff24f054SPyun YongHyeonThe AR8131/AR8132 supports Jumbo Frames (up to 9216 bytes), which can
63ff24f054SPyun YongHyeonbe configured via the interface MTU 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
107ff24f054SPyun YongHyeon.El
108ff24f054SPyun YongHyeon.Sh LOADER TUNABLES
109ff24f054SPyun YongHyeonTunables can be set at the
110ff24f054SPyun YongHyeon.Xr loader 8
111ff24f054SPyun YongHyeonprompt before booting the kernel or stored in
112ff24f054SPyun YongHyeon.Xr loader.conf 5 .
113ff24f054SPyun YongHyeon.Bl -tag -width "xxxxxx"
114ff24f054SPyun YongHyeon.It Va hw.alc.msi_disable
115ff24f054SPyun YongHyeonThis tunable disables MSI support on the Ethernet hardware.
116ff24f054SPyun YongHyeonThe default value is 0.
117ff24f054SPyun YongHyeon.It Va hw.alc.msix_disable
118ff24f054SPyun YongHyeonThis tunable disables MSI-X support on the Ethernet hardware.
119ff24f054SPyun YongHyeonThe default value is 0.
120ff24f054SPyun YongHyeon.El
121ff24f054SPyun YongHyeon.Sh SYSCTL VARIABLES
122ff24f054SPyun YongHyeonThe following variables are available as both
123ff24f054SPyun YongHyeon.Xr sysctl 8
124ff24f054SPyun YongHyeonvariables and
125ff24f054SPyun YongHyeon.Xr loader 8
126ff24f054SPyun YongHyeontunables:
127ff24f054SPyun YongHyeon.Bl -tag -width "xxxxxx"
128ff24f054SPyun YongHyeon.It Va dev.alc.%d.int_rx_mod
129ff24f054SPyun YongHyeonMaximum amount of time to delay receive interrupt processing in
130ff24f054SPyun YongHyeonunits of 1us.
131ff24f054SPyun YongHyeonThe accepted range is 0 to 130000, the default is 100(100us).
132ff24f054SPyun YongHyeonValue 0 completely disables the interrupt moderation.
133ff24f054SPyun YongHyeon.It Va dev.alc.%d.int_tx_mod
134ff24f054SPyun YongHyeonMaximum amount of time to delay transmit interrupt processing in
135ff24f054SPyun YongHyeonunits of 1us.
136ff24f054SPyun YongHyeonThe accepted range is 0 to 130000, the default is 50000(50ms).
137ff24f054SPyun YongHyeonValue 0 completely disables the interrupt moderation.
138ff24f054SPyun YongHyeon.It Va dev.alc.%d.process_limit
139ff24f054SPyun YongHyeonMaximum amount of Rx frames to be processed in the event loop before
140ff24f054SPyun YongHyeonrescheduling a taskqueue.
141ff24f054SPyun YongHyeonThe accepted range is 32 to 255, the default value is 64 events.
142ff24f054SPyun YongHyeonThe interface does not need to be brought down and up again before
143ff24f054SPyun YongHyeona change takes effect.
144ff24f054SPyun YongHyeon.El
145ff24f054SPyun YongHyeon.Sh SEE ALSO
146ff24f054SPyun YongHyeon.Xr altq 4 ,
147ff24f054SPyun YongHyeon.Xr arp 4 ,
148ff24f054SPyun YongHyeon.Xr miibus 4 ,
149ff24f054SPyun YongHyeon.Xr netintro 4 ,
150ff24f054SPyun YongHyeon.Xr ng_ether 4 ,
151ff24f054SPyun YongHyeon.Xr vlan 4 ,
152ff24f054SPyun YongHyeon.Xr ifconfig 8
153ff24f054SPyun YongHyeon.Sh HISTORY
154ff24f054SPyun YongHyeonThe
155ff24f054SPyun YongHyeon.Nm
156ff24f054SPyun YongHyeondriver was written by
157ff24f054SPyun YongHyeon.An Pyun YongHyeon
158ff24f054SPyun YongHyeon.Aq yongari@FreeBSD.org .
159ff24f054SPyun YongHyeonIt first appeared in
160ff24f054SPyun YongHyeon.Fx 8.0 .
161