summaryrefslogtreecommitdiffstats
path: root/sys/dev/cy/cy_pci.c
Commit message (Collapse)AuthorAgeFilesLines
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-3/+3
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* Use BUS_PROBE_DEFAULT for pci probe return valueimp2005-03-051-1/+1
|
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Add missing <sys/module.h> includesphk2004-05-301-0/+1
|
* Reduce differences with cy_isa.c: fixed an unsorted include.bde2004-05-011-5/+1
| | | | Remove unused includes.
* Adjust pathnames for the move from i386/isa to dev/cy.bde2004-05-011-6/+3
| | | | | | Adjust staticness and a variable name for the split of cy.c into cy.c and cy_isa.c. Use the new header required for the split to avoid repeating declarations in cy_pci.c.
* Converted the isa probe and attach to new-bus so that this driver worksbde2004-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
* Fixed some minor indentation bugs.bde2003-12-021-12/+12
| | | | Approved by: re (scottl)
* Fixed breakage of the pci case of the cy driver by the new interruptbde2003-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)
* Use __FBSDID().obrien2003-06-111-2/+3
|
* - Express hard dependencies on bus (pci, isa, pccard) andmdodd2003-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.)
* Remove __P.alfred2002-03-201-2/+2
|
* Work around a PLX9050 bug that causes system lockup in certain systems,bde2002-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>
* Merged cy_pcireg.h into the one file that uses it (cy_pci.c).bde2002-02-021-1/+16
|
* Fixed breakage of interrupt setup in previous commit. It used anbde2002-02-021-0/+2
| | | | uninitialized variable in the !CY_PCI_FASTINTR case (*blush*).
* Converted to new-bus.bde2001-02-011-57/+85
| | | | Reviewed by: imp
* Disable cy - it is now completely broken and needs non-trivial work.peter2001-01-251-5/+0
|
* Special case for compiling LINT - just give a warning and continue on.peter2001-01-171-0/+5
| | | | | At least we have a chance at getting test compile coverage for the rest of the kernel now.
* Make LINT compile again.phk2000-09-161-0/+1
|
* Ahhrggg. Put the test for the compat shims AFTER the file that includesimp2000-03-271-4/+4
| | | | | | them. Pointed out by: bde
* Per conversations in -current, add #error to these drivers when you don'timp2000-03-271-0/+4
| | | | have the right compatibility shims enabled. ISA drivers to follow later.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entirepeter1999-07-031-6/+1
| | | | files. config will leave the whole file out if configured to do so.
* Detect PCI device IDs for latest boards. Simplified the ID comparisons.bde1999-05-101-5/+4
| | | | Submitted by: Ivan Passos <ivan@cyclades.com> (rewritten by me)
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:peter1999-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.)
* Make this compile with CY_PCI_FASTINTR again.peter1999-05-021-2/+5
|
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tpeter1999-04-241-1/+5
| | | | hurt the driver portability to 3.x too much for where drivers are shared.
* Added missing newline to "no ports found!" message.alex1999-04-151-2/+2
|
* Use a fast interrupt handler for the PCI version of the cy driverbde1999-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.
* Fixed minor style bugs in previous commit.bde1999-01-111-12/+10
|
* Updated for not-so-new version of Cyclom-Y PCI boards (with a custombde1999-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
* probe function changed from returning char * to const char *.dillon1998-12-141-3/+3
|
* Removed unused #includes.bde1997-09-021-2/+1
|
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Fixed missing ioport offset from the reading/updating of the PLXdg1997-02-051-1/+1
| | | | | | interrupt control/status register. Submitted by: Brian McGovern <bmcgover@cisco.com>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Updated #includes to 4.4lite style.bde1996-10-151-2/+3
|
* Changes to add support for the PCI version of the Cyclades Cyclom-Ydg1996-10-131-0/+132
serial adapter, and support for multiple Cyclom controllers.
OpenPOWER on IntegriCloud