freebsd-nq/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
agp_amd.c
agp_i810.c
agp_if.m
agp_intel.c
agp_nvidia.c
agp_sis.c
agp_via.c
agp.c
agppriv.h
agpreg.h
agpvar.h
alpm.c
amdpm.c
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
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
if_devar.h
if_mn.c
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
intpmreg.h
locate.pl
meteor_reg.h
meteor.c
ncr.c
ncrreg.h
ti_fw2.h
ti_fw.h
viapm.c
xmaciireg.h
xrpu.c
yukonreg.h