summaryrefslogtreecommitdiff
path: root/sys/pci/cy_pci.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove old cy driver files. They have been repo-copied to sys/dev/cy andBruce Evans2004-05-021-198/+0
| | | | | | | sys/dev/ic and adjusted to work there. Notes: svn path=/head/; revision=128815
* Converted the isa probe and attach to new-bus so that this driver worksBruce Evans2004-04-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | without the (defunct) isa compatibility shims. The new-bus-specific parts are very similar to the ones for the pci probe and attach. This was held up too long waiting for a repo copy to src/sys/dev/cy, so I decided to fix the files in their old place. This gives easier to read and merge diffs anyway. The "count" line in src/sys/conf/files won't be changed until after the repo copy, so old kernel configs that specify a count need not be (and must not be) changed until then. The count is just ignored in the driver. One unfinished detail is dynamic allocation of arrays with <count> and (<count> * 32) entries, and iteration over the arrays. This is now kludged with a fixed count of 10 (up to 10 cards with up to 32 ports each). Prodded by: imp Submitted by: mostly by imp Approved by: imp Notes: svn path=/head/; revision=127885
* Fixed some minor indentation bugs.Bruce Evans2003-12-021-12/+12
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=123105
* Fixed breakage of the pci case of the cy driver by the new interruptBruce Evans2003-12-021-17/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | code. Both the driver and the new code were wrong. Driver interrupt handlers are supposed to take "void *vsc" arg, but some including all COMPAT_ISA drivers and the pci part of the cy driver want an "int unit" arg. They got this using bogus casts of function pointers which should have kept working despite their bogusness. However, the new interrupt code doesn't honor requests to pass an arg of ((void *)0), so things are very broken if the arg is actually a representation of unit 0. The fix is to use a normal "void *vsc" arg for the pci case and a wrapper for the COMPAT_ISA case (of the cy driver). This cleans up new-busification of the pci case but takes the COMPAT_ISA case a little further from new-bus. The corresponding bug for the COMPAT_ISA case has already been fixed similarly using a wrapper in compat_isa.c and we need another wrapper just to undo that. Fixed some directly related style bugs (mainly by removing compatibility cruft). cy.c: Fixed an indirectly related old bug in cyattach_common(). A wrong status was returned in the unlikely event that malloc() failed. Approved by: re (scottl) Notes: svn path=/head/; revision=123104
* Use __FBSDID().David E. O'Brien2003-06-111-2/+3
| | | | Notes: svn path=/head/; revision=116192
* - Express hard dependencies on bus (pci, isa, pccard) andMatthew N. Dodd2003-04-151-0/+1
| | | | | | | | | | | network layer (ether). - Don't abuse module names to facilitate ifconfig module loading; such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.) Notes: svn path=/head/; revision=113506
* Remove __P.Alfred Perlstein2002-03-201-2/+2
| | | | Notes: svn path=/head/; revision=92739
* Work around a PLX9050 bug that causes system lockup in certain systems,Bruce Evans2002-03-171-3/+4
| | | | | | | | | | | | depending on the MMIO addresses allocated to the board. PR: 30965, 20845 (maybe) Submitted by: Daniela Squassoni <daniela@cyclades.com> Tested by: Arjan Knepper <arjan@jak.nl> Scott Klement <klemscot@klements.com> Notes: svn path=/head/; revision=92467
* Merged cy_pcireg.h into the one file that uses it (cy_pci.c).Bruce Evans2002-02-021-1/+16
| | | | Notes: svn path=/head/; revision=90102
* Fixed breakage of interrupt setup in previous commit. It used anBruce Evans2002-02-021-0/+2
| | | | | | | uninitialized variable in the !CY_PCI_FASTINTR case (*blush*). Notes: svn path=/head/; revision=90101
* Converted to new-bus.Bruce Evans2001-02-011-57/+85
| | | | | | | Reviewed by: imp Notes: svn path=/head/; revision=71892
* Disable cy - it is now completely broken and needs non-trivial work.Peter Wemm2001-01-251-5/+0
| | | | Notes: svn path=/head/; revision=71611
* Special case for compiling LINT - just give a warning and continue on.Peter Wemm2001-01-171-0/+5
| | | | | | | | At least we have a chance at getting test compile coverage for the rest of the kernel now. Notes: svn path=/head/; revision=71135
* Make LINT compile again.Poul-Henning Kamp2000-09-161-0/+1
| | | | Notes: svn path=/head/; revision=65930
* Ahhrggg. Put the test for the compat shims AFTER the file that includesWarner Losh2000-03-271-4/+4
| | | | | | | | | them. Pointed out by: bde Notes: svn path=/head/; revision=58701
* Per conversations in -current, add #error to these drivers when you don'tWarner Losh2000-03-271-0/+4
| | | | | | | have the right compatibility shims enabled. ISA drivers to follow later. Notes: svn path=/head/; revision=58695
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entirePeter Wemm1999-07-031-6/+1
| | | | | | | files. config will leave the whole file out if configured to do so. Notes: svn path=/head/; revision=48528
* Detect PCI device IDs for latest boards. Simplified the ID comparisons.Bruce Evans1999-05-101-5/+4
| | | | | | | Submitted by: Ivan Passos <ivan@cyclades.com> (rewritten by me) Notes: svn path=/head/; revision=46879
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:Peter Wemm1999-05-091-5/+1
| | | | | | | | | | | #define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data) .. to 2.2.x and 3.x if people think it's worth it. Driver writers can do this if it's not defined. (The reason for this is that I'm trying to progressively eliminate use of linker_sets where it hurts modularity and runtime load capability, and these DATA_SET's keep getting in the way.) Notes: svn path=/head/; revision=46813
* Make this compile with CY_PCI_FASTINTR again.Peter Wemm1999-05-021-2/+5
| | | | Notes: svn path=/head/; revision=46335
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tPeter Wemm1999-04-241-1/+5
| | | | | | | hurt the driver portability to 3.x too much for where drivers are shared. Notes: svn path=/head/; revision=46024
* Added missing newline to "no ports found!" message.Alexander Langer1999-04-151-2/+2
| | | | Notes: svn path=/head/; revision=45692
* Use a fast interrupt handler for the PCI version of the cy driverBruce Evans1999-01-151-2/+13
| | | | | | | | | | | if option CY_PCI_FASTINTR is configured and mapping the irq to a fastintr is possible. Unfortunately, this has to be optional because pci_map_int_right() doesn't handle the INTR_EXCL flag right -- INTR_EXCL is honoured even if the interrupt needs to be non-exclusive for other devices to work. Notes: svn path=/head/; revision=42691
* Fixed minor style bugs in previous commit.Bruce Evans1999-01-111-12/+10
| | | | Notes: svn path=/head/; revision=42541
* Updated for not-so-new version of Cyclom-Y PCI boards (with a customBruce Evans1999-01-111-3/+19
| | | | | | | | | | | register for the PLX id). Merge the vendor's modification of the 2.2.* release version into -current for reference. Will be cleaned up in next commit. Obtained from: ftp://ftp.cyclades.com/pub/cyclades/cyclom-y/freebsd/3.0/cyy30.tar.gz Notes: svn path=/head/; revision=42540
* probe function changed from returning char * to const char *.Matthew Dillon1998-12-141-3/+3
| | | | Notes: svn path=/head/; revision=41771
* Removed unused #includes.Bruce Evans1997-09-021-2/+1
| | | | Notes: svn path=/head/; revision=29041
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Fixed missing ioport offset from the reading/updating of the PLXDavid Greenman1997-02-051-1/+1
| | | | | | | | | interrupt control/status register. Submitted by: Brian McGovern <bmcgover@cisco.com> Notes: svn path=/head/; revision=22309
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Updated #includes to 4.4lite style.Bruce Evans1996-10-151-2/+3
| | | | Notes: svn path=/head/; revision=18946
* Changes to add support for the PCI version of the Cyclades Cyclom-YDavid Greenman1996-10-131-0/+132
serial adapter, and support for multiple Cyclom controllers. Notes: svn path=/head/; revision=18901