summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/cy_pci.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use nitems(); no binary change for drivers that are compiled on amd64.jasper2011-04-031-2/+2
| | | | ok claudio@
* cy_attach improvements; ok artpvalchev2004-06-131-11/+18
| | | | | - don't panic if you can't setup interrupts, just quit attach - cleanup printf's, show a better error message
* Add a simplistic table driven lookup routine and use it where appropriate.jason2002-11-191-23/+12
|
* Add a license from the author Timo Rossi <trossi@co.jyu.fi>art2002-09-151-1/+29
|
* Various fixes and cleanups in the cy driver.art2002-09-141-70/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* First round of __P removal in sysmillert2002-03-141-3/+3
|
* Change pci_intr_map to take pci_attach_args as an argument.art2001-08-251-3/+2
| | | | | | | | | | | All callers actually took all arguments to pci_intr_map from pci_attach_args structs, so this simplifies code. This also allows more complicated interrupt assignment schemes like the one on sparc64. This makes sparc64 pci interrupts work. Inspired by the same change in NetBSD.
* Allow driver to recognize Cyclades 4Y and 8Y cards.smart2001-08-201-106/+109
| | | | | | | | 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
* KNFsmart2001-06-291-74/+74
|
* support newer cy cards; elektrosatan@voltagenoir.org, pr#1479deraadt2000-12-101-4/+16
|
* Removed unused vars. Added missing arg to bus_space_map.niklas1997-08-121-3/+2
| | | | Reported by Berndt Josef Wulf <wulf@ping.net.au>
* Adaption to new bus.h from NetBSD. Various driver has been updated toniklas1996-11-281-21/+23
| | | | | NetBSD 961107 state. Other has not, partly because sometimes the bus.h changes was coupled with other changes.
* s/bus.h/bus.old.h/ to make the transit to the bus_space bus.h an easy roadniklas1996-11-121-2/+2
| | | | possibly taken in small steps
* split cy driver upderaadt1996-07-271-0/+140