xref: /freebsd/share/man/man4/dc.4 (revision 90296834d97db401ea834f9e27960d66a97091d0)
196f2e892SBill Paul.\" Copyright (c) 1997, 1998, 1999
296f2e892SBill Paul.\"	Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
396f2e892SBill Paul.\"
496f2e892SBill Paul.\" Redistribution and use in source and binary forms, with or without
596f2e892SBill Paul.\" modification, are permitted provided that the following conditions
696f2e892SBill Paul.\" are met:
796f2e892SBill Paul.\" 1. Redistributions of source code must retain the above copyright
896f2e892SBill Paul.\"    notice, this list of conditions and the following disclaimer.
996f2e892SBill Paul.\" 2. Redistributions in binary form must reproduce the above copyright
1096f2e892SBill Paul.\"    notice, this list of conditions and the following disclaimer in the
1196f2e892SBill Paul.\"    documentation and/or other materials provided with the distribution.
1296f2e892SBill Paul.\" 3. All advertising materials mentioning features or use of this software
1396f2e892SBill Paul.\"    must display the following acknowledgement:
1496f2e892SBill Paul.\"	This product includes software developed by Bill Paul.
1596f2e892SBill Paul.\" 4. Neither the name of the author nor the names of any co-contributors
1696f2e892SBill Paul.\"    may be used to endorse or promote products derived from this software
1796f2e892SBill Paul.\"   without specific prior written permission.
1896f2e892SBill Paul.\"
1996f2e892SBill Paul.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
2096f2e892SBill Paul.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2196f2e892SBill Paul.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2296f2e892SBill Paul.\" ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
2396f2e892SBill Paul.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2496f2e892SBill Paul.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2596f2e892SBill Paul.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2696f2e892SBill Paul.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2796f2e892SBill Paul.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2896f2e892SBill Paul.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
2996f2e892SBill Paul.\" THE POSSIBILITY OF SUCH DAMAGE.
3096f2e892SBill Paul.\"
3196f2e892SBill Paul.\" $FreeBSD$
3296f2e892SBill Paul.\"
3386e3186eSTom Rhodes.Dd July 16, 2005
344c574bfdSRuslan Ermilov.Dt DC 4
353d45e180SRuslan Ermilov.Os
3696f2e892SBill Paul.Sh NAME
3796f2e892SBill Paul.Nm dc
3883e76ab9SMarius Strobl.Nd "DEC/Intel 21143 and clone 10/100 Ethernet driver"
3996f2e892SBill Paul.Sh SYNOPSIS
4086e3186eSTom RhodesTo compile support for the
4186e3186eSTom Rhodes.Nm
4290296834STom Rhodesdriver into your kernel, place the following lines in your
4390296834STom Rhodeskernel configuration file:
4486e3186eSTom Rhodes.Bd -ragged -offset indent
456b713d58SJeroen Ruigrok van der Werven.Cd "device miibus"
466b713d58SJeroen Ruigrok van der Werven.Cd "device dc"
4786e3186eSTom Rhodes.Ed
4886e3186eSTom Rhodes.Pp
4986e3186eSTom RhodesAlternatively, to load the
5086e3186eSTom Rhodes.Nm
5186e3186eSTom Rhodesdriver at boot time, place the following line in
5286e3186eSTom Rhodes.Xr loader.conf 5 :
5386e3186eSTom Rhodes.Bd -literal -offset indent
5486e3186eSTom Rhodesif_dc_load="YES"
5586e3186eSTom Rhodes.Ed
5696f2e892SBill Paul.Sh DESCRIPTION
5796f2e892SBill PaulThe
5896f2e892SBill Paul.Nm
5983e76ab9SMarius Strobldriver provides support for several PCI Fast Ethernet adapters and
605f9bc185SSimon L. B. Nielsenembedded controllers based on the the DEC/Intel 21143 chipset and clones.
6196f2e892SBill Paul.Pp
625f9bc185SSimon L. B. NielsenAll of supported chipsets have the same general register layout, DMA
636d249eeeSSheldon Hearndescriptor format and method of operation.
646d249eeeSSheldon HearnAll of the clone chips
656d249eeeSSheldon Hearnare based on the 21143 design with various modifications.
666d249eeeSSheldon HearnThe
6796f2e892SBill Paul21143 itself has support for 10baseT, BNC, AUI, MII and symbol
6896f2e892SBill Paulmedia attachments, 10 and 100Mbps speeds in full or half duplex,
696d249eeeSSheldon Hearnbuilt in NWAY autonegotiation and wake on LAN.
706d249eeeSSheldon HearnThe 21143 also
7196f2e892SBill Pauloffers several receive filter programming options including
7296f2e892SBill Paulperfect filtering, inverse perfect filtering and hash table
7396f2e892SBill Paulfiltering.
7496f2e892SBill Paul.Pp
7596f2e892SBill PaulSome clone chips duplicate the 21143 fairly closely while others
76f444a4c5SDima Dorfmanonly maintain superficial similarities.
776d249eeeSSheldon HearnSome support only MII
786d249eeeSSheldon Hearnmedia attachments.
796d249eeeSSheldon HearnOthers use different receiver filter programming
806d249eeeSSheldon Hearnmechanisms.
816d249eeeSSheldon HearnAt least one supports only chained DMA descriptors
8296f2e892SBill Paul(most support both chained descriptors and contiguously allocated
835203edcdSRuslan Ermilovfixed size rings).
845203edcdSRuslan ErmilovSome chips (especially the PNIC) also have
856d249eeeSSheldon Hearnpeculiar bugs.
866d249eeeSSheldon HearnThe
8796f2e892SBill Paul.Nm
8896f2e892SBill Pauldriver does its best to provide generalized support for all
89f87717faSMike Pritchardof these chipsets in order to keep special case code to a minimum.
9096f2e892SBill Paul.Pp
9196f2e892SBill PaulThese chips are used by many vendors which makes it
92f444a4c5SDima Dorfmandifficult to provide a complete list of all supported cards.
9396f2e892SBill Paul.Pp
9496f2e892SBill PaulThe
9596f2e892SBill Paul.Nm
9696f2e892SBill Pauldriver supports the following media types:
9796f2e892SBill Paul.Pp
98da2fa159SRuslan Ermilov.Bl -tag -width ".Cm 10baseT/UTP"
99da2fa159SRuslan Ermilov.It Cm autoselect
10096f2e892SBill PaulEnable autoselection of the media type and options.
10196f2e892SBill PaulThe user can manually override
10296f2e892SBill Paulthe autoselected mode by adding media options to the
10396f2e892SBill Paul.Pa /etc/rc.conf
10496f2e892SBill Paulfile.
10596f2e892SBill Paul.Pp
10696f2e892SBill PaulNote: the built-in NWAY autonegotiation on the original PNIC 82c168
10796f2e892SBill Paulchip is horribly broken and is not supported by the
10896f2e892SBill Paul.Nm
109f444a4c5SDima Dorfmandriver at this time (see the
110f444a4c5SDima Dorfman.Sx BUGS
111f444a4c5SDima Dorfmansection for details).
1126d249eeeSSheldon HearnThe original 82c168 appears
11396f2e892SBill Paulon very early revisions of the LinkSys LNE100TX and Matrox FastNIC.
114da2fa159SRuslan Ermilov.It Cm 10baseT/UTP
1156d249eeeSSheldon HearnSet 10Mbps operation.
1166d249eeeSSheldon HearnThe
117da2fa159SRuslan Ermilov.Cm mediaopt
11896f2e892SBill Pauloption can also be used to enable
119da2fa159SRuslan Ermilov.Cm full-duplex
1206d249eeeSSheldon Hearnoperation.
1216d249eeeSSheldon HearnNot specifying
122da2fa159SRuslan Ermilov.Cm full-duplex
12396f2e892SBill Paulimplies
124da2fa159SRuslan Ermilov.Cm half-duplex
12596f2e892SBill Paulmode.
126da2fa159SRuslan Ermilov.It Cm 100baseTX
12783e76ab9SMarius StroblSet 100Mbps (Fast Ethernet) operation.
1286d249eeeSSheldon HearnThe
129da2fa159SRuslan Ermilov.Cm mediaopt
13096f2e892SBill Pauloption can also be used to enable
131da2fa159SRuslan Ermilov.Cm full-duplex
1326d249eeeSSheldon Hearnoperation.
1336d249eeeSSheldon HearnNot specifying
134da2fa159SRuslan Ermilov.Cm full-duplex
13596f2e892SBill Paulimplies
136da2fa159SRuslan Ermilov.Cm half-duplex
13796f2e892SBill Paulmode.
13896f2e892SBill Paul.El
13996f2e892SBill Paul.Pp
14096f2e892SBill PaulThe
14196f2e892SBill Paul.Nm
14296f2e892SBill Pauldriver supports the following media options:
14396f2e892SBill Paul.Pp
144da2fa159SRuslan Ermilov.Bl -tag -width ".Cm full-duplex"
145da2fa159SRuslan Ermilov.It Cm full-duplex
1466d249eeeSSheldon HearnForce full duplex operation.
1476d249eeeSSheldon HearnThe interface will operate in
14896f2e892SBill Paulhalf duplex mode if this media option is not specified.
14996f2e892SBill Paul.El
15096f2e892SBill Paul.Pp
15196f2e892SBill PaulNote that the 100baseTX media type may not be available on certain
1521d705c5cSColin PercivalIntel 21143 adapters which support 10Mbps media attachments only.
15396f2e892SBill PaulFor more information on configuring this device, see
15496f2e892SBill Paul.Xr ifconfig 8 .
1555f9bc185SSimon L. B. Nielsen.Sh HARDWARE
1565f9bc185SSimon L. B. NielsenThe
1575f9bc185SSimon L. B. Nielsen.Nm
1585f9bc185SSimon L. B. Nielsendriver provides support for the following chipsets:
1595f9bc185SSimon L. B. Nielsen.Pp
1605f9bc185SSimon L. B. Nielsen.Bl -bullet -compact
1615f9bc185SSimon L. B. Nielsen.It
1625f9bc185SSimon L. B. NielsenDEC/Intel 21143
1635f9bc185SSimon L. B. Nielsen.It
1645f9bc185SSimon L. B. NielsenADMtek AL981 Comet, AN985 Centaur, ADM9511 Centaur II and ADM9513
1655f9bc185SSimon L. B. NielsenCentaur II
1665f9bc185SSimon L. B. Nielsen.It
1675f9bc185SSimon L. B. NielsenASIX Electronics AX88140A and AX88141
1685f9bc185SSimon L. B. Nielsen.It
1695f9bc185SSimon L. B. NielsenConexant LANfinity RS7112 (miniPCI)
1705f9bc185SSimon L. B. Nielsen.It
1715f9bc185SSimon L. B. NielsenDavicom DM9009, DM9100, DM9102 and DM9102A
1725f9bc185SSimon L. B. Nielsen.It
1735f9bc185SSimon L. B. NielsenLite-On 82c168 and 82c169 PNIC
1745f9bc185SSimon L. B. Nielsen.It
1755f9bc185SSimon L. B. NielsenLite-On/Macronix 82c115 PNIC II
1765f9bc185SSimon L. B. Nielsen.It
1775f9bc185SSimon L. B. NielsenMacronix 98713, 98713A, 98715, 98715A, 98715AEC-C, 98725, 98727 and 98732
1785f9bc185SSimon L. B. Nielsen.It
1795f9bc185SSimon L. B. NielsenXircom X3201 (cardbus only)
1805f9bc185SSimon L. B. Nielsen.El
1815f9bc185SSimon L. B. Nielsen.Pp
1825f9bc185SSimon L. B. NielsenThe
1835f9bc185SSimon L. B. Nielsenfollowing NICs are known to work with the
1845f9bc185SSimon L. B. Nielsen.Nm
1855f9bc185SSimon L. B. Nielsendriver at this time:
1865f9bc185SSimon L. B. Nielsen.Pp
1875f9bc185SSimon L. B. Nielsen.Bl -bullet -compact
1885f9bc185SSimon L. B. Nielsen.It
1895f9bc185SSimon L. B. Nielsen3Com OfficeConnect 10/100B (ADMtek AN985 Centaur-P)
1905f9bc185SSimon L. B. Nielsen.It
1915f9bc185SSimon L. B. NielsenAbocom FE2500
1925f9bc185SSimon L. B. Nielsen.It
1935f9bc185SSimon L. B. NielsenAccton EN1217 (98715A)
1945f9bc185SSimon L. B. Nielsen.It
1955f9bc185SSimon L. B. NielsenAccton EN2242 MiniPCI
1965f9bc185SSimon L. B. Nielsen.It
1975f9bc185SSimon L. B. NielsenAdico AE310TX (98715A)
1985f9bc185SSimon L. B. Nielsen.It
1995f9bc185SSimon L. B. NielsenAlfa Inc GFC2204 (ASIX AX88140A)
2005f9bc185SSimon L. B. Nielsen.It
2015f9bc185SSimon L. B. NielsenBuilt in 10Mbps only Ethernet on Compaq Presario 7900 series
2025f9bc185SSimon L. B. Nielsendesktops (21143, non-MII)
2035f9bc185SSimon L. B. Nielsen.It
2045f9bc185SSimon L. B. NielsenBuilt in DE500-BA on DEC Alpha workstations (21143, non-MII)
2055f9bc185SSimon L. B. Nielsen.It
2065f9bc185SSimon L. B. NielsenBuilt in Sun DMFE 10/100 Mbps Ethernet on Sun Netra X1 and Sun Fire V100
2075f9bc185SSimon L. B. Nielsen(DM9102A, MII)
2085f9bc185SSimon L. B. Nielsen.It
2095f9bc185SSimon L. B. NielsenBuilt in Ethernet on LinkSys EtherFast 10/100 Instant GigaDrive (DM9102, MII)
2105f9bc185SSimon L. B. Nielsen.It
2115f9bc185SSimon L. B. NielsenCNet Pro110B (ASIX AX88140A)
2125f9bc185SSimon L. B. Nielsen.It
2135f9bc185SSimon L. B. NielsenCNet Pro120A (98715A or 98713A) and CNet Pro120B (98715)
2145f9bc185SSimon L. B. Nielsen.It
2155f9bc185SSimon L. B. NielsenCompex RL100-TX (98713 or 98713A)
2165f9bc185SSimon L. B. Nielsen.It
2175f9bc185SSimon L. B. NielsenD-Link DFE-570TX (21143, MII, quad port)
2185f9bc185SSimon L. B. Nielsen.It
2195f9bc185SSimon L. B. NielsenDigital DE500-BA 10/100 (21143, non-MII)
2205f9bc185SSimon L. B. Nielsen.It
2215f9bc185SSimon L. B. NielsenELECOM Laneed LD-CBL/TXA (ADMtek AN985)
2225f9bc185SSimon L. B. Nielsen.It
2235f9bc185SSimon L. B. NielsenHawking CB102 CardBus
2245f9bc185SSimon L. B. Nielsen.It
2255f9bc185SSimon L. B. NielsenIBM EtherJet Cardbus Adapter
2265f9bc185SSimon L. B. Nielsen.It
2275f9bc185SSimon L. B. NielsenIntel PRO/100 Mobile Cardbus (versions that use the X3201 chipset)
2285f9bc185SSimon L. B. Nielsen.It
2295f9bc185SSimon L. B. NielsenJaton XpressNet (Davicom DM9102)
2305f9bc185SSimon L. B. Nielsen.It
2315f9bc185SSimon L. B. NielsenKingston KNE100TX (21143, MII)
2325f9bc185SSimon L. B. Nielsen.It
2335f9bc185SSimon L. B. NielsenKingston KNE110TX (PNIC 82c169)
2345f9bc185SSimon L. B. Nielsen.It
2355f9bc185SSimon L. B. NielsenLinkSys LNE100TX (PNIC 82c168, 82c169)
2365f9bc185SSimon L. B. Nielsen.It
2375f9bc185SSimon L. B. NielsenLinkSys LNE100TX v2.0 (PNIC II 82c115)
2385f9bc185SSimon L. B. Nielsen.It
2395f9bc185SSimon L. B. NielsenLinkSys LNE100TX v4.0/4.1 (ADMtek AN985 Centaur-P)
2405f9bc185SSimon L. B. Nielsen.It
2415f9bc185SSimon L. B. NielsenMatrox FastNIC 10/100 (PNIC 82c168, 82c169)
2425f9bc185SSimon L. B. Nielsen.It
2435f9bc185SSimon L. B. NielsenMelco LGY-PCI-TXL
2445f9bc185SSimon L. B. Nielsen.It
2455f9bc185SSimon L. B. NielsenMicrosoft MN-120 10/100 CardBus (ADMTek Centaur-C)
2465f9bc185SSimon L. B. Nielsen.It
2475f9bc185SSimon L. B. NielsenMicrosoft MN-130 10/100 PCI (ADMTek Centaur-P)
2485f9bc185SSimon L. B. Nielsen.It
2495f9bc185SSimon L. B. NielsenNDC SOHOware SFA110A (98713A)
2505f9bc185SSimon L. B. Nielsen.It
2515f9bc185SSimon L. B. NielsenNDC SOHOware SFA110A Rev B4 (98715AEC-C)
2525f9bc185SSimon L. B. Nielsen.It
2535f9bc185SSimon L. B. NielsenNetGear FA310-TX Rev.\& D1, D2 or D3 (PNIC 82c169)
2545f9bc185SSimon L. B. Nielsen.It
2555f9bc185SSimon L. B. NielsenNetgear FA511
2565f9bc185SSimon L. B. Nielsen.It
2575f9bc185SSimon L. B. NielsenPlaneX FNW-3602-T (ADMtek AN985)
2585f9bc185SSimon L. B. Nielsen.It
259889cd9b2SChristian BruefferSMC EZ Card 10/100 1233A-TX (ADMtek AN985)
260e674bff8SChristian Brueffer.It
2615f9bc185SSimon L. B. NielsenSVEC PN102-TX (98713)
2625f9bc185SSimon L. B. Nielsen.It
2635f9bc185SSimon L. B. NielsenXircom Cardbus Realport
2645f9bc185SSimon L. B. Nielsen.It
2655f9bc185SSimon L. B. NielsenXircom Cardbus Ethernet 10/100
2665f9bc185SSimon L. B. Nielsen.It
2675f9bc185SSimon L. B. NielsenXircom Cardbus Ethernet II 10/100
2685f9bc185SSimon L. B. Nielsen.El
26983e76ab9SMarius Strobl.Sh NOTES
27083e76ab9SMarius StroblOn sparc64 the
27183e76ab9SMarius Strobl.Nm
27283e76ab9SMarius Strobldriver respects the
27383e76ab9SMarius Strobl.Va local-mac-address?
27483e76ab9SMarius Stroblsystem configuration variable for the built in Sun DMFE 10/100 Mbps Ethernet
27583e76ab9SMarius Stroblinterfaces on Sun Netra X1 and Sun Fire V100.
27683e76ab9SMarius StroblThis system configuration variable can be set in the Open Firmware boot
27783e76ab9SMarius Stroblmonitor using the
27883e76ab9SMarius Strobl.Ic setenv
27983e76ab9SMarius Stroblcommand or by
28083e76ab9SMarius Strobl.Xr eeprom 8 .
28183e76ab9SMarius StroblIf set to
28283e76ab9SMarius Strobl.Dq Li false
28383e76ab9SMarius Strobl(the default), the
28483e76ab9SMarius Strobl.Nm
28583e76ab9SMarius Strobldriver will use the system's default MAC address for both of the built in
28683e76ab9SMarius Strobldevices.
28783e76ab9SMarius StroblIf set to
28883e76ab9SMarius Strobl.Dq Li true ,
28983e76ab9SMarius Stroblthe unique MAC address of each interface is used rather than the system's
29083e76ab9SMarius Strobldefault MAC address.
29196f2e892SBill Paul.Sh DIAGNOSTICS
29296f2e892SBill Paul.Bl -diag
29396f2e892SBill Paul.It "dc%d: couldn't map ports/memory"
29496f2e892SBill PaulA fatal initialization error has occurred.
29596f2e892SBill Paul.It "dc%d: couldn't map interrupt"
29696f2e892SBill PaulA fatal initialization error has occurred.
29796f2e892SBill Paul.It "dc%d: watchdog timeout"
29896f2e892SBill PaulA packet was queued for transmission and a transmit command was
299f444a4c5SDima Dorfmanissued, but the device failed to acknowledge the transmission
3006d249eeeSSheldon Hearnbefore a timeout expired.
3016d249eeeSSheldon HearnThis can happen if the device is unable
30296f2e892SBill Paulto deliver interrupts for some reason, of if there is a problem with
303f444a4c5SDima Dorfmanthe network connection (cable or network equipment) that results in a loss
304f444a4c5SDima Dorfmanof link.
30596f2e892SBill Paul.It "dc%d: no memory for rx list"
30696f2e892SBill PaulThe driver failed to allocate an mbuf for the receiver ring.
30796f2e892SBill Paul.It "dc%d: TX underrun -- increasing TX threshold"
30896f2e892SBill PaulThe device generated a transmit underrun error while attempting to
3096d249eeeSSheldon HearnDMA and transmit a packet.
3106d249eeeSSheldon HearnThis happens if the host is not able to
3116d249eeeSSheldon HearnDMA the packet data into the NIC's FIFO fast enough.
3126d249eeeSSheldon HearnThe driver
31396f2e892SBill Paulwill dynamically increase the transmit start threshold so that
31496f2e892SBill Paulmore data must be DMAed into the FIFO before the NIC will start
31596f2e892SBill Paultransmitting it onto the wire.
31696f2e892SBill Paul.It "dc%d: TX underrun -- using store and forward mode"
31796f2e892SBill PaulThe device continued to generate transmit underruns even after all
31896f2e892SBill Paulpossible transmit start threshold settings had been tried, so the
3196d249eeeSSheldon Hearndriver programmed the chip for store and forward mode.
3206d249eeeSSheldon HearnIn this mode,
32196f2e892SBill Paulthe NIC will not begin transmission until the entire packet has been
32296f2e892SBill Paultransfered into its FIFO memory.
32396f2e892SBill Paul.It "dc%d: chip is in D3 power state -- setting to D0"
32496f2e892SBill PaulThis message applies only to adapters which support power
3256d249eeeSSheldon Hearnmanagement.
3266d249eeeSSheldon HearnSome operating systems place the controller in low power
32796f2e892SBill Paulmode when shutting down, and some PCI BIOSes fail to bring the chip
3286d249eeeSSheldon Hearnout of this state before configuring it.
3296d249eeeSSheldon HearnThe controller loses all of
33096f2e892SBill Paulits PCI configuration in the D3 state, so if the BIOS does not set
3310227791bSRuslan Ermilovit back to full power mode in time, it will not be able to configure it
3326d249eeeSSheldon Hearncorrectly.
3336d249eeeSSheldon HearnThe driver tries to detect this condition and bring
33496f2e892SBill Paulthe adapter back to the D0 (full power) state, but this may not be
3356d249eeeSSheldon Hearnenough to return the driver to a fully operational condition.
3366d249eeeSSheldon HearnIf
33796f2e892SBill Paulyou see this message at boot time and the driver fails to attach
338db6ccea6SStephen McKaythe device as a network interface, you will have to perform a second
33996f2e892SBill Paulwarm boot to have the device properly configured.
34096f2e892SBill Paul.Pp
34196f2e892SBill PaulNote that this condition only occurs when warm booting from another
3426d249eeeSSheldon Hearnoperating system.
3436d249eeeSSheldon HearnIf you power down your system prior to booting
34496f2e892SBill Paul.Fx ,
34596f2e892SBill Paulthe card should be configured correctly.
34696f2e892SBill Paul.El
34796f2e892SBill Paul.Sh SEE ALSO
34896f2e892SBill Paul.Xr arp 4 ,
349071d726dSTom Rhodes.Xr miibus 4 ,
35096f2e892SBill Paul.Xr netintro 4 ,
35195d7878cSArchie Cobbs.Xr ng_ether 4 ,
352a6c410e7SChristian Brueffer.Xr polling 4 ,
35383e76ab9SMarius Strobl.Xr eeprom 8 ,
35495d7878cSArchie Cobbs.Xr ifconfig 8
35596f2e892SBill Paul.Rs
35696f2e892SBill Paul.%T ADMtek AL981, AL983 and AL985 data sheets
35796f2e892SBill Paul.%O http://www.admtek.com.tw
35896f2e892SBill Paul.Re
35996f2e892SBill Paul.Rs
36096f2e892SBill Paul.%T ASIX Electronics AX88140A and AX88141 data sheets
36196f2e892SBill Paul.%O http://www.asix.com.tw
36296f2e892SBill Paul.Re
36396f2e892SBill Paul.Rs
36496f2e892SBill Paul.%T Davicom DM9102 data sheet
36596f2e892SBill Paul.%O http://www.davicom8.com
36696f2e892SBill Paul.Re
36796f2e892SBill Paul.Rs
36896f2e892SBill Paul.%T Intel 21143 Hardware Reference Manual
36996f2e892SBill Paul.%O http://developer.intel.com
37096f2e892SBill Paul.Re
37196f2e892SBill Paul.Rs
37296f2e892SBill Paul.%T Macronix 98713/A, 98715/A and 98725 data sheets
37396f2e892SBill Paul.%O http://www.macronix.com
37496f2e892SBill Paul.Re
37596f2e892SBill Paul.Rs
37696f2e892SBill Paul.%T Macronix 98713/A and 98715/A app notes
37796f2e892SBill Paul.%O http://www.macronix.com
37896f2e892SBill Paul.Re
37996f2e892SBill Paul.Sh HISTORY
38096f2e892SBill PaulThe
38196f2e892SBill Paul.Nm
38296f2e892SBill Pauldevice driver first appeared in
38396f2e892SBill Paul.Fx 4.0 .
38496f2e892SBill Paul.Sh AUTHORS
38596f2e892SBill PaulThe
38696f2e892SBill Paul.Nm
38796f2e892SBill Pauldriver was written by
38896f2e892SBill Paul.An Bill Paul Aq wpaul@ee.columbia.edu .
38996f2e892SBill Paul.Sh BUGS
39096f2e892SBill PaulThe Macronix application notes claim that in order to put the
391db6ccea6SStephen McKaychips in normal operation, the driver must write a certain magic
3926d249eeeSSheldon Hearnnumber into the CSR16 register.
3936d249eeeSSheldon HearnThe numbers are documented in
39496f2e892SBill Paulthe app notes, but the exact meaning of the bits is not.
39596f2e892SBill Paul.Pp
39696f2e892SBill PaulThe 98713A seems to have a problem with 10Mbps full duplex mode.
39796f2e892SBill PaulThe transmitter works but the receiver tends to produce many
3986d249eeeSSheldon Hearnunexplained errors leading to very poor overall performance.
3996d249eeeSSheldon HearnThe
4006d249eeeSSheldon Hearn98715A does not exhibit this problem.
4016d249eeeSSheldon HearnAll other modes on the
40296f2e892SBill Paul98713A seem to work correctly.
40396f2e892SBill Paul.Pp
40496f2e892SBill PaulThe original 82c168 PNIC chip has built in NWAY support which is
40596f2e892SBill Paulused on certain early LinkSys LNE100TX and Matrox FastNIC cards,
40696f2e892SBill Paulhowever it is horribly broken and difficult to use reliably.
40796f2e892SBill PaulConsequently, autonegotiation is not currently supported for this
40836a142c4SRuslan Ermilovchipset: the driver defaults the NIC to 10baseT half duplex, and it is
40996f2e892SBill Paulup to the operator to manually select a different mode if necessary.
41096f2e892SBill Paul(Later cards use an external MII transceiver to implement NWAY
41196f2e892SBill Paulautonegotiation and work correctly.)
41296f2e892SBill Paul.Pp
41396f2e892SBill PaulThe
41496f2e892SBill Paul.Nm
41596f2e892SBill Pauldriver programs 82c168 and 82c169 PNIC chips to use the store and
4166d249eeeSSheldon Hearnforward setting for the transmit start threshold by default.
4176d249eeeSSheldon HearnThis
41896f2e892SBill Paulis to work around problems with some NIC/PCI bus combinations where
41996f2e892SBill Paulthe PNIC can transmit corrupt frames when operating at 100Mbps,
42096f2e892SBill Paulprobably due to PCI DMA burst transfer errors.
42196f2e892SBill Paul.Pp
4224c42afccSBill PaulThe 82c168 and 82c169 PNIC chips also have a receiver bug that
42396f2e892SBill Paulsometimes manifests during periods of heavy receive and transmit
42496f2e892SBill Paulactivity, where the chip will improperly DMA received frames to
4256d249eeeSSheldon Hearnthe host.
4266d249eeeSSheldon HearnThe chips appear to upload several kilobytes of garbage
42796f2e892SBill Pauldata along with the received frame data, dirtying several RX buffers
4286d249eeeSSheldon Hearninstead of just the expected one.
4296d249eeeSSheldon HearnThe
43096f2e892SBill Paul.Nm
431f444a4c5SDima Dorfmandriver detects this condition and will salvage the frame; however,
43296f2e892SBill Paulit incurs a serious performance penalty in the process.
43396f2e892SBill Paul.Pp
43496f2e892SBill PaulThe PNIC chips also sometimes generate a transmit underrun error when
43596f2e892SBill Paulthe driver attempts to download the receiver filter setup frame, which
4366d249eeeSSheldon Hearncan result in the receive filter being incorrectly programmed.
4376d249eeeSSheldon HearnThe
43896f2e892SBill Paul.Nm
43996f2e892SBill Pauldriver will watch for this condition and requeue the setup frame until
44096f2e892SBill Paulit is transfered successfully.
44196f2e892SBill Paul.Pp
44296f2e892SBill PaulThe ADMtek AL981 chip (and possibly the AN985 as well) has been observed
44396f2e892SBill Paulto sometimes wedge on transmit: this appears to happen when the driver
44496f2e892SBill Paulqueues a sequence of frames which cause it to wrap from the end of the
445f444a4c5SDima Dorfmantransmit descriptor ring back to the beginning.
4466d249eeeSSheldon HearnThe
44796f2e892SBill Paul.Nm
448f87717faSMike Pritcharddriver attempts to avoid this condition by not queuing any frames past
44996f2e892SBill Paulthe end of the transmit ring during a single invocation of the
45096f2e892SBill Paul.Fn dc_start
4516d249eeeSSheldon Hearnroutine.
4526d249eeeSSheldon HearnThis workaround has a negligible impact on transmit performance.
453