freebsd-skq/sys/pci
Bruce Evans 933a354fe5 Fixed breakage of the pci case of the cy driver by the new interrupt
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)
2003-12-02 12:36:00 +00:00
..
agp_ali.c - Disable AGP on ALI chipsets if aperture size is 0. 2003-11-11 21:49:18 +00:00
agp_amd.c Prefer new location of pci include files (which have only been in the 2003-08-22 07:20:27 +00:00
agp_i810.c Use a switch statement on the devid instead of if-else for determing which 2003-10-23 17:48:30 +00:00
agp_if.m Fix typo. 2003-04-07 10:06:48 +00:00
agp_intel.c Fix a typo in r1.8: The GTLB enable/flush bit is 1<<7, not 1<<8. 2003-09-17 02:58:17 +00:00
agp_nvidia.c PCI header files live in dev/pci. 2003-08-23 19:32:18 +00:00
agp_sis.c Prefer new location of pci include files (which have only been in the 2003-08-22 07:20:27 +00:00
agp_via.c Prefer new location of pci include files (which have only been in the 2003-08-22 07:20:27 +00:00
agp.c - Disable AGP on ALI chipsets if aperture size is 0. 2003-11-11 21:49:18 +00:00
agppriv.h
agpreg.h AGP GART driver for NVIDIA nForce/nForce2 chipsets. 2003-08-23 18:00:31 +00:00
agpvar.h
alpm.c Prefer new location of pci include files (which have only been in the 2003-08-22 07:20:27 +00:00
amdpm.c Make indentation uniform. 2003-09-06 14:04:30 +00:00
cy_pci.c Fixed breakage of the pci case of the cy driver by the new interrupt 2003-12-02 12:36:00 +00:00
dc21040reg.h Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
if_dc.c Sometimes cardbus attachments don't attach, so while we track down 2003-11-28 05:28:29 +00:00
if_dcreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_de.c Replace the if_name and if_unit members of struct ifnet with new members 2003-10-31 18:32:15 +00:00
if_devar.h Replace the if_name and if_unit members of struct ifnet with new members 2003-10-31 18:32:15 +00:00
if_mn.c Use PCIR_BAR(x) instead of PCIR_MAPS. 2003-09-02 17:30:40 +00:00
if_pcn.c Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_pcnreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_rl.c Sometimes cardbus attachments don't attach, so while we track down 2003-11-28 05:28:29 +00:00
if_rlreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_sf.c Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_sfreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_sis.c Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_sisreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_sk.c correct typo in interrupt handling for the 2nd port of 2-port cards 2003-11-29 19:33:01 +00:00
if_skreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_ste.c Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_stereg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_ti.c Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_tireg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_tl.c Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_tlreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_vr.c Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_vrreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_wb.c Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_wbreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
if_xl.c Sometimes cardbus attachments don't attach, so while we track down 2003-11-28 05:28:29 +00:00
if_xlreg.h Drop the driver lock around calls to if_input to avoid a LOR when 2003-11-14 19:00:32 +00:00
intpm.c Prefer new location of pci include files (which have only been in the 2003-08-22 07:20:27 +00:00
intpmreg.h
locate.pl
meteor_reg.h
meteor.c Revision 1.126 broke the interface of the bktr driver's 2003-08-26 16:57:24 +00:00
ncr.c Revert previous change for ncrreg.h. The header really lives in 2003-08-23 02:25:04 +00:00
ncrreg.h
ti_fw2.h At long last, commit the zero copy sockets code. 2002-06-26 03:37:47 +00:00
ti_fw.h At long last, commit the zero copy sockets code. 2002-06-26 03:37:47 +00:00
viapm.c Prefer new location of pci include files (which have only been in the 2003-08-22 07:20:27 +00:00
xmaciireg.h
xrpu.c Free major#100 2003-11-03 10:19:33 +00:00
yukonreg.h Add missing file, it is sorely needed to make if_sk.c compile again. 2003-09-20 15:49:22 +00:00