summaryrefslogtreecommitdiff
path: root/sys/dev/ic/cy.c
AgeCommit message (Collapse)Author
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-08-05print dv_xname instead of the uninitialized variable card; ok ↵Markus Friedl
miod/henning/deraadt
2003-01-05spellingTheo de Raadt
2002-09-15Add a license from the author Timo Rossi <trossi@co.jyu.fi>Artur Grabowski
2002-09-14Various fixes and cleanups in the cy driver.Artur Grabowski
Finally my "Cyclades Cyclom-8Y" works correctly. Cleanups: - no more stupid arrays, we have softc structs, use them. - no more global poll timeout that walks an array, timeouts are now cheap, one poll per softc. - sc_dev.dv_xname is the correct thing to print in diagnostic printfs. - don't have bus-specific code in the generic attach for @#%$! sake, it took 20 seconds to fix (I suspect that the workaround took much more time to write). - spltty, not splhigh. - use pci_mapreg_map, not pci_{io,mem}_find + bus_space_map. - use defines, not magic constants in a few places. - KNF in a few places (much more work needed). Now the interesting parts: - when handling the interrupt, don't just ignore it when the tty is not open. Read and discard the data. If we don't read it, the card will interrupt again and again and again and ... (inspired by NetBSD). - actually enable interrupts on PLX9050 - From FreeBSD: "Work around a PLX9050 bug that causes system lockup in certain systems" deraadt@ ok
2002-09-09Correctly printf on attach.Artur Grabowski
2002-03-14First round of __P removal in sysTodd C. Miller
2002-01-30Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ okThomas Nordin
2001-08-20Allow driver to recognize Cyclades 4Y and 8Y cards.smart
Not finished yet, but cleaned up and moved around code for better organization. Inspired by NetBSD and other PCI drivers. From my dmesg: cy1 at pci0 dev 10 function 0 "Cyclades Cyclom-8Y" rev 0x01
2001-08-19KNFsmart
2001-04-23double splxArtur Grabowski
2001-03-25Repair timeouts. kern/1743, but with simpler fixArtur Grabowski
2001-02-03new timeoutsMichael Shalayeff
2000-12-10support newer cy cards; elektrosatan@voltagenoir.org, pr#1479Theo de Raadt
1999-11-30Remove duplicate #include.Aaron Campbell
1997-08-04Change disable_intr()/enable_intr() to splhigh()/splx().dgregor
Fix bug of 'tp' not being initialized in cyopen - patch from Theo de Raadt. Thanks to Niklas Hallqvist and Theo de Raadt for finding this bug.
1996-12-03clr TS_WOPEN if bailing on cua opensTheo de Raadt
1996-12-03void cystop() -> int cystop()kstailey
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-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-10-16Wall happinessTheo de Raadt
1996-08-23Make more MI, closer to compile on amiga, still some problems though.Niklas Hallqvist
Also removed unnecessary static specifiers that maess up DDB
1996-07-27split cy driver upTheo de Raadt