summaryrefslogtreecommitdiff
path: root/sys/dev/ic/dc.c
AgeCommit message (Collapse)Author
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.
2000-10-18Sigh. According to the ASIX data sheets, these boards don't even have RXAaron Campbell
or TX state registers (these bits are reserved). So instead, don't do mii_tick() at all for ASIX boards, since we can't seem to figure out how to call it at just the right time. Hopefully this will be a temporary hack until a better solution is found.
2000-10-17Undo the incorrect fix for my ASIX 88141. Instead of just relying on tx_cnt,Aaron Campbell
now we check the TX state in the ISR to make sure we are not transmitting when we run mii_tick(). Based on a suggestion by Bill Paul. The dc driver should now be ready for some heavy pre-2.8 testing.
2000-10-16Use mii_attach() directly instead of mii_phy_probe().Aaron Campbell
2000-10-11For some reason, with the eeprom width detection code mickey added awhile ago,Aaron Campbell
special care for the ADMtek AN983 (Centaur-P) chip is no longer needed. This fixes Ethernet address reading for these cards. Thanks to todd@ for testing.
2000-09-28If this is a Davicom DM9102A and we're enabling the homePNA link, forceAaron Campbell
dc_link to 1 and don't activate the tick routine. Without this, dc_start() always thinks the link is down and never transmits in homePNA mode; from FreeBSD.
2000-09-13Sync with FreeBSD. Finally make the OpenBSD-specific changes necessary to makeAaron Campbell
non-MII 21143-based cards work. The sync just fixes the LED handling on these kinds of adapters.
2000-09-07Indentation fix.Aaron Campbell
2000-08-26Revert a minor FreeBSD tweak that tends to freeze my machine solid afterAaron Campbell
large amounts of data transfer (ASIX 88141 card).
2000-08-08Make fix for preserving LED settings conditional on presence of an IntelAaron Campbell
21143 chip; from FreeBSD.
2000-08-02Sync with FreeBSD. Summary of changes:Aaron Campbell
- Add support for Accton EN1217 Ethernet adapters. - Fix problems with LEDs on some cards when clearing the jabber disable bit. - Handle new Macronix chips whose multicast hash tables are only 128 bits. - Fix timing issues during autonegotiation with Macronix and PNIC II.
2000-08-02Don't print out the eeprom width.Aaron Campbell
2000-08-02Add support for accepting packets up to 4 octets larger than thePeter Galbavy
interface MTU IFF vlans are enabled. Additional logic should be added by someone who understand 802.1q to test if this oversize packet is actually a 802.1q encapsulated, and reject others. Fix as per kernel/1328.
2000-07-21convert to new timeouts; art@ okMichael Shalayeff
2000-06-12remove debugging prom dump, sorryMichael Shalayeff
2000-06-12eeprom width detection code.Michael Shalayeff
idea from netbsd tulip driver. there is problem w/ an983 card, but aaron@ said he'll work it out. aaron@ & jason@ ok.
2000-06-12Fix ADMtek identity crisis.Aaron Campbell
2000-04-18split dc driver into bus dependent and bus independent (pci) partsJason Wright
(cardbus to come later).