summaryrefslogtreecommitdiff
path: root/sys/dev/ic/xl.c
AgeCommit message (Collapse)Author
2004-11-01back out previous commit.Brad Smith
2004-10-31don't swap zerosBrad Smith
2004-10-23add missing braces, noticed by mcbride@Brad Smith
2004-10-23re-add old xl_encap_90xB() for 905B/C cards. removed in rev 1.52.Brad Smith
fixes reported mbuf leaks as well as transmit side breakage on macppc, PR 3892. ok mcbride@
2004-10-02remove if NVLAN here tooBrad Smith
2004-09-28remove if NVLAN around IFCAP_VLAN_MTUBrad Smith
2004-09-23don't need to set ifp->if_mtu or ifp->if_output in each driver,Brad Smith
{ether,atm,fddi}_ifattach already does this. ok mcbride@ markus@ henning@
2004-06-04fix conversion to ether_crc32_be(). problem noticed by naddy@Brad Smith
ok mcbride@
2004-06-01dv_xname is not the same as dv_unit (for hell knows what reason)Michael Shalayeff
2004-05-30a bit of syncing with the FreeBSD driver, namely...Brad Smith
- disable TX hardware checksumming since its buggy and slow - re-enable the hardware multicast filter setup on 3c905B/C's - enable reception of VLAN sized frames on 3c90x's (pre B/C) - remove all DELAY(1) calls around MII operations in the xl driver. according to the MII specification, the delay produced by our reads alone are sufficient for correct operation. this reduces the time mii_tick takes from 10ms to ~1ms here. that's still a lot, but much better than before - report media status for bitrate PHYs - change the method used to detect older boomerang chips - fix an issue with reading PHY regs over the i2c bus - fix mbuf leaks in an error (rare) code path - reuse the TX descriptor if xl_encap() failed instead of just picking the next one - fix bug with 3c90xB cards and newer. We weren't trying to copy the mbuf chain into an mbuf cluster when there is more than 63 mbufs in the chain. we were trying with older cards though - add some magic bits necessary to turn the transmitter on for some (newer) 556B chips local change... - use ether_crc32_be() instead of hand-rolled xl_calchash() tested on i386/3c900 by beck@, sparc64/3c905C by me, i386/3c905C by sturm@, naddy@ and a few others ok deraadt@
2003-10-21typos from Tom Cosgrove;Jason McIntyre
Tom: I did not commit a couple of your changes. i did not include some punctuation fixes (full stops, etc.) mnemorable -> mnemonic: i decided memorable was probably better instrunctions -> instruction: i kept the plural
2003-06-29remove usage of xl_unitJason Wright
2003-03-24splimp() around xl_reset() during autoconf. something in xl_reset() wantsJason Wright
to generate an interrupt before the rings are setup correctly on some variants; ok deraadt.
2003-01-05spellingTheo de Raadt
2002-12-02- Remove a few magic constantsJason Wright
- set baudrate for the non-mii modes
2002-11-25remove printf's in xl_setmode().Brad Smith
-- deraadt@ ok
2002-11-17Make sure never to put a loaded dmamap in the spare. 3c90x should workJason Wright
on big endian now...
2002-11-17this driver has never been in sys/pci (in OpenBSD at least) and supportsJason Wright
cardbus and pci interfaces; pointed out by brad.
2002-11-17Fix another case (tx this time) where buffers were not unloaded (nor ↵Jason Wright
sync'd). (bad bad aaron): 90xB works on sparc64, 90x is probably still broken.
2002-11-17- lightly season with htole32 and friends... enough to get rx workingJason Wright
on sparc64 - also fix a bug when dmamap's were never freed on the rx side (bad aaron), and avoid a sync if we run out of buffers.
2002-08-22simplify multicast setup on the 3c905 (pre-B/C, etc)Jason Wright
2002-07-09Don't write 32 bits to a 16-bit register.Aaron Campbell
2002-06-15Check the correct variable when freeing the RX/TX lists.Aaron Campbell
2002-06-15bus_dma'ify. Tested on 3c900(pci), 3c905b(pci), and 3c575c(cardbus). ThanksAaron Campbell
to todd@ and camiel@ for trying it, too.
2002-06-09a step towards consistancy; in general:Todd T. Fries
'struct arpcom foo' -> 'struct arpcom sc_arpcom' ok itojun@
2002-06-08Add hardware TCP/IP checksum offloading support for receive and transmit forAaron Campbell
the 3c905b; deraadt@ ok.
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-15Don't cast nonexistent return value from splx to (void). ok art@Thomas Nordin
2002-01-25Disestablish *powerhook* on detach. jason@ okThomas Nordin
2001-12-15Disestablish the powerhook on detach. ok jason@Thomas Nordin
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-08-19Don't reset rx/tx without turning them back on after suspend (Beck is nowJason Wright
able to do "Real Work" after a suspend)
2001-08-19Add a powerhook for bringing the 556 out of sleepy mode after suspend.Jason Wright
(This isn't perfect... it still requires an down up transition, but Bob is kicking me off his laptop so he can do "Real Work").
2001-08-12remove some of the redundant vm includesMichael Shalayeff
2001-08-03This driver allows vlan sized frames on 905B, set IFCAP_VLAN_MTU on that chipChris Cappuccio
2001-07-02these don't depend on pci register defsJason Wright
2001-06-27ALTQ'ify network drivers.Kenjiro Cho
- use the new queue macros. - use IFQ_POLL() to peek at the next packet. - use IFQ_IS_EMPTY() for empty check. - drivers should always check if (m == NULL) after IFQ_DEQUEUE(), since it could return NULL even when IFQ_IS_EMPTY() is FALSE under rate-limiting. - drivers are supposed to call if_start from tx complete interrupts (in order to trigger the next dequeue under rate-limiting).
2001-06-23ether_input_mbuf().Federico G. Schwindt
2001-04-08Don't print anything for transmission error 90, since the driver alwaysAaron Campbell
recovers from the situation, and there's not much point in knowing about it.
2001-03-25Missing splx(). Thanks to Dawson and team for finding thisConstantine Sapuntzakis
2001-02-20for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okMichael Shalayeff
2001-02-02No need for xl(4) to report tx underruns, they are much too common, and theAaron Campbell
driver adjusts itself to compensate anyway; jason@ ok.
2001-01-12add SIOCSIFMTU; angelos@ coachedTodd T. Fries
2000-11-09new timeoutsMichael Shalayeff
2000-10-19if vlans are in use, then set the 3c905b to accept frames of size 1518.Jason Wright
2000-10-16Use mii_attach() directly instead of mii_phy_probe().Aaron Campbell
2000-10-15Do not pass uninitialized ifmedia structures to ifmedia_add(). Fixes PR1426.Aaron Campbell
Thanks to reinhard@ for testing.
2000-10-14There's a Type III 3c656C card, too.Aaron Campbell
2000-10-13Do reset properly on MiniPCI adapters.Aaron Campbell
2000-10-07Correct interrupt ack'ing for CardBus and MiniPCI. I hope this fixes 3c556.Aaron Campbell