summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
1997-06-18csapuntz@lcs.mit.edu: Port of NetBSD tulip driver. Works with new ↵dm
(21140-AC-based) SMC Etherpower cards.
1997-06-11Make this compile with debugging turned on.Jason Downs
1997-04-17hide C decls when _LOCORE definedMichael Shalayeff
1997-04-14Document flag to set 32-bit word mode. Call it ED_DCR_QTS forTodd C. Miller
lack of a better name (anyone have any documentation?)
1997-04-13make it compile againMichael Shalayeff
1997-04-10queue handling hacks for chips like aic7860 which have small numbers of SCB's.Theo de Raadt
by gibbs@freebsd.org
1997-04-10Need to separate i/o and mem on mipsPer Fogelstrom
1997-04-10Zilog z8536 defsPer Fogelstrom
1997-03-20MAJOR CHANGES: [contributed by Chuck Cranor <chuck@ccrc.wustl.edu> andchuck
Anne Hutton <hutton@isi.edu>]: - add support for Adaptec 155 PCI ATM cards (e.g. ANA-5940) - add sc->is_adaptec to handle differences between cards. - break out MID_MK_TXQ/MID_MK_RXQ seperate macros to handle the new Adaptec format TXQ/RXQ. - adjust en_dqneed to return 1 on ADP (since the Adaptec can DMA anything in one DRQ/DTQ!) - add hook for a bus specific reset function (adaptec has a seperate reset register that needs to be hit when resettting the midway). - adjust DMA test to not worry about burst sizes on the adaptec (since it handles it all for us!) and to handle the new DTQ/DRQ format. - add Adaptec DMA support to en_txlaunch() and en_service() BUG FIXES: - fixed receiver panic under heavy load ("lost mbuf in slot 0!"). when the reassembly buffer overflows, the T-bit is set in the RDB and the data field is empty. en_service() sets up a 4-byte (RDB size) dummy DMA without IF_ENQUEUE. but the recv intr handling in en_intr() always does IF_DEQUEUE. as a result, a successive recv intr loses its mbuf and leads to a panic. the solution is to only IF_DEQUEUE if the interrupt has non-zero length (indicating that there is an mbuf to get). in order for this to work, EN_DQ_MK must always be non-zero. we do this by or'ing in an unused bit (0x80000). reported by: Kenjiro Cho <kjc@csl.sony.co.jp> - fix setting of transmit channel when txspeed[] is non-zero (e.g. traffic shaping). the old scheme didn't work properly (it allowed the same VCI to use multiple tx channels thus defeating the txspeed[] parameter). the new scheme statically assigns a VC to a channel when txspeed[] is set. [note that the code to set txspeed[] isn't in the driver right now since a MI interface to do this hasn't been made yet] we add sc->txvc2slot[] and sc->txslot[n].nref for this. reported by: Kenjiro Cho <kjc@csl.sony.co.jp>, Milind M Buddihikot <milind@ccrc.wustl.edu>, Dong Lin <dong@eecs.harvard.edu> - if aal5 frame has a CRC error then the length field in the aal5 trailer may not be valid, so we can not use it [and we must dump the frame] contributed by: Yuhang Sun <sunyh@dworkin.wustl.edu> & chuck - when doing SRAM copies, be sure to round up the length to the next largest word (otherwise the driver will try to do a byte clean up DMA and then get an ID error interrupt). MINOR CLEANUPS: - add some extra support for a few more versions of FreeBSD contributed by: Kenjiro Cho <kjc@csl.sony.co.jp> - clean up loops in DMA test contributed by: Kenjiro Cho <kjc@csl.sony.co.jp> - restructure and cleanup of en_read/en_write macros/inlines - clean up some byte ordering stuff so that we are consistant throughout the driver
1997-03-17Serial console trouble again...Per Fogelstrom
1997-03-12The stupid "use console before configured" scheeme strikes again :-)Per Fogelstrom
1997-03-12Add a define for another compatible chip.Per Fogelstrom
1997-03-06Initial implementation of support for calling hardpps() on carrier enableThorsten Lockert
1997-03-06Add control flag to call hardpps() on carrier changeThorsten Lockert
1997-02-27M.I. NCR53c9x/ESP driver, derived from sparc/alpha esp.c. From Jason Thorpebriggs
and NetBSD.
1997-02-19NS DP875x series clock chip definition file.Per Fogelstrom
1997-01-29Export comdefaultrateNiklas Hallqvist
1997-01-24bug fix:chuck
- if aal5 frame has a CRC error then the length field in the aal5 trailer may not be valid, so we can not use it [and we must dump the frame] [Yuhang Sun <sunyh@dworkin.wustl.edu> & chuck@ccrc.wustl.edu]
1997-01-15sc_link.adapter_buswidth, set to 16 if wide scsi. if 0 it gets convertedTheo de Raadt
to 8 internally so that drivers do not need to init it for regular scsi :-)
1997-01-15more missing prototypes and other warnings fixedkstailey
1997-01-15added prototypeskstailey
1997-01-05absent pcmcia cards do not interruptTheo de Raadt
1996-12-16add "return (0)" to end of zsstop() since it's not a void function anymorekstailey
1996-12-10the real changes by niklas... I did not merge correctlyTheo de Raadt
1996-12-10clr TS_WOPEN if bailing on cua opensTheo de Raadt
As well, at this point I've also done fancy cvs repository mangling to ensure that the com* files in sys/dev/ic maintain the history we had before. (Yes, I cleaned up the 2.0 tags too..)
1996-12-03clr TS_WOPEN if bailing on cua opensTheo de Raadt
1996-12-03void cystop() -> int cystop()kstailey
1996-12-03void zsstop() -> int zsstop()kstailey
1996-11-30Cleaned up. lpt is MI now.Niklas Hallqvist
1996-11-29Missing pieces of new bus.h that CVS lost behind my backNiklas Hallqvist
1996-11-28Adaption to new bus.h from NetBSD. Various driver has been updated toNiklas Hallqvist
NetBSD 961107 state. Other has not, partly because sometimes the bus.h changes was coupled with other changes.
1996-11-25Make CONADDR and CONUNIT overrideableNiklas Hallqvist
1996-11-23added const to second parameter of cfprint_t routineskstailey
1996-11-21correct version of last commitchuck
1996-11-21midway fixes:chuck
1. fix possible hang in en_txlaunch(). when attempting to extend the length of an mbuf to avoid a flush we should extend it by cnt [which is ((need - len) % 4)] rather than 4 - cnt. also, add an EN_DEBUG printf() when we pad/FLUSH a buffer to help with debugging/understanding what the driver is up to. 2. use interface packet counters 3. when turning off a recv VCI we recompute the new mode. make sure we don't include the "in service" bit in the new mode, otherwise a VCI may appear "hung" if you turn it off while a service interrupt is pending. 4. when shutting down a VCI that is still receiving data, don't bother going into "drain mode" if only the hardware in service bit is set (otherwise the VCI may get "hung" in drain mode). as a result of this we may get "unexpected rx interrupt" messages which are not really an error, so put this printf in EN_DEBUG. 5. be sure to zero txspeed[lcv] when enabling a VCI (start at full speed). (hooks for setting txspeed[] are currently not in the driver, but we are playing with it locally). credits: #1: Detected by: Zdenek Salvet <salvet@horn.ics.muni.cz>, fix by me. #2: Contributed by: Zdenek Salvet <salvet@horn.ics.muni.cz> #3,#4,#5: Detected by: Milind M. Buddhikot <milind@dworkin.wustl.edu>, fixed by me.
1996-11-12Arrival of new bus.h from NetBSDNiklas Hallqvist
1996-11-12s/bus.h/bus.old.h/ to make the transit to the bus_space bus.h an easy roadNiklas Hallqvist
possibly taken in small steps
1996-11-09Break shall be handled as data == 0 and FE bit set; from TheoThorsten Lockert
1996-11-09netbsd pr#2919 (jukka.partanen@research.nokia.com):chuck
- fix compiler warnings
1996-10-31$OpenBSD RCSIDsNiklas Hallqvist
1996-10-30cominit is used from the outside (the alpha port)Niklas Hallqvist
1996-10-22patch com speed initializationJason Downs
1996-10-18Fix comment typoNiklas Hallqvist
1996-10-18Fix typo introduced when adding __OpenBSD__ checksNiklas Hallqvist
1996-10-16contextual usageTheo de Raadt
1996-10-16latest pdq from matt thomasTheo de Raadt
1996-10-16Wall happinessTheo de Raadt
1996-10-16unused variablesTheo de Raadt
1996-10-16-W cleanTheo de Raadt
1996-10-12on newer cards, use word count for SET_TX_AVAIL_THRESH; from numerous ↵Theo de Raadt
people, gleamed from plan9/bsdi drivers, and confirmed in last two sentences in 3c590 manual