summaryrefslogtreecommitdiff
path: root/sys/dev/ic/dc.c
AgeCommit message (Collapse)Author
2004-05-31multicast cleanups:Ryan Thomas McBride
- get rid of hand rolled crc32 logic, use ether_crc32_{le,be} - accept all multicast if a range is encountered
2004-04-15user bus_dmamap_load_mbuf and set rcvif on receiveMichael Shalayeff
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-09-29add more dmamap_sync()s where appropriate modify loops to insure proper ↵Michael Shalayeff
syncing; jason@ testing
2003-09-25no need for a redundant check; from form@ and jason okMichael Shalayeff
2003-08-28fix bzero size; from pechkinMichael Shalayeff
2003-06-16be more sane w/ byte swapping and leave the le archs at the same behaviour ↵Michael Shalayeff
and give be archs a better chance at getting the correct mac address as tested on the mac and hppa where mac has an additional bug w/ the phy bit still remaining and hppa seems fine; jason@ ok
2003-05-20AN983 endian issue; from FreeBSD via PR 3263 with minor style fixes by meHenning Brauer
ok jason@
2003-05-17fix up the media handling for the intel based MACs. Also hack around aJason Wright
bug in the Momenco firmware on the Leopard-V, which now has one port working.
2003-04-29grr... %s, not dc%sJason Wright
2003-04-29- remove last vestige of "old autoconf": dc_unit is dead, long live dv_xnameJason Wright
- remove a bunch of #if 0 stuff (most of which referred to dc_unit, grr) - delay a bzero until necessary
2003-04-29KNFJason Wright
2003-02-25remove redundant check.Ted Unangst
ok henning@
2003-01-31more quietTheo de Raadt
2002-10-21ugly hack to make the 21145 work without manual media setting.Henning Brauer
many many many thanks to nick@, who booted no less then 8 kernels for me today while hacking on that (and this includes going downstairs to the basement and up again 8 times...) ok jason@
2002-10-20add support for intel 21145Henning Brauer
This chip is some strange abnormal 21143 variant. It really only works with 10 MBit/s halfduplex only and autonegotiation is totally broken in hardware. Should also have a HomePNA phy, but we don't support that. for now requires and explicit "media 10BaseT". if anybody has such a chip please mail me. nick@ is the only one who has the hardware and did an incredible amount of testing. Thanks for all the help, Nick! some hints and ok jason@
2002-07-05Remove an unused #define (belongs only in the PCI attachment source file).Aaron Campbell
2002-06-09a step towards consistancy; in general:Todd T. Fries
'struct arpcom foo' -> 'struct arpcom sc_arpcom' ok itojun@
2002-06-09Handle out of memory gracefully. ok jason@Thomas Nordin
2002-04-18add support for Conexant LANfinity RS7112; based on patch from Maurice ↵Jason Wright
Nonnekes <maurice@amaze.nl> based on FreeBSD (only minor surgery necessary)
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-17drivers may not be noisyTheo de Raadt
2002-02-15Don't cast nonexistent return value from splx to (void). ok art@Thomas Nordin
2001-12-13Fix old alpha bug recently triggered by conversion to busdma.Nathan Binkert
2001-12-08Go ahead and fix the xircom filter setup to work on big endian too ↵Jason Wright
(untested, but it's pretty similiar to the tested 21143 case).
2001-12-08use htole32() on the data going into the setup frame for the ↵Jason Wright
dc_setfilt_21143() case at least. XXX I'm looking at the other filter setups and they appear to need work for BE too.
2001-12-06add bus_dmamap_sync()'s on the descriptors tooJason Wright
(with all this, my Netra X1 is up and running with an NFS root)
2001-12-06a few more bus_dmamap_sync()'s and some borrowed setup frame macros from ↵Jason Wright
NetBSD, and RX works on sparc64.
2001-12-06enough bus_dmamap_sync() and htole()/letoh() to get TX working on sparc64.Jason Wright
ALso, get the MAC address from myetheraddr() instead of trying to use the eeprom on sparc64.
2001-12-06vtophys, R.I.P. (tx now uses bus_dma)Jason Wright
2001-12-06move rx handling over to bus_dma... that just leaves one vtophys() in tx.Jason Wright
2001-12-06move the setup buffer and pad into a bus_dma alloced areaJason Wright
(current score: 2 vtophys calls to go...)
2001-12-06Checkpoint bus_dma work in progress:Jason Wright
- descriptor lists are now bus_dma allocated and manipulated (for those keeping score: 6 vtophys dead, 4 to go)
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-22Support more dc(4) CardBus devices, including the AN985-based Linksys PCMPC200Aaron Campbell
10/100 CardBus Ethernet adapter (thanks to beck@ for the donation).
2001-08-12remove some of the redundant vm includesMichael Shalayeff
2001-08-03Set IFCAP_VLAN_MTU, this driver already allows vlan-size framesChris 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-13Oops, remove an unrelated debugging #if 0.Aaron Campbell
2001-04-13Disestablish the shutdownhook on detach.Aaron Campbell
2001-04-06- For CardBus 21143 cards, parse the SROM. Makes my SMC EZ CardBus 10/100 work.Aaron Campbell
- General cleanup in the dc CardBus attachment. - Split detach up into bus-dependent and bus-independent parts. - Some function and variable renaming for consistency.
2001-02-20for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okMichael Shalayeff
2001-02-09Bad aaron. Broke alpha.Artur Grabowski
2001-02-09Sync with FreeBSD:Aaron Campbell
- Bugfix: 'reg' variable in dc_apply_fixup() needs to be u_int32_t. - Bugfix: bzero() mediainfo structures after allocation. - Call dc_apply_fixup() in dc_setcfg() for the MII case. - Conditionalize some code in miibus_{read,write}reg to make non-mx98713 cards happy.
2001-02-09Add support for parsing the media blocks from the SROM on the 21143 adapters.Aaron Campbell
These changes should make the driver work with the built-in Ethernet on the Alpha Miata machines. From FreeBSD. To make sure I didn't break anything (and as a general test), I tested the modified driver with the following dc(4) variants: Macronix PMAC 98715, Lite-On PNIC, Lite-On PNIC-II, ADMtek AL981, and ADMtek AN983.
2000-11-16Note support for Accton EN1217 and EN2242 Ethernet adapters.Aaron Campbell
2000-10-30Match the Macronix 98727/98732 chips.Aaron Campbell
2000-10-26Add support for Xircom X3201-based CardBus Ethernet cards. Tested successfullyAaron Campbell
on four different models, including the CBEM56G-100, RBE-100 RealPort, and the RBEM56G-100 RealPort. This commit adds support only for the LAN components; the modem is not configured yet. Detach support to come. Based on work from FreeBSD, mickey@, nate@, and myself.